HTML

Introduction

Document tags

Example:

<html>
<head>
<title>Document name</title>
</head>
<body>
Visible text
</body>
</html>

Formatting tags

Example:

<h1 style="font-family:verdana">A heading</h1>
  <p style="font-family:courier">A paragraph</p>
  <p style="font-family:verdana;font-size:80%;color:green">
  Another paragraph. </p>

Links and Anchor tags

Example: Absolute URL

<a href="http://www.yahoo.com"> Yahoo ! </a>

List tags

Example:

<ol>
<li> CPU </li>
<li> Hard drive </li>
</ol>

Table tags

Tables can be used to present data and also for alignment purposes such as placing graphics to the left or right of text and creating

Example:

<table>
<tr>
  <td>      </td>
  <td>Babies</td>
  <td>Adults</td>
</tr>
<tr>
  <td> Deer </td>
  <td> 10   </td>
  <td> 13   </td>
</tr>
<tr>
  <td> Bear</td>
  <td> 25  </td>
  <td> 50  </td>
</tr>
</table>

Image tags

Example:

<img scr="pic1.gif" width=300 height=200>

Frames

Example:

<frameset cols="120,*">
<frame src="contents.htm">
<frame src="frameA.htm" name="showframe">
</frameset>

Forms

<form action="form_processing.asp" method="get">
First name:
<input type="text" name="fname" size="20"><br>
Last name:
<input type="text" name="lname" size="20"><br>
<input type="submit" value="Submit" />
</form>

<p>
If you click the "Submit" button, you will send
your input to a new page called form_processing.asp.
</p>

Other

Example:

<head>
<meta name="description" content="HTML stuff" />
<meta name="keywords" content="HTML, DHTML, CSS, XML, JavaScript, Java" />
</head>

Projects

  1. My first web page.