Flow content is the broad category of material used inside a body or section. Phrasing content is the text-sized subset that fits into sentences, like strong, em, span, and links.
What You Need to Know
You can put phrasing content inside a p, but not a whole section. This rule is about HTML structure, not whether CSS makes something appear on one line.
The goal is not to collect as many tags as possible. Pick the element that best describes what the content really is.
Example: See It in Action
Here is a simple example to experiment with. Type it, save the file, and check what the browser displays.
This is a short HTML fragment. To try it as a webpage, put it inside the body element of a complete HTML document.
<main>
<h1>News</h1>
<p>This sentence has <em>emphasis</em>.</p>
<section>
<h2>Updates</h2>
<p>New stories arrived.</p>
</section>
</main>
Let’s Understand the Example
- Main identifies the central content of the page; it should not be duplicated as separate visible main landmarks.
- An h1 introduces the main subject of the page. Use the heading level for structure rather than font size.
- A p groups a paragraph of related text. Start another paragraph for a new thought.
You should see a readable heading and its related content. The heading level tells readers how the ideas fit together, not merely how large the letters look.
What Should You See?
The page should display “News” as a heading, followed by its related content. Change the heading text and refresh the browser to see the result.
Read only the headings, from top to bottom. Do they tell a sensible story? If not, move sections or choose levels that match the content.
Try It Yourself
- Identify the phrasing elements inside the example paragraph and the surrounding flow elements.
- Save your changes, open or refresh the page, and compare the result with the original example.
- Tell a friend what your change did. If you are not sure, undo it, refresh the page, and compare.
Common Beginner Mistakes
- Assuming that something styled as display:inline is automatically valid inside a paragraph.
- Avoid picking tags just for their default bold, italic or spaced appearance. Use CSS for presentation.
Key Takeaways
- Flow content is the broad category of material used inside a body or section.
- Main identifies the central content of the page; it should not be duplicated as separate visible main landmarks.
- You can put phrasing content inside a p, but not a whole section. This rule is about HTML structure, not whether CSS makes something appear on one line.