This course will be retired on July 31, 2024. We recommend "Introduction to HTML and CSS" for up-to-date content.
Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
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 can 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.
Further Reading:
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up