HTML and CSS Reference
In-Depth Information
What is This <div> Element?
Documents written prior to the advent of HTML5 are plagued with <div> tags. The <div>
tag was the king element of semantic markup in previous HTML revisions. It was the only
container available for sectioning off content, but it was far more appropriate for defining
web page layout than tables. In combination with CSS styles used through IDs and classes,
the <div> element allowed us to create visually rich pages with a rather flexible design.
In HTML5, <div> has the semantic meaning of a general element. As modern HTML coding
requires us to use the most suitable or semantically accurate element, the <div> element is
now used only when there are no other elements that are more appropriate.
 
Search WWH ::




Custom Search