Professional Documents
Culture Documents
HTML Tag
<html>
All kinds of coding goes in-between this opening and closing tag. Note
the forward slash in the closing tag.
</html>
All web pages should start and end with these tags
Title Tag
<head>
<title>Title goes here</title>
</head>
This adds a title that appears at the top of the web browser window.
Important because this is the text that gets saved when the user
bookmarks a page. Title carefully if you want someone to get back to
your site!
Example: The Daily News - Homepage
Body Tag
<body>
All body text and visible content on the page goes between these
tags.
</body>
Text Formatting
You may also come across this, which also creates bold text:
<strong>some text here</strong>
<i>text</i>
Guess what this one does?
Style
Need to specify a font, point size, color or alignment? You’ve got to do
it with style.
Examples
<body style="background-color:yellow">
<body style="background-color:#ffff00">
Changes the background color of an entire page. For a list of colors
names that are safe to use, do a search for the term or see:
http://www.w3schools.com/html/html_colors.asp
Example 2 uses a “hexadecimal number.” For a list of them do a
search for the term.
Paragraph
<p> ... </p>
Heds
<h1>Largest</h1> (Equivalent to 24 pt)
<h2> Next Largest </h2> (Equivalent to 18 pt)
<h3> Medium </h3> (Equivalent to 14 pt)
<h4> Smaller </h4> (Equivalent to 12 pt)
<h5> Even smaller </h5> (Equivalent to 10 pt)
<h6>Tiny</h6> (Equivalent to 8 pt)
Email link:
<a href="mailto:someperson@somplace.com">Click to email
me.</a>
Images
To add a photo or other art (jpg, gif) to a page use the “img” tag. Img is
also a so-called “empty tag,” so you know what that means: add a
space and forward slash to the end of the tag!
The img tag can take attributes that control the appearance or actions
of an image.
Examples:
Lists
Bulleted list:
<ul>
<li>First item </li>
<li>Second item </li>
<li>Third item </li>
</ul>
Numbered list:
<ol>
<li> Item 1 </li>
<li> Item 2 </li>
<li> Item 3 </li>
</ol>
Creates this:
1. Item 1
2. Item 2
3. Item 3
(OL stands for “ordered list.”)
Horizontal Rule
<hr />
HR Examples:
Blockquote
Produces this:
Comment
Example:
<!—The next line of code controls the color of the text -->
<html>
<head>
<title>The Daily News: Welcome</title>
</head>
<body>
<p>Here’s some body text. It’s great reading. Here’s some body text.
It’s great reading. Here’s some body text. It’s great reading.</p>
<p>Here’s some body text. It’s great reading. <a
href="http://www.site.com">This is a text link.</a> It’s great
reading.</p>
<p><img src="photo.jpg" alt="This is a photo">Here’s some body
text. It’s great reading. Here’s some body text. It’s great reading.
Here’s some body text. It’s great reading.</p>
</body>
</html>