HTML 5 <div> Tag
Example
A section in a document that will be displayed in green:
<div style="color:#00FF00">
<h3>This is a header</h3>
<p>This is a paragraph.</p>
</div> |
Try it yourself »
|
Definition and Usage
The <div> tag defines a division or a section in an HTML document.
The <div> tag is often used to group block-elements to format them with styles.
Differences Between HTML 4.01 and HTML 5
The "align" attribute is deprecated in HTML 4.01, and not supported in HTML 5. Use CSS to align the div's content.
Tips and Notes
Tip: The div element is very often used with CSS to layout a web page.
Note: Browsers usually place a line break before and after the div element.

Whether you're new to XML or already an advanced user,
the user-friendly views and powerful entry helpers,
wizards, and debuggers in XMLSpy are designed to meet your XML
and Web development needs from start to finish.
New features in Version 2010!
- XML editor
- Graphical XML Schema / DTD editors
- XSLT 1.0/2.0 editor, debugger, profiler
- XQuery editor, debugger, profiler
- XBRL validator, taxonomy editor, taxonomy wizard
- Support for Office Open XML (OOXML)
- Graphical WSDL 1.1/2.0 editor & SOAP debugger
- JSON editing & conversion
- Java, C#, C++ code generation
- And much more!
Download a free trial today!
|
|
|
|