FAQ: Learn HTML Elements - Intro to HTML - Headings


can i create multi bodies in one web page to separate different sections ?.. or should i make one body and divide into sections by



One body. You can use multiple sections, or divs, they’ll go in to that later.


BODY is a namespace to which a lot of moving parts are connected. We can however create another namespace inside this one using iframe. The content of that iframe is another HTML page (document). That document will also have a BODY. This is the only way a webpage can have more than one BODY.


okay but for what purpose would i do that ?


is it possible to use the (strong) tag along with (em )to get both features in one word ?


It would have to be a good one, such as the CC learning environment. A lesson page is made of two documents… The site page, and the iframe that contains the LE.


Hi the bug appears to occur with the period. If you notice the content- it doesn’t highlight the period at the end. So when you add the punctuation at the end- it spills over creating the error message.


Why do we not put <h2> and <h3> as child elements/grandchildren of h1 and subsequently body and html?


Headings are not generally treated as sectioning elements that contain child elements. They are intended as headings, not parents.


Got it, thanks! I saw in the further lessons <div> is closer to what I expected.


Similarily we have,


HTML 5.2: 3 Semantics, structure and APIs of HTML documents = Kinds of content

The above link is scrolled down quite a bit from the root of the page. Definitely bookmark it and add it to your reading list for down the road. Just this one page is like an intensive course in all the inner workings of HTML. Dry and technical, best nibbled on rather than gorged.