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.

2 Likes

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.

1 Like

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.

1 Like

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.

1 Like

Similarily we have,

article
section
li
blockquote
header
nav
footer
&c.

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.

1 Like

The Brown Bear

About Brown Bears

Species

Features

Habits

Countries with large Brown Bear population

countries with small Brown Bear population

Media

why is this answer considered as the wrong answer when its same as your solution

lol one year late but yes there is. Ctrl-Enter runs the exercise

I am having the same issue… the code is good but the page wont recognize my solution.

The Brown Bear

About Brown Bears

Species

Features

Habitat

Countries with Large Bear Population

Countries with Small Bear Population

Media

For #4 i put in

Media

and Media showed up on the screen in the correct place, yet I did not get this correct. When i went to solutions, it moved the up. Very confusing and misleading.

Why isn’t my complete question displayed?

You are a lifesaver. Thank you for pointing that out.