Do tags themselves count as content?


#1

Question

In this example, do the <p> tags also count as content or is the content just the sentence contained within the tags?

Answer

The content is just the information contained within the tags themselves. The tags are marking up this content so that the browser knows how to properly interpret and structure this information. As you will learn later in this lesson, the content is not always contained within an opening and closing tag. For example, the <img> tag is an example of a self-closing tag and it introduces content into the page differently then the <p> element.


FAQ: Learn HTML Elements - Intro to HTML - HTML Anatomy