What are <div> tags used for?

Options
- To replace paragraphs. i.e. p tags
- To logically divide the paragraphs
- To logically divide the document
- To provide space between tables


CORRECT ANSWER : To logically divide the document

Discussion Board
tag

tag is a block level element and it takes full width available.
element is container for other HTML elements.
So this tag seperates document into many sections.

akshatha 09-20-2017 01:43 AM

To logically divide the document

The HTML <div> tag is used for defining a section of your document. Using this tag we can group large sections of HTML elements together and format them with CSS.

Sapna 02-23-2017 12:54 AM

To logically divide the document

The HTML &ly;div> tag is used for defining a section of your document. Using this tag we can group large sections of HTML elements together and format them with CSS.

Sapna 02-23-2017 12:53 AM

Div tag

Correct Answer : To logically divide the document.

The "div" tag is a "division tag". The "div" tag defines a division or a section in an HTML document. The "div" tag is used to group block-elements to format them with CSS.

Jayesh Sonar 02-23-2015 12:08 AM

well

good session for practice

Rajesh S 08-25-2014 04:59 PM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement