It's time for an exercise ⬇️ 🧩 Use the correct HTML tag to add a heading with the text "London". <p>London is the capital city of England. It is the most populous city in the United Kingdom, with a metropolitan area of over 13 million inhabitants.</p> ------ 💡Hint: Think about the structure of a document. What HTML tag is typically used to denote a heading or title within a section of content? ----- Write the correct answer in the comment section. Good Luck! 💚 #w3schools #coding #code #webdev #development
<h1>London</h1>
<html> <head> <title>Page Title</title> </head> <body> <h1>"London"</h1> <p>London is the capital city of England. It is the most populous city in the United Kingdom, with a metropolitan area of over 13 million inhabitants.</p> </body> </html>
Since its talking about heading we can only have 6 tags and the only difference is the size of the head. <h1>London</h1> <h2>London</h2> <h3>London</h3> <h4>London</h4> <h5>London</h5> <h6>London</h6>
We can use following suitable tag <h1>London</h1> <h2>London</h2> <h3>London</h3> <h4>London</h4> <h5>London</h5> <h6>London</h6>
I'd go for <h2> heading since London must be a sub-heading in my opinion, so that's the top heading <h1> i'd use it for The Cities of England or Cities Around The World.
<h2> || <h3> , you can use a <h1> tag once ...
<h1>London</h1> <p>London is the capital city of England. It is the most populous city in the United Kingdom, with a metropolitan area of over 13 million inhabitants.</p> ```
It should be the h2 element, right? <h2>London</h2>
Web Developer
3wHeading tags have six types . you can use Suitable one for the text. EX: <h1>London</h1> <h2>London</h2> <h3>London</h3> <h4>London</h4> <h5>London</h5> <h6>London</h6>