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:
Tutorials |
---|
No Content Found. |
Exercises & Assignments |
---|
No Content Found. |
Interview Questions & Answers |
---|
No Content Found. |