For example, a webpage might include: a navigation menu, article and advertising.
In the HTML code, the three types of content might be separated, by placing each in its own
Using the Cascading Stylesheets (CSS) presentational language, a
<div> can also be styled.
<div>s are commonly used to create webpage layouts or grids. CSS is used to control the visual qualities of each
<div>, including its: height and width, position, background colour and borders.
Div-i-tis is an informal term that is used to describe webpage code where the
<div> element has been used excessively, unnecessarily or inappropriately.
<div>s to create presentational effects, such as rounded corners, can quickly lead to complex code.
<div>s. A more-experienced web designer might use a different technique that requires fewer
<div>s to create the same effect.
<div>s that are redundant (in terms of the final design), but that allow for future revision to the design. In some cases, redundant
<div>s are required to account for variations in that way that different web browsers interpret the CSS language.
<div>in place of a more semantically-appropriate HTML element. For example, they might use a
<div>and CSS to style text to look like a heading, rather than using an HTML heading element (