Style attribute used to change default style of HTML element - HTML

Q.  What can be used to change the default style of an HTML element?
- Published on 25 Aug 15

a. Default attribute
b. Style attribute
c. Text align
d. Both A & B

ANSWER: Style attribute
 

    Discussion

  • Nirja Shah   -Posted on 10 Nov 15
    Style attribute
    - This attribute specifies an inline style for an element.

    - It overrides any style set globally.

    - This attribute can be used on any HTML element in HTML5.

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.)