Formatting Tags
What is an Attribute? ◦ Describes in detail what the tag is meant to display ◦ Example: BGCOLOR, ALIGN, HREF
What is a value? ◦ Tells the attribute what it should change to on the web page ◦ Example: (=) ◦ - changes the background color to green Value Changes to green
The number 00FF00 is a Hexadecimal Does anyone have any idea what this means? It’s a number system of 16 instead of 10 From 0-9 and A-F
Can interchange any of the numbers and letters 6 numbers long ◦ Will make a color Any guess on how many numbers it can make? ◦ 16 million different numbers
Background color tag ◦ Also known as the background color attribute ◦ 4 Parts to this tag 1.Body tag which opens it 2.BGCOLOR – The attribute 3.= sign – The Value 4.The number of the color
Start with the body tag ◦ <BODY Add BGCOLOR to your open body tag ◦ <BODY BGCOLOR Insert the = sign ◦ <BODY BGCOLOR= Insert the number of the color with a # sign ◦
When inserting the number must have a # sign before you insert the number Don’t need to close it ◦ Can be inserted anywhere in the body ◦ Cannot be outside the body tabs ◦ Can be the body tag
Font color tag ◦ Also known as the font color attribute ◦ 4 Parts to this tag 1.Font tag which opens it 2.COLOR – The attribute 3.= sign – The Value 4.The number of the color Almost identical to background color
Start with the Font tag ◦ <FONT Add COLOR to your open Font tag ◦ <FONT COLOR Insert the = sign ◦ <FONT COLOR= Insert the number of the color with a # sign ◦
When inserting the number must have a # sign before you insert the number Must close this tag ◦ Before the fonts you which to change color ◦ Close it after
My top three favorite sports, In no particular order (sport1) (sport2) (sport3)
Align tag ◦ Also known as the paragraph align attribute ◦ 4 Parts to this tag 1.P tag which opens it 2.Align – The attribute 3.= sign – The Value 4.The location of the alignment
Start with the Align tag ◦ <P Add Align to your open Paragraph tag ◦ <P ALIGN Insert the = sign ◦ <P ALIGN = Insert the location of alignment ◦
Aligns anything connected to the paragraph Close it with My top three favorite Movies (movie1) (movie2) (movie3)
Creates a horizontal line Usually used after titles My Favorites (Your Name) Things that I Like