Things You'll Need:
- A basic knowledge of HTML coding
-
Step 1
Basic web pageCreate a basic web page. A basic web page includes HTML, HEAD, TITLE, BODY tags. These tags need ending tags. (Unfortunately, the image for step 1 does not open. Refer to the image in step 2 for information regarding this step)
-
Step 2
Basic web page with contentAdd content to your basic web page. In our example we will be using a paragraph tag to add content. The paragraph tag is used to provide a block of text on a web page. Space is provided between each block of text formatted by paragraph tags.
-
Step 3
Basic web page with STYLE declarationAdd a STYLE tag set to the HEAD section of your web page. A start and ending tag are required and a text/css type is assigned.
-
Step 4
style declaration added to STYLECreate a class declaration named 'mycolor' which assigns a blue color. A dot is placed in front of the class declaration name to activate the class. A class declaration permits style to be assigned to one or more text element. Assign class names that are meaningful to use but do not use underscores (e.g., my_color).
-
Step 5
Results pageAssign the mycolor class to one of the words in the sample paragraph using the SPAN tag. The color change will be applied to the word 'example'. The word 'example' in the RESULTS area would appear to be 'blue' in color.









