Summary of Tags Covered in Unit 4 Lesson 2

 

Tag / Attribute

Description

<blink> </blink>

Text within these tags will blink on and off.

<p> </p>

Begin and end a paragraph

<br />

Line Break – single spaced

<body bgcolor=#0033FF>

 

Changes the background color of the web page.

<hr /> Draws a Horizontal Rule (line)

<hr width = “50%” size = “10”>

Changes the width in pixels or percents while size changes the thickness of the horizontal rule

<hr color="red">

 

Changes the color of the horizontal rule.

<hr width="200" align="left">

 

Aligns the horizontal rule to the left.

<hr width="200" align="right">

 

Aligns the horizontal rule to the right.

<a href = “Filename.html”>File Name</a>

Creates a link to a web page.

<a name = “ label”> Text to be displayed </a>

Creates a named destination to link to within a web page.

<a href = “ #label ”> Text to be displayed </a>

Creates a link to a location within a web page.

<a href=“http://www.google.com” target=“_blank”>Google</a>

 

target=“_blank” opens the web page in a new browser window

<a href=“mailto: anyone@anywhere.com”> Send Email</a>

 

Creates a link to an email address

Body Tag Attributes

Body Tag Attributes

bgcolor = color

 

Changes a background color

text = color

 

Changes a text color

link = color

 

Changes a link color

vlink = color

 

Changes a visited link color

alink = color

 

Changes an active link color

background = Uniform Resource Locator

 

Changes a background image, tiling the picture in the background.

<marquee> Scrolling Text Here </marquee>

 

Creates scrolling text within a web page.

<marquee loop="5"> Your Text Here </marquee>

 

Text scrolls as many times as specified (five times in this example)

<marquee bgcolor="#00ffff">Your Text Here</marquee>  

 

Adds a colored rectangle behind your scrolling text.

<marquee direction="right">Your Text Here</marquee>

 

Changes the scrolling direction: right, left, up, down

 

<marquee width="200"> Your Text Here </marquee>

 

Changes the width and/or height for the scrolling window

 

<marquee height=40 width=50%> Your Text Here </marquee>

 

Changes the width and/or height for the scrolling window

 

<marquee behavior="slide"> Your Text Here </marquee>

 

 

This sliding marquee slides once and stops.

 

<marquee behavior="alternate"> Your Text Here </marquee>

 

Alternates scrolling your text left & right

 

<marquee scrolldelay="200"> Your Text Here </marquee>        

 

This will delay the speed of the marquee.