Inline, Embedded, External CSS part 2
Embedded/Internal CSS
Internal styles are defined within the <style>element, inside the head section of an HTML page.
For example, the following code styles allparagraphs:<html>
<head>
<style>
p {
color:white;
background-color:gray;
}
</style>
</head>
<body>
<p>This is my first paragraph. </p>
<p>This is my second paragraph. </p>
</body>
</html>
All paragraphs have a white font and a gray background:
An internal style sheet may be used if one single page has a unique style.
Comments
Post a Comment