Div
| Description | A generic container used to group content that shares common attributes or properties, without imparting any specific semantic meaning. |
|---|---|
| Namespace | 1.7 2.0 |
| Category | grouping |
Attributes
Specifies how the element is placed relative to surrounding content (e.g., block-level or inline flow).
Defines the direction of text flow (e.g., left-to-right, right-to-left, or vertical).
Sets the background color for the element’s content area.
Specifies the color of the border around the element.
Indicates the style of the border (e.g., solid, dashed, dotted).
Defines the thickness of the border line in user space units (such as points).
Determines the space between the element’s border (or boundary) and its inner content.
Applies the primary color (fill or stroke) for the text or graphic content.
Specifies the number of columns for multi-column layouts.
Indicates the spacing (gap) between columns in multi-column layouts.
Specifies the width of each column in multi-column layouts.
Main indicator of type. This semantic association allows tools to present and support interaction with the object in a manner that is consistent with user expectations about other objects of that type.
Differences
Well tagged PDF:
The 'Div' element in Well-Tagged PDF is a generic container used to group content when no more specific semantic element applies. It supports content reusability and logical grouping without imposing strict semantic meaning.
For Well-Tagged PDF, the 'Div' element should be used to enclose related content elements, ensuring that they are grouped logically in the structure tree. Consistent tagging and proper nesting are essential for enabling effective content extraction and reflow.
PDFUA:
In PDF/UA, the 'Div' element serves as a fallback container when no specific semantic role is applicable. It helps maintain the document’s structure and supports navigation by assistive technologies.
PDF/UA requires that when a 'Div' element is used, it is integrated within a fully tagged structure tree and, where possible, accompanied by appropriate alternate text or headings to clarify its purpose.
Use cases
Tag Relationships
Permitted Child Tags
Click on any tag to view its details.