The website that I am putting together allows users to log in. Somewhere on the page, it will either say, "Log in: {Username} {Password}" or "You are logged in as {name}. Log out". What is the most appropriate way to section it off in HTML5? div, section, aside, or something else?

4 answers

The <div> tag is semantically null. Obviously that doesn't mean that <div>'s are redundant, but semantically, the login is part of a <section> of the page/app and the mark up could be <section id=login>…</section>.