Home » HTML Example

HTML Example

From Class:

<!DOCTYPE html>
<html>
<head>
<style type=”text/css”>
h1 {color:red;font-family:”Times New Roman”;
font-size:24px;}
p {color:blue;}
</style>
<title>Learning HTML</title>
<link rel=”shortcut icon” href=”http://www.auburn.edu/template/images/favicon.ico&#8221; />

</head>

<body bgcolor=”black” background=”http://i40.photobucket.com/albums/e208/kealoha74/tiger_background.jpg&#8221; text=”green”>

<h1>Welcome to my <i><b>first web page!</b></i></h1>
<h2>This is a <u>heading</u></h2>
<h3>This is a heading</h3>

<!– Centered Paragraph –>
<p align=’center’> Welcome to my first <font size=4 face=’arial’> <b>web page</b></font>!</p>
<hr>
<!– Table with Border and two columns and two rows –>
<table border=”1″>
<tr>
<td><p>This is one cell</p> </td>
<td> <p>This is Cell two</p></td>
</tr>

<tr>

<td><p>This is the Third cell</p> </td>
<td> <p>This is Cell Four</p></td>
</tr>
</table>
<hr>
<h3>Completed Tasks:</h3>
<!– Numbered List “Ordered List” –>
<ol>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
<h2>Things to do:</h3>
<!– Bulleted List “Unordered List”–>
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>

<a href=”http://www.w3schools.com”><b>This is a link to W3Schools </b></a>
<br><br>
<a href=”http://www.w3schools.com”&gt; <img src=”http://www.w3schools.com/images/w3schoolslogoNEW310113.gif&#8221; height=”30″> </a>

</body>
</html>