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:
Update 25 May 2019
You should read it
Maybe you are interested
Hubble Telescope extremely rare photo of the moment of the Supernova explosion Fastest star in the Milky Way, speed 8,226,967 km/h Astrophysics professor teaches how to jump into a black hole so it's 'safe' and possible events Discovered organic molecules that can make life in the center of the Milky Way The interaction between the Milky Way and a satellite galaxy is creating many new stars One of the brightest stars in the sky is about to explode