The style Tag
<head>
<style>
p {
color: red;
font-size: 20px;
}
</style>
</head>
Fortunately, HTML allows you to write CSS code in its own dedicated section with the <style> element. CSS can be written between opening and closing <style> tags. To use the <style> element, it must be placed inside of the <head> element.
After adding a <style> tag in the head section, you can begin writing CSS code.
Again, the details of the CSS syntax in the example above aren't important at the moment.
Post a Comment