HTML Developer Question: Download HTML Developer PDF

Explain me what is the hierarchy that is being followed when it comes to style sheets?

Tweet Share WhatsApp

Answer:

If a single selector includes three different style definitions, the definition that is closest to the actual tag takes precedence. Inline style takes priority over embedded style sheets, which takes priority over external style sheets.

Download HTML Developer PDF Read All 75 HTML Developer Questions
Previous QuestionNext Question
Tell me what is a marquee?Tell me what is the use of Canvas element?