Web pages are written in
"HyperText Markup Language" or "HTML".
It's very easy to learn. Even if you plan to use a web authoring tool that requires no knowledge of HTML, we recommend learning the basics anyway. Doing so gives you complete control over your web pages. HTML (Hypertext Markup Language) consists of plain text and some commands called "tags". | ![]() |
It is extremely easy to learn.
Once you know it, you can make web pages in any Web authoring program or in a text editor like Windows Notepad or Mac SimpleText. You can do it!
What is HTML?
Without HTML, there would be no World Wide Web.
HTML is easy to learn and easy to use.
In the exercises that follow, you'll learn the basics of HTML by creating two actual Web pages.
| |
What do I need to write HTML?
The good news is you already have everything you need to learn HTML and begin building basic Web pages.
A Web page begins life as a simple text file. | ![]() |
The only tool you'll need to create one is a text editor or word processor that can output ASCII or plain text files.
Chances are good that your favorite word processor will work just fine. On a PC, you can use Notepad, Wordpad, MS Word, WordPerfect, etc. On a Macintosh system, you can use Simple Text.
The only other tool you'll need is a Web browser to view your work.
Armed with only these two tools, you can create Web pages as simple or complex as you like.
| |
What are HTML Tags?
Learning how to build Web pages is essentially just learning how to use HTML tags.
| ![]() |
Most tags occur in pairs that contain the content the instructions act upon, hence they are known as containers.
Confused? Don't be -- the following example should help. Let's say you want to place the word Hello on a Web page so that appears centered on the page. You would do the following:
<.CENTER>Hello<./CENTER>*** The first tag, <.center>, tells that browser what follows is to be centered on the page, and the second tag, <./center>, tells that browser the instruction is complete.
Although much more could be said about tags, the only way to really learn about them is to actually use them.
***We add a period to HTML tags between the < and tag name to show the code in these tutorials. Omit the period in your own html documents. For example: use
| |
The Anatomy of an HTML document: Titles
Now that we have the basics out of the way, let's jump right in and create our first document, or Web page.
| ![]() |
<.HTML>*** <.HEAD> <.TITLE>My First Web Page<./TITLE> <./HEAD> <.BODY> Welcome to my first Web page! <./BODY> <./HTML> This example, which uses only four tags, is about the most basic HTML page you can create.
After you have typed the HTML code for this sample page in your text editor, save it to your hard drive.
Since this is such a basic page, there's little that can go wrong, but if you experienced a problem, there are two possible causes.
Congratulations -- you've just built your first Web page.
Notice the first tag <.HTML> .
The next tag, <.head> tells the browser what immediately follows is the heading section of the document.
<.TITLE>My First Web Page<./TITLE>Whatever text you place within the <.title>...<./title> tags will be displayed at the top of the browser's window, not in the actual page. The title is also what appears in any browser's bookmark or favorites section, as well as in a search engine's listing when the page is found.
A title can be as long as you like, but in practice, you should limit its length to 60 characters or less.
***We add a period to HTML tags between the < and tag name to show the code in these tutorials. Omit the period in your own html documents. For example: use
Now on to the body section:
That's it! Although most Web pages will be far more complex than this, they all follow this basic structure.
Once you've got this sample Web page working, go ahead and change the title and body text, resave the file, and reload the page in your browser.
***We add a period to HTML tags between the < and tag name to show the code in these tutorials. Omit the period in your own html documents. For example: use |