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

Picture 1 of Div tag in HTML

Picture 2 of Div tag in HTML
Picture 3 of Div tag in HTML
Picture 4 of Div tag in HTML
Picture 5 of Div tag in HTML

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:

Picture 6 of Div tag in HTML

Update 25 May 2019
Category

System

Mac OS X

Hardware

Game

Tech info

Technology

Science

Life

Application

Electric

Program

Mobile