What is HTML
Article Index
What is HTML
Elements
.What HTML is made of
Paragraphs and Headings
All Pages


In order to be able to write good HTML, you must first understand exactly what HTML is. The most obvious place to look for this information is in its name: HTML stands for HyperText Markup Language. Let's take those initials apart one by one, starting from the right:
HTML is a language, but not the kind we use in every day life. It is a computer language, and as such it has some specific rules that must be followed. In other words, it has a defined syntax, a strict way in which it must be written, and, when the time comes, read.
Now HTML is also a markup language. What this means is that it takes a document and marks specific parts of it, giving them special meaning. Let us take the following piece of text as an example:


Acme Computer Corp.

Acme Computer Corporation is a technology-based
company that seeks to offer its customers the
latest in technological innovation. Our products
are created using the latest breakthroughs in
computers and are designed by a team of top-notch
experts.

We are based in Acmetown, USA, and have offices in
most major cities around the world. Our goal is to
have a global approach to the future of computing.
Have a look at our product catalog for some
examples of our innovative approach.


What you, as a human, see in the above text is a heading ("Acme Computer Corp.") and two paragraphs of text. However, if a computer were to see the above text, all it would see is a bunch of characters, perhaps arranged in a certain way. We have an active interest in letting the computer know that the above is a heading and two paragraphs. In a larger document, we would like to be able to have the computer produce an outline of the document containing only the headings; or we might want to display the headings in a different style. However, the computer can not do any of these things unless it can see each part of the document for what it is. Thus, we introduce markup to show the computer what is what.
HTML is also a hypertext markup language. Hypertext is text, in any format, with an added feature: parts of the text is linked to other parts of the text, making it easy to jump from one part of the text to another. For instance, in the Acme example above, the phrase "Have a look at our product catalog" hints that such a catalog exists, but the reader doesn't know where to find it. With hypertext, you can link this phrase with the catalog itself, giving the reader an easy way to get to it if he is interested.
But hypertext links are not just shortcuts. Just like markup, they mean something. HTML is all about document semantics. A document by itself may be informative, but to be truly useful, you must have a way to get to its meaning. Once you have a way of encoding the document's semantics, you can manipulate it in many interesting ways. By defining the links from a document to a table of contents that lists it, to the next or previous documents if it is part of a series, to a glossary or copyright notice, we give the document itself more meaning, and hence, more value. The primary purpose of any document is to convey information, and by specifying the semantics of a document we supply even more information, which can only be a good thing. That is, if it is done right.


2.Steps to take


You might have noticed that here the term "HTML document" is used instead of "HTML file." There is a reason for this; HTML documents are not necessarily files on a computer. An HTML document is a series of characters that, through its special syntax, defines a document. These characters may be stored in a single disk file, but this is not necessary. They may be created on the fly by a program, or may (as is most often the case) be received over a network.
HTML was designed primarily as a language to be used for creating World Wide Web pages. I have been learning HTML in order to create a Web page. People have started to use it for other uses, but it might be useful to note that it is not a very good language for other uses. There are fine document formats for all kinds of uses, but HTML was created for the Web, and is most suitable for the Web.
To publish a Web page you need a Web server. A Web server is a program that runs on a computer connected to the Internet that serves out Web pages. The present paper will not cover the topic of setting up a Web server or publishing HTML documents on one.
I am going to describe how to create HTML document. The easiest way is to create an HTML file using a text editor. Note that a text editor is not a word processor. A word processor is a program that creates a document ready for printing, and stores it in its own format. Recent times have seen word processors that try to store their documents as HTML, but they usually do a terrible job of doing this. What you need is a program that edits simple text files. An example would be the Windows Notepad, or Simple Text for the Macintosh. It doesn't matter which program you use, as long as it is a simple text editor. Try to avoid these for now - they might confuse you with HTML features we haven't discussed yet. It is worth starting something really, really simple, like the Windows Notepad, Simple Text for the Macintosh, or one of the hundreds of text editors available on Unix systems.
Now we can create a file, and call it anything we want. On some systems such as Windows, we will need to give it an extension of .html or .htm to indicate that it's an HTML document. For instance, we might want to call it tutorial.html. As we read through this tutorial, we will be told to type things into our text file, and by the end of the tutorial we will have a complete HTML document. In fact, we can stop worrying about typing anything into our file until the end of the tutorial, where we have the complete document listed, so concentrate on reading the tutorial and we can create your HTML file later on if we want to.
In order to view our HTML file, we will need a program that can do this. The technical term for this is an HTML User Agent. A User Agent is a program that can understand HTML documents and process them is some way. One type of user agent is a Web Browser, or just browser for short. After we have created your HTML document, we can open it with our browser and view it. If we can not be bothered to do even that, we have included a link to a copy of the document we are going to create.



 
eXTReMe Tracker
статистика