Paragraph Tags2:40 with Treasure Porth
The most common way to split up text into more manageable, visually appealing parts is with a paragraph tag.
Using HTML tags help give meaning and structure to our web pages. Not only can tags provide some basic or default style to our web content, but they can also help us understand the structure of meaning of the elements we're placing on the page.
The paragraph element is very commonly used when adding text to the page, and can be found on just about every site on the web! By wrapping content using <p></p> tags, we are able to define how text content will be viewed and interpreted by our visitors.
For example, in writing...
<p>I can't wait to learn more about HTML and CSS!</p>
...we are telling both the browser and our readers that the content is written and should be treated as a paragraph of text. Adding additional <p></p> tags below this would result in the new paragraph appearing on its own, separate line, making it both distinct from the previous paragraph and preventing the text from running on as if it were part of the previous paragraph.
You need to sign up for Treehouse in order to download course files.Sign up