What is css? Explain three methods of adding style sheet to page with proper code snippet?
Answers
Answered by
5
CSS ( cascading style sheets )is used for make attractive web pages with awesome styles.
It can add styles in HTML elements.
The three methods of adding CSS is ;
• inline - adding css styles in an attribute 'style' in the html element.
eg : <h1 style="color:red;"> Text </h1>
• internal - adding css styles in head part of html page.
eg : <head>
<style>
h1 {color:red;}
</style>
</head>
<body>
<h1>Text</h1>
</body>
• external - putting css styles in an external file an link it to the html page
It can add styles in HTML elements.
The three methods of adding CSS is ;
• inline - adding css styles in an attribute 'style' in the html element.
eg : <h1 style="color:red;"> Text </h1>
• internal - adding css styles in head part of html page.
eg : <head>
<style>
h1 {color:red;}
</style>
</head>
<body>
<h1>Text</h1>
</body>
• external - putting css styles in an external file an link it to the html page
Answered by
0
Answer:
Explanation:
CSS stands for cascading style sheet cascading style sheets are used to formate the layout of web pages they can be used to define text styles table sizes and other aspects of web pages that previously could only be defined in a pages HTML
thanks
Similar questions