Skip to content Skip to sidebar Skip to footer

Legality Of Div Tag Immediately Under Html Tag

I was running lynx to test some HTML I had to do, because having accessibility in mind. I guessed that, if looked pretty in Lynx, the whole range of screen readers, crappy phones a

Solution 1:

By inserting a div, lynx considers the creation of an implicit section which makes the h1 the title of the section, and no longer the title of the webpage.

You should note that replacing the <div id="whatever"> with <main id="whatever"> gives the expected result.

Post a Comment for "Legality Of Div Tag Immediately Under Html Tag"