


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The use of the <div> tag in HTML to structure a document into sections or divisions. The <div> tag is a logical block tag that has no predefined meaning or rendering. Divisions are more significantly useful when used in conjunction with style sheets. syntax and an example program to illustrate the use of the <div> tag.
Typology: Study notes
1 / 4
This page cannot be seen from the preview
Don't miss anything!



The tag is used to structure HTML document into sections or divisions. A is a logical block tag that has no predefined meaning or rendering Divisions are more significantly useful when used in conjunction with style sheets. Rather then applying the formatting to the element itself a - - - -
- - - - - - - -
Example Program:
HTML div Tag This is first group <p>Following is a list of vegetables</p> Beetroot Ginger Potato Radish This is second group
Following is a list of fruits
Apple Banana Mango Strawberry
Output: