[html5] Best tag for modal window DOM element
ian at hixie.ch
Wed Nov 28 12:28:56 PST 2012
On Wed, 28 Nov 2012, Stefano Gargiulo wrote:
> What is the best html5 tag to describe a modal floating window, eg. a
> floating login mask over the page?
> <aside> ?
> <section> ?
<dialog>, but it's not yet widely implemented.
In the meantime, probably <article> or <section> or <aside>, depending on
exactly how the login window is set up: <article> if it would make sense
if it was on its own page, <aside> if it's the spiritual equivalent of a
sidebar login form (probably not if it's modal), <section> otherwise.
Ian Hickson U+1047E )\._.,--....,'``. fL
http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,.
Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
More information about the Help