Explain the various ways to apply CSS styles to a Web page?

There are Four methods of adding CSS to HTML.

  1. Inline: by inserting a style attribute inside an <head> element.
  2. Embedded/Internal: by putting all css inside head using <style> tags
  3. Linked/External: CSS is placed in an external .css file, and linked to the HTML document using a <link> tag.
  4. Imported: Importing a CSS file using @import

Learn more about the similar topics:
No Content Found.
Exercises & Assignments
No Content Found.
Interview Questions & Answers
No Content Found.