Attribute Tags for HTML
Total Page:16
File Type:pdf, Size:1020Kb
Attribute Tags for HTML
Text formatting tags
Font tag: ….
Bold tag: ….
Italic tag: …..
Indented tag:
…..Sometime you want to indent a sentence or an entire paragraph. That’s when you’ll want to use the blockquote tag:
Small type: ….
Big type: ………
Center type;
Attributes:
Font size: Controls the size of the type from 1 (smallest) to 7 (largest)
Color: Controls the color of text
Face: Controls the typestyle
Font Size 1 to 7
Font Color
Font colors are listed in hexadecimal color code – a combination of six (6) letters and numbers.
On my Web site, In Computer Science Class, there is a link under class files and links to a “Color Picker” and codes.
The font you want colored goes between the two tags
Font Face
Arial Century Schoolbook
Arial Black Courier new
Book Antiqua Garamond
Bookman Old Style Times new Roman
Century Gothic Verdana
………..
Putting it all together
I am learning how to use the horizontal rule, headline, paragraph and line break tags. Writing HTML isn’t as hard as it appears
Other Tags:
Paragraph tag
…………>/p> defines the paragraph. The text between paragraph tags is automatically wrapped. A paragraph tag automatically adds a blank line at the end of a paragraph.
Does not have to be a long paragraph – can be one or two words
Horizontal Rule – Places a horizontal line across the width of a page
DOES NOT NEED TO BE TURNED OFF
Can modify to be a specific width, alignment, and thickness
Example:
This places a horizontal rule across ½ of the page, left aligned and 4 pixels
This places a horizontal rule across ¾ of the page, centered aligned, 2 pixels
Background Color:
The background color tag is put in the
tag
Does not need to be turned off