Unit5 Cascading Style Sheets
Unit5 Cascading Style Sheets
Salve V. S
Cascading Style Sheets (CSS)
CSS (Cascading Style Sheets) is used to control the layout and
appearance of a webpage. It allows you to separate the content (HTML)
from the presentation (design), making your website more maintainable
and flexible.
1.Definition:
Inline CSS:CSS styles are directly applied to an individual HTML element using the style attribute
Definition: CSS rules are written inside the <style> tag within the <head> section of the HTML document.
<head>
<style>
h1 {
color: blue;
text-align: center;
}
</style>
</head>