ⓘ div – generic flow container # T
The
div
element is a
generic container for flow content that by itself does not
represent anything.
Permitted attributes #
- ⓘ
global attributes
- Any attributes permitted globally.
- aria =
#
- (detailed attribute description to come)
Additional constraints and admonitions #
-
The “align” attribute on the “div” element is obsolete.
Use CSS instead. http://wiki.whatwg.org/wiki/Presentational_elements_and_attributes
Permitted parent elements #
any element that can contain
flow elements
Details #
The
div
can be used with attributes such as
class,
lang,
xml:lang,
and
title
to add additional semantics and structure to flow content.
Typical default display properties #