![]() |
|||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||
|
CHAPTER ONE: What is HTML? |
|||||||||||||||||||||||||
04) Saving Your Work! 01) WHAT IS HTML?HTML (which stands for HyperText Markup Language) is a relatively simple language to learn. HTML is made up of two things: 1) Your text (what you want your Web page to say) and/or your images (graphics, pictures, photographs, etc. and hereafter just called images) and 2) The HTML code, called TAGS. Tags are used to tell the Web browser (Internet Explorer and Netscape are two (2) of the most commonly used browsers, of which I use Internet Explorer to test with and also to view with) what to do. The tag part is a code (usually one or two letters) that specifies the type of effect you want. Tags are always surrounded by the less than (<) and greater than (>) symbols. So, if you see text surrounded by < and >, then it is a tag. For example, <B> is the tag for boldfacing. If you want the phrase "Terry's Web Page" to appear in bold (like it just did, without the quotation marks, of course), you type in: <B>Terry's Web Page</B> The result of the above line of HTML code (hereafter just called code) would look like this because of the usage of the boldfacing tags: Terry's Web Page
The <B> says to a Web browser, "Hey! Look at what follows me. I want it to show up in bold print!". Now, it will continue to bold everything until you tell it to stop with </B>. The forward slash (/) is used as an end tag and </B> says to a Web browser, "Ok! Enough of the bold. Stop it right here!".
As you will learn later, there are several tags for other special
effects, including italics, underlining, paragraphs, lists, page
titles and more. Please refer to Chapter Two of this
tutorial for more information concerning those.
In that line, <B> turns on bold print and </B> turns it off. Everything between those two tags will be in bold print. The line above would look like this: This is bold.
The first line in your HTML file will always be the <HTML> tag. This tag simply tells the Web browser to pay attention because there are HTML tags coming up. What do you think the last line would be? If you guessed </HTML>, you are absolutely correct!correct! So far, here's what our Web page looks like:
<HTML> Since there's nothing between those two tags above, the Web page will be blank. The next set of tags divides the Web page into two (2) parts: The head (<HEAD> and </HEAD>) and the body (<BODY> and </BODY>). You place these tags between your HTML tags. Our Web page now looks like this:
<HTML> Since we have nothing but the very basic HTML tags now, the Web page is still blank. We have only used tags; we haven't added any text or images. What you just saw above is the skeleton of what every Web page starts with.
If you've ever noticed when you look at a Web page,
there is always the name (or title) of the Web page at the very top of your
browser, above the menu bar. This title (<TITLE> and </TITLE>) always goes
inside the <HEAD> section. The title needs to be a short description of
what the Web page is about.
To get that, the HTML code is entered as: <TITLE>RiverMOO, Inc. HTML TUTORIAL: Chapter One</TITLE> It is all typed in on the same line.
In conclusion, below is the basic structure of every Web page. All Web
pages start with this basic structure, which I refer to as the skeleton, and build from here.
<HTML>
Open up a text editor of your choice and type in the basic HTML page above
(If you use Windows on your computer, then Notepad is an excellent and
simple way to start. For further instructions on getting started,
refer to the Getting Started page of this
tutorial). Make
sure you change the <TITLE> to what YOU want YOUR Web page title to be
and also remember not to add special tags, such as bold, to the <TITLE>
area.
Also, the text between the <BODY> and </BODY> should be what you want it
to be. To get started, you can add text similar to this (although you can
put anything you want, as well as much as you want!):
This Web page is currently under construction.
in between <BODY> and </BODY>.
If you find you need help for this exercise, click
here to be shown exactly what to type. Try to do this without the help
first, though. :)
Click here to see what you're finished Web page
should look like right now, providing you typed in the exact same thing as in
this exercise. If it looks pretty bare, remember: The only things that show up
in the actual Web page are those things that are between the <BODY> and </BODY>
tags. And all we put in the sample Web page was "This Web page is currently
under construction.". You can put whatever you want!
Congratulations on the creation of your first Web page, but before you
close the window, read the next section!!!!
Here are some industry standards for saving HTML files:
05)
HOW TO VIEW HTML SOURCE CODE WHILE IN A BROWSER
One of the best ways to learn and better
understand HTML is by examining someone else's HTML code. You can do this
at any time while while in a browser by clicking on VIEW, then SOURCE.
This will give you the source code for that HTML page.
|
|||||||||||||||||||||||||