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
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:
Discover more
Share by
Kareem Winters
Update 25 May 2019
You should read it
- Basic examples of HTML
- eQuiz - Multiple choice test on HTML knowledge
- Paths in HTML
- Why write neat and organized HTML?
- HTML form
- The Quiet Details That Make a Sports Betting Platform Feel Reliable
- Instructions on creating toy set images with ChatGPT AI
- How are AI agents changing the journalism industry?
- Tag aside in HTML
- CSS color coding, standard color code in website design
- Block and inline elements in HTML