HTML

HTML Tutorials- part-6

Written by Saiful Islam

Div tag

<div> tag is used to specify the block space for your required elements. Actually, It helps to manage blocks for your provided elements.

Structure:
Example:

Input

Output

 
This block is for Tech-info24.com

 

 

<div> tag with attributes:

For having a better experience with HTML and CSS this tag is so important for creating a professional design.

Structures and examples of those attributes (for beginner level):

1. Color:

2. Border:

3. Background color:

4. Alignment:

Chart of those examples:

Attributes

Input

Output

Color  

Let’s watch the colorful font

 

Border

 

Look at the red colored border

 

Background color:

 

Choose any colorful background

 

Alignment:

 

This is the centered text

 

About the author

Saiful Islam

Leave a Comment