Glubase - share your knowledge


All / Computers / Programming / HTML / XHTML





  • View Command

HTML / XHTML Reference

HTML / XHTML div definition

Browser support
IEFFOpSaf
FullFullFullFull

Type: block-level element

Syntax

<div> ... </div>

Description

Div is a block element that is used to add content with a certain style.

Attributes

Attribute Description
align Horizontal alignment. This is deprecated in HTML4. The following values are possible:

Common attributes.

Example

[Try this example yourself]
<div style="text-decoration:underline;">
Division text.
</div>

Output

Division text.
  • Comments

No comments added.