35-HTML Div

0
277

This tutorial is all about HTML Div.
The <div> tag is a container unit that stores other page elements and divides the HTML document into parts. Webmasters use <div> elements to put together HTML elements and apply CSS styles to all elements at once.

 

For instance, when you place a set of paragraph elements into a <div> element, you can use CSS styles and apply it to all paragraphs at once.

 

Example:

 

Result:

Subheader

This is the content of the paragraph…

Here’s another content of the paragraph.

 

Another Example:

Result:

Subheader

This is the content of the paragraph…

Here’s another content of the paragraph.

 

 

 

Readers might read also:

 

Facebook Comments

LEAVE A REPLY

Please enter your comment!
Please enter your name here