What are the advantages of Embedded Style Sheets?

What are the advantages of Embedded Style Sheets?

The advantage of an embedded style sheets is that they allow one to define styles for the whole HTML document in one place. Here the style sheet will only affect the page it is embedded in. It also loads immediately with the page, instead of requiring other external files to be loaded. This can benefit the download speed and performance of the webpage.

However, embedded style sheets are best suited for documents with unique design requirements. If the styles need to be applied across multiple documents, then it would be better to link to an external style sheet instead of using an embedded style sheet.

Embedded style sheets also tend to add a lot of markup language to the page, which may end up making the page harder to manage in the future.

Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.