Html doubt | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 5

Html doubt

why should we use header section when we could just use h1 and place a heading. What difference does it make? or is it just to make it look neat and tidy?

3rd Nov 2016, 1:18 AM
Rodrigo Tallar
Rodrigo Tallar - avatar
1 Réponse
+ 4
it has semantic significance. most of the modern browsers using html5 will understand this that the content inside them is the heading of the article yes it can be used with other tags too and the output shown will be the same
3rd Nov 2016, 6:50 PM
Sandeep Chatterjee