Professional Documents
Culture Documents
Ch-3 Css Types of CSS Inline "Inline-Styles - HTML": Lab Session 3
Ch-3 Css Types of CSS Inline "Inline-Styles - HTML": Lab Session 3
CH-3 CSS
Types of CSS
Inline
“inline-styles.html”
<!DOCTYPE html ">
<html >
<head>
<title>Inline Styles</title>
</head>
<body>
<p>Here is some text</p>
<!--Separate multiple styles with a semicolon-->
<p style="font-size: 20pt">Here is some
more text</p>
<p style="font-size: 20pt;color:
#0000FF" >Even more text</p>
</body>
</html>
Embedded CSS
You can put your CSS rules into an HTML document using the <style> element.
This tag is placed inside <head>...</head> tags.
<!DOCTYPE html>
<html ">
<head>