Style
Style
The tag is used for declaring style rules within an HTML document. This style tag <style>
is used to style all sorts of all aspects of our web page such as fonts, sizes, and layouts.
Examples
Style
Using <style>
to apply a simple style sheet to an HTML document
<style>
h1 {color:red;}
p {color:blue;}
</style>
Text Align Property
Aligning all paragraphs with the right side of the page.
p {
text-align: right;
}
Syntax
<style>
Tips
- Each HTML document can contain multiple
<style>
tags. - Each
<style>
tag must be located between the<head></head>
tags.
Additional Information
For more information, see http://www.w3schools.com/tags/tag_style.asp.
Found a bug in the documentation? Let us know at support@code.org.