Is there any benefit in using a <blockquote> element over a <div>? I was looking at a website’s markup to learn CSS and I couldn’t figure out why the <blockquote> was being used.
EDIT: Yeah sorry I didn’t clarify, it was used to hold the <div> tag with username as ‘text’ and an input tag. There was clearly no quote.
In theory, HTML should be as ‘semantic’ as possible – meaning that every element should indicate something about its content.
<h1>s should enclose the most important headline;<p>s should surround paragraphs;<em>should indicate emphasis, etc.That way the code makes sense when you – or a screen reader, or whatever – look at it. This also helps for devices that don’t understand all (or any) of your CSS rules.