+ All Categories
Home > Education > Html Study Guide - Heritage

Html Study Guide - Heritage

Date post: 01-Nov-2014
Category:
Upload: vergetec
View: 147 times
Download: 0 times
Share this document with a friend
Description:
Use these notes to study for HTML quiz and HTML portion of exam
Popular Tags:
19
HTML
Transcript
Page 1: Html Study Guide - Heritage

HTML

Page 2: Html Study Guide - Heritage

Review

What does HTML stand for?

Hypertext Markup Language

What are tags?

Codes which the __browser__ reads and interprets for _display_ to the user.

Page 3: Html Study Guide - Heritage

Review

Write the HTML code to make your first name bold and your last name italicized.

<b>Tina</b> <i>Abbott</i>

What are the alternate tags for bold and italics?

Strong and EM

Page 4: Html Study Guide - Heritage

Review

Write the basic structure for an HTML document:

<HTML>

<HEAD>

<TITLE>…</TITLE>

</HEAD>

<BODY>

</BODY>

</HTML>

Page 5: Html Study Guide - Heritage

Review

__ <P>____Insert the beginning and ending tag around this block of text to make it a paragraph. Blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah__</P>______

What is the tag for a line break?

<BR>

What is its ending tag? There isn’t one!

Page 6: Html Study Guide - Heritage

Review

What is the code to create a bulleted list?

<UL>

<LI>…</LI>

<LI>…</LI>

</UL>

(UL stands for Unordered List. LI stands for List Item.)

Page 7: Html Study Guide - Heritage

Review

Write the code to create a numbered list in HTML:

<OL>

<LI>…</LI>

<LI>…</LI>

</OL>

(OL stands for Ordered List.)

Page 8: Html Study Guide - Heritage

Review

Write a font tag that changes the words below to helvetica, size 3, white:

<FONT face=“Helvetica size=“3” color=“white”>

Change my text

</FONT>

Page 9: Html Study Guide - Heritage

Review - Attributes

What are attributes?

Attributes modify tags

How is a tag structured with attributes?

<TAG attribute=“setting”>

What is the attribute setting always enclosed in? quotation marks

Page 10: Html Study Guide - Heritage

Review - BODY

Write the Body tag that makes the entire webpage background navy.

<BODY bgcolor=“navy”>

Write the Body tag that makes the entire webpage use a tiled image called bluebg.gif

<BODY background=“bluebg.gif”>

Page 11: Html Study Guide - Heritage

Review - Hyperlink

Hyperlink the words below. Link them to www.heritagehawks.org

<A href=http://www.heritagehawks.org>

Learn about Heritage

<A>

Page 12: Html Study Guide - Heritage

Review - IMG

Write an image tag for an image called dog.gif in the images directory.

<IMG src=“images/dog.gif”>

Page 13: Html Study Guide - Heritage

Review - IMG

What image file types are supported on the web?

.png

.gif

.jpg (.jpeg)

File sizes should be kept under what size?

30 kb !!!!!!!!!

What is the ending tag for IMG? There isn’t one!

Page 14: Html Study Guide - Heritage

New Attribute for BODY

You can use the TEXT attribute within the BODY tag to set the text color of an entire page.

Example:

<BODY bgcolor=“black” text=“white”>

The above sets the page color to black and the text color to white.

Page 15: Html Study Guide - Heritage

HTML Tables

Tables in HTML are like tables in Word.

They help add structure to a page.

Three tags are used to create tables.

<TABLE>…</TABLE> encloses the entire table.

<TR>…</TR> stands for Table Row and encloses an entire row, which is made up of Table Data cells

<TD>…</TD> stands for Table Data and represents a column within a row.

A table can have multiple rows (TRs).

A row can have multiple data cells (TDs)

Page 16: Html Study Guide - Heritage

HTML Table Example

This code: Will appear like this:

<TABLE><TR>

<TD>Name</TD><TD>Grade</TD>

</TR><TR>

<TD>Jane Smith</TD>

<TD>Senior</TD>

</TR></TABLE>

Name Grade

Jane Smith Senior

Page 17: Html Study Guide - Heritage

HTML tables

How would you set up a table with 2 rows and 3 columns?

<TABLE>

<TR> (this is the top row)

<TD>…</TD> (this is the left column)

<TD>…</TD> (this is the middle column)

<TD>…</TD> (this is the right column)

</TR>

<TR> (this is the bottom row)

<TD>…</TD> (this is the left column)

<TD>…</TD> (this is the middle column)

<TD>…</TD> (this is the right column)

</TR>

</TABLE>

Page 18: Html Study Guide - Heritage

Table Attributes

Border – specifies the thickness, in pixels, of the table border.

Border=“0” for no border

Cellpadding – defines the space, in pixels, INSIDE cells.

Cellspacing – defines the space, in pixels, BETWEEN cells.

Example:

<TABLE BORDER=”0” CELLPADDING=”2” CELLSPACING=”10”>

Page 19: Html Study Guide - Heritage

TR and TD Attributes

Align – left, right, or center

Valign – vertical alignment – top, middle, or bottom

BGCOLOR – background color

Width – in pixels or percentage of total space available

Height – in pixels or percentage of total space available

Examples:

<TR ALIGN=”center” VALIGN=”middle” BGCOLOR=”#336677” WIDTH=”50%”>

<TD ALIGN=”Left” VALIGN=”bottom” BGCOLOR=”#FFFFFF” WIDTH=”25%”>


Recommended