HTML and CSS Reference
In-Depth Information
Table 1-1. The “My games” Annotated Links Code
Code
Explanation
<html>
Opening html tag
Opening head tag
<head>
<title>Annotated links</title>
Opening title tag, the title text and closing
title tag
<body>
Opening body tag
<h1>My games</h1>
Opening h1 tag, text and then closing h1
tag. This will make “My games” appear in a
big font. The actual font will be the default.
<p>
Opening p for paragraph tag
The <a href="craps.html">Dice game</a> presents
the game called craps.
Text with an a element. The opening a tag
has the attribute href set to the value
craps.html. Presumably this is a file in the
same folder as this HTML file. The contents
of the a element—whatever is between the
<a> and the </a> —will be displayed, first in
blue and then in mauve once clicked, and
underlined.
</p>
Closing p tag
<p>
Opening p tag
The <a href="cannonball.html">Cannonball</a> is
a ballistics simulation. A ball appears to move
on the screen in an arc. The program determines
when the ball hits the ground or the target. The
player can adjust the speed and the angle.
See the previous case. The a element here
refers to the cannonball.html file and the
displayed text is Cannonball.
</p>
Closing p tag
<p>
Opening p tag
Search WWH ::




Custom Search