Project Fashion Blog - step 10 - <h3> versus <p> element

https://www.codecademy.com/paths/web-development/tracks/learn-html-web-dev-path/modules/learn-html-elements/projects/fashion-blog

Hi everyone,
On step 10 of this project we are asked to add an h3 element that says “by Isabelle Rodriguez | 1 day ago”.
From what I understood from the html explanation videos, we are skipping headings, which is not ideal. Aren’t we better off simply using a p element instead?

2 Likes

We can use any element we wish, but if we wish to give it meaning, then choose the one that best fits. A byline is a form of heading, though of lower importance, hence a drop in hierarchical value.

<h1>article heading</h1>
<h2>sub-heading</h2>
<h3>byline</h3>

The P element is for sectioning textual content, just as an essay would contain headings and paragraphs.

3 Likes