Tell us what’s happening:
Hi - I have some questions about this project’s requirements, mostly for, I guess… academic purposes.
I’ve been reading a lot about HTML semantics and like many others I was confused with when to use
<article> and when to use
<section> . MDN web docs and WHATWG specification wasted little breath explaining this in much detail, but I managed to find elsewhere some good articles on this topic, and here’s one which, in my opinion, explains it very well: http://html5doctor.com/the-article-element/#div-comment-31959.
Now, the Technical Documentation Page challenge requires that each main section be enclosed in
<section> tags. If I’m not understanding the
<section> topic wrong, wouldn’t
<article> be more appropriate, since each main section is, or meant to be, a “complete, or self-contained, composition in a document, page, application, or site and that is, in principle, independently distributable or reusable”?
What’s more perplexing is how the two tags are used in the example solution - main sections are enclosed in
<section> tags and paragraphs inside each main section, excluding the section title, are enclosed in
<article> tags (except for the Variables section, which I guess is likely an accidental omission). Is the usage of
<article> there correct? Is it redundant?
Would appreciate some clarification.
Your code so far
Your browser information:
User Agent is:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36 Edg/88.0.705.81.
Challenge: Build a Technical Documentation Page
Link to the challenge: