Div tag in HTML
Tags are used to define a section or a region in HTML text.
Definition and usage
Card
used to define a section or a region in HTML text.
Card
Group content components into one block to format using CSS or to perform certain tasks with JavaScript.
Browser support
Div tag in HTML Picture 1




There is no difference of this tag between HTML 4.01 and HTML5.
TIP : Element
Often used together with CSS to organize web layouts.
Note : By default, browsers always put line breaks before and after the element
. However, this can be changed with CSS.
Structure
For example
Here are some documents.
This is a title in a div tag
This is some text in a div tag.
Here are some documents.
Show browser:
Div tag in HTML Picture 6
4.5 ★ | 2 Vote