Explain the various ways to apply CSS styles to a Web page?
There are Four methods of adding CSS to HTML.
- Inline: by inserting a style attribute inside an <head> element.
- Embedded/Internal: by putting all css inside head using <style> tags
- Linked/External: CSS is placed in an external .css file, and linked to the HTML document using a <link> tag.
- Imported: Importing a CSS file using @import
Learn more about the similar topics?
Interview Questions & Answers
Exercises & Assignments