HTML Review
HTML Review
Tutorial
http://www.w3schools.com/html/default.asp
BASIC Structure
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=iso8859-1" /> <title> Page Title</title> </head> <body> <p> Body Text </p> </body> </html>
Basic Tags
Paragraphs: <p>
<p> sample paragraph</p>
Links Tag
Ordinary link:
<a href="http://www.example.com/">Link-text goes here</a>
Image-link:
<a href="http://www.example.com/"><img src="URL" alt="Alternate Text" /></a>
Mailto link:
<a href="mailto:[email protected]">Send email</a>
Formatting Tags
Defines bold text Defines big text Defines emphasized text Defines italic text Defines small text Defines strong text Defines subscripted text Defines superscripted text
Inline Style
Background:
Font:
Alignment:
HTML Lists
Unordered List:
<ul> <li>Coffee</li> <li>Milk</li> </ul>
Ordered List:
<ol> <li>Coffee</li> <li>Milk</li> </ol>
HTML Forms
<form name="input" action="html_form_action.asp" method="get"> User name: <input type="text" name="firstname" /><br /> Password: <input type="password" name="pwd" /> <input type="radio" name="sex" value="male" /> Male<br /> <input type="radio" name="sex" value="female" /> Female <input type="checkbox" name="vehicle" value="Bike" /> I have a bike<br /> <input type="checkbox" name="vehicle" value="Car" /> I have a car <input type="submit" value="Submit" /> </form>
HTML Frames
<frameset cols="25%,75%"> <frame src="frame_a.htm" /> <frame src="frame_b.htm" /> </frameset>
Style Sheets
External Style Sheets:
<head> <link rel="stylesheet" type="text/css" href="mystyle.css" /> </head>
Exercise
Create your home page Work on the term project home page