Inline style use - HTML

Q.  What is the inline style used for?
- Published on 27 Aug 15

a. To apply style to all the pages
b. To applying a unique style to a single HTML element
c. To define a common style for all HTML elements on a page
d. All of the above

ANSWER: To applying a unique style to a single HTML element
 

    Discussion

  • Nirja Shah   -Posted on 08 Nov 15
    - Inline styling is used for applying a unique style to an single HTML element.

    - It uses the style attribute.

    - It is useful to override a more global style in one specific instance so if we use inline styling in-document and linked the CSS at the same time the inline styling takes precedence.

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