Adding Paragraphs - Your First $1000 online (2014)

Your First $1000 online (2014)

Chapter 4: Adding Paragraphs

“Good code is its own best documentation. As you're about to add a comment, ask yourself, "How can I improve the code so that this comment isn't needed?"

Steve McConnell

Adding paragraphs to the HTML text isn’t as difficult as one would think it to be.

The main tag to use here is as follows: <p>.

The P is wrapped in brackets so that the browser can interpret the content of the web page. Here’s an example of how the aforementioned tag is used to create paragraphs:

<p>This is a paragraph</p>

<p>This is another paragraph</p>

Line Breaks

In some instances you might want to separate the content or add in a new paragraph. For this you need to use the <br> tag. Here’s how this would look:

<p>This is<br>a para<br>graph with line breaks</p>