Member Sign In
Not a member?

A Wired.com user account lets you create, edit and comment on Webmonkey articles. You will also be able to contribute to the Wired How-To Wiki and comment on news stories at Wired.com.


It's fast and free.

Sign in with OpenID
Sign In
Webmonkey is a property of Wired Digital.
processing...
Join Webmonkey

Please send me occasional e-mail updates about new features and special offers from Wired/Webmonkey.
Yes No

Please send occasional e-mail offers from Wired/Webmonkey affiliated web sites and publications, and carefully selected companies.
Yes No

I understand and agree that registration on or use of this site constitutes agreement to Webmonkey's User Agreement and Privacy Policy.
Webmonkey is a property of Wired Digital.
processing...

Retrieve Sign In

Please enter your e-mail address or username below. Your username and password will be sent to the e-mail address you provided us.

or
Webmonkey is a property of Wired Digital.
processing...

Welcome to Webmonkey

A private profile page has been created for you.
As a member of Webmonkey, you can now:
  • edit articles
  • add to the code library
  • design and write a tutorial
  • comment on any Webmonkey article
Close
Webmonkey is a property of Wired Digital.

Sign In Information Sent

An e-mail has been sent to the e-mail address registered in this account.
If you cannot find it in your in-box, please check your bulk or junk folders.
Sign In
Webmonkey is a property of Wired Digital.

Make an HTML Document

/skill level/
/viewed/
0 Times

Current revision (21:20, 5 November 2009) (edit) (undo)
 
(2 intermediate revisions not shown.)
Line 1: Line 1:
-
<font color="#000080">
+
HTML is the lingua franca of the Net. It's a simple, universal mark-up language that allows web publishers to create complex pages of text and images that can be viewed by anyone else on the web, regardless of what kind of computer or browser is being used.
-
<font size="3" face="Monotype Corsiva">
+
 
-
<b>Angel fire Gossmag
+
Despite what you might have heard, you don't need any special software to create an HTML page; all you need is a word processor (such as SimpleText, BBEdit, or Microsoft Word) and a working knowledge of HTML. And lucky for all of us, basic HTML is dead easy.
-
cool productions</b>
+
 
-
== Introduction ==
+
===It's All About the Tags===
-
<font color="#AE0057">
+
 
-
<font size="3" face="Century Gothic, Comic Sans MS">
+
HTML is just a series of tags that are integrated into a text document. They're a lot like stage directions -- silently telling the browser what to do, and what props to use.
-
<p>Angel fire gossmag cool production is online contains a Museum and health and food provider which give advise on what is good in food, and how to cook food recipes,and showing photography and art on the Museum Gallery, handing information about beauty
+
 
-
advise</p>
+
HTML tags are usually English words (such as blockquote) or abbreviations (such as "p" for paragraph), but they are distinguished from the regular text because they are placed in small angle brackets. So the paragraph tag is <tt>&#60;p&#62;</tt>, and the blockquote tag is <tt>&#60;blockquote&#62;</tt>.
 +
 
 +
Some tags dictate how the page will be formatted (for instance, <tt>&#60;p&#62;</tt> begins a new paragraph), and others dictate how the words appear (<tt>&#60;b&#62;</tt> makes text bold). Still others provide information -- such as the title -- that doesn't appear on the page itself.
 +
 
 +
The first thing to remember about tags is that they travel in pairs. Every time you use a tag - say <tt>&#60;blockquote&#62;</tt> - you must also close it off with another tag - in this case, <tt>&#60;/blockquote&#62;</tt>. Note the slash - / - before the word "blockquote"; that's what distinguishes a closing tag from an opening tag.
 +
 
 +
The basic HTML page begins with the tag <tt>&#60;html&#62;</tt> and ends with <tt>&#60;/html&#62;</tt>. In between, the file has two sections - the header and the body.
 +
 
 +
The header - enclosed by the <tt>&#60;head&#62;</tt> and <tt>&#60;/head&#62;</tt> tags - contains information about a page that won't appear on the page itself, such as the title. The body - enclosed by <tt>&#60;body&#62;</tt> and <tt>&#60;/body&#62;</tt> - is where the action is. Every thing that appears on the page is contained within these tags.
 +
 
 +
===A Basic HTML Document===
 +
<html>
 +
<head>
 +
<title>Summer </title>
 +
</head>
 +
 
 +
<body>
 +
<h1>Summer Vacation</h1>
 +
 
 +
<p>My summer vacation was sunny, silly, and far to short.</p>
 +
 
 +
<p>How many days until winter, it���s far to hot?</p>
 +
 
 +
</body>
 +
</html>
 +
 
 +
So let's create a simple sample page, shall we? The first step, of course, is to create a new text document (remember, it should be saved as "Text Only" or "Plain Text" if you're using a word processor that's fancier than, say, SimpleText) and name it "anything.html" where "anything" is, uh, anything.
 +
 
 +
Your basic document will look something like this:
 +
 
 +
<pre>
 +
<html>
 +
<head>
 +
<title>Summer</title>
 +
</head>
 +
 
 +
<body>
 +
<h1>Summer Vacation</h1>
 +
 
 +
<p>My summer vacation was sunny, silly, and far too short.</p>
 +
 
 +
<p>How many days till Christmas?</p>
 +
 
 +
</body>
 +
</html>
 +
 +
</pre>
 +
 
 +
So within the <tt>&#60;head&#62;</tt> tags, we have the title "Summer," which will appear in the bar across the top of your browser.
 +
 
 +
Within the body tags, we have everything that will appear on the page. In this case it would look something like this:
 +
 
 +
<blockquote>
 +
 
 +
'''Summer Vacation'''<br /><br />
 +
 
 +
My summer vacation was sunny, silly, and far too short.<br /><br />
 +
 
 +
How many days till Christmas?
 +
 
 +
</blockquote>
 +
 
 +
As you might have guessed, <tt>&#60;h1&#62;</tt> is the tag for a headline (the largest headline, in fact) and <tt>&#60;p&#62;</tt>, of course, marks the beginning of a new paragraph. Each paragraph is closed off by a corresponding <tt>&#60;/p&#62;</tt> tag.
 +
 
 +
Seems simple, huh? Well, it is.
 +
 
 +
Especially since you can see what HTML people have used to build any web page you find by simply viewing source. Oh, and don't go thinking you need your own homepage to practice, either. You can save HTML documents on your local drive and then open them up using the Open option under the File menu on your browser.
 +
 
 +
<span id="title_name_el" class="wm_hidden_meta_class" title="Intro to HTML" style="visibility:hidden"> <span id="page_path_el" class="wm_hidden_meta_class" title="/webmonkey/96/53/" style="visibility:hidden"> <span id="author_el" class="wm_hidden_meta_class" title="wtmonkey" style="visibility:hidden"> <span id="creation_date_el" class="wm_hidden_meta_class" title="1999-02-22T24:00:00Z" style="visibility:hidden"> </span></span></span></span>

Current revision

HTML is the lingua franca of the Net. It's a simple, universal mark-up language that allows web publishers to create complex pages of text and images that can be viewed by anyone else on the web, regardless of what kind of computer or browser is being used.

Despite what you might have heard, you don't need any special software to create an HTML page; all you need is a word processor (such as SimpleText, BBEdit, or Microsoft Word) and a working knowledge of HTML. And lucky for all of us, basic HTML is dead easy.

It's All About the Tags

HTML is just a series of tags that are integrated into a text document. They're a lot like stage directions -- silently telling the browser what to do, and what props to use.

HTML tags are usually English words (such as blockquote) or abbreviations (such as "p" for paragraph), but they are distinguished from the regular text because they are placed in small angle brackets. So the paragraph tag is <p>, and the blockquote tag is <blockquote>.

Some tags dictate how the page will be formatted (for instance, <p> begins a new paragraph), and others dictate how the words appear (<b> makes text bold). Still others provide information -- such as the title -- that doesn't appear on the page itself.

The first thing to remember about tags is that they travel in pairs. Every time you use a tag - say <blockquote> - you must also close it off with another tag - in this case, </blockquote>. Note the slash - / - before the word "blockquote"; that's what distinguishes a closing tag from an opening tag.

The basic HTML page begins with the tag <html> and ends with </html>. In between, the file has two sections - the header and the body.

The header - enclosed by the <head> and </head> tags - contains information about a page that won't appear on the page itself, such as the title. The body - enclosed by <body> and </body> - is where the action is. Every thing that appears on the page is contained within these tags.

A Basic HTML Document

<html> <head> <title>Summer </title> </head>

<body>

Summer Vacation

My summer vacation was sunny, silly, and far to short.

How many days until winter, it���s far to hot?

</body> </html>

So let's create a simple sample page, shall we? The first step, of course, is to create a new text document (remember, it should be saved as "Text Only" or "Plain Text" if you're using a word processor that's fancier than, say, SimpleText) and name it "anything.html" where "anything" is, uh, anything.

Your basic document will look something like this:

 
<html>
 <head>
 <title>Summer</title>
 </head>

 <body>
 <h1>Summer Vacation</h1>

 <p>My summer vacation was sunny, silly, and far too short.</p>

 <p>How many days till Christmas?</p>

 </body>
 </html>
 

So within the <head> tags, we have the title "Summer," which will appear in the bar across the top of your browser.

Within the body tags, we have everything that will appear on the page. In this case it would look something like this:

Summer Vacation

My summer vacation was sunny, silly, and far too short.

How many days till Christmas?

As you might have guessed, <h1> is the tag for a headline (the largest headline, in fact) and <p>, of course, marks the beginning of a new paragraph. Each paragraph is closed off by a corresponding </p> tag.

Seems simple, huh? Well, it is.

Especially since you can see what HTML people have used to build any web page you find by simply viewing source. Oh, and don't go thinking you need your own homepage to practice, either. You can save HTML documents on your local drive and then open them up using the Open option under the File menu on your browser.

  • This page was last modified 21:20, 5 November 2009.
Edit this article
Reddit Digg
 
Subscribe now

Special Offer For Webmonkey Users

WIRED magazine:
The first word on how technology is changing our world.

Subscribe for just $10 a year