Element has no required attributes, but style & class are common - HTML

Q.  The <div> element has no required attributes, but style and class are common.
- Published on 26 Aug 15

a. True
b. False

ANSWER: True
 

    Discussion

  • Nirja Shah   -Posted on 10 Nov 15
    <div> element
    - This element is a block level element which is used as a container for other HTML elements.

    - This element has no required attributes but style and class are common.

    - When this element is used together with CSS it can be used to style the blocks of contents.

Post your comment / Share knowledge


Enter the code shown above:

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