How to Define a CSS Class Style
Make your HTML document., Create the basic HTML skeleton., Create a HTML element., Give the HTML element a class., Put a "style" tag between the head tags., Call your class., Put the styles your want between the curly brackets. , Enjoy your styled...
Step-by-Step Guide
-
Step 1: Make your HTML document.
As a reminder, it's an opening HTML tag, an opening head tag, a closing head tag, an opening body tag, a closing body tag, and a closing html tag. , It can be a paragraph, heading, or whatever you want. , Do this by inserting "class="classname" inside the opening tag for your element. , You'll put your CSS here. , This is done by putting ".classname { }" in the CSS document. ,, -
Step 2: Create the basic HTML skeleton.
-
Step 3: Create a HTML element.
-
Step 4: Give the HTML element a class.
-
Step 5: Put a "style" tag between the head tags.
-
Step 6: Call your class.
-
Step 7: Put the styles your want between the curly brackets.
-
Step 8: Enjoy your styled HTML element!
Detailed Guide
As a reminder, it's an opening HTML tag, an opening head tag, a closing head tag, an opening body tag, a closing body tag, and a closing html tag. , It can be a paragraph, heading, or whatever you want. , Do this by inserting "class="classname" inside the opening tag for your element. , You'll put your CSS here. , This is done by putting ".classname { }" in the CSS document. ,,
About the Author
Andrea Brown
Enthusiastic about teaching home improvement techniques through clear, step-by-step guides.
Rate This Guide
How helpful was this guide? Click to rate: