1、 外文原稿一 HTML Tutorial - Preface 作者: Three topper L Merrily. 国籍: USA 出处: butt:/wow.Weeper 原文正文: HTML is one of the easiest languages to learn.This tutorial will explain how to write HTML Weepies, what HTML is, and how to program in HTML.HTML stands for Hypertext Markup Language.The only use for HTML
2、is for writing Web pages.A Web page is really a program, only a very simple one.What is easy about HTML is that: 1.There is no couple to make and easy to fix. To use HTML, you can of course use an HTML wizard program which would defeat the whole purpose of this tutorial, or you can use a simple text
3、 editor, save the text as an .hum file (or .HTML for a Mailing, and 2.It is simple coding only.There are no functions, loops.Bugs are almost impose ), and view it with your , such as Newscast or Microcode Internet Explorer. This tutorial is being written in ordinary Notepad, so you dont need anythin
4、g special. If you do not already have a Web browse, you can download: Newscast at wow.N MSIE at wow.M Before anything, HTML is written in tags. Tags are like the command words that make up the language. A tag is written like this: .An example tag would be , , , and others. The entire code is made up
5、 mostly of tags, tags tell the Web page what to do. Sometimes a tag starts something, like for instance will make all the text after it turn bold. Or will make anything after it become the title. But in some instances, like section tags, you will need to end a tag. For example, say you use a tag bef
6、ore a text. Thats all fine and well, but everything after the bold tag will become bold. The entire page. You may only want to make one world bold. Therefore you must end a tag which will stop its actions. To stop a tag you use this format: For example: This is bold! This isnt! Youll learn more abou
7、t other tags in the chapters to come. One good thing about HTML is that it always follows one layout. The following layout is an entire HTML Web page: This is the Title! Welcome to my Web-Page! This is the basic code, called a skeleton layout. You should always start your HTML code in that way. Now
8、lets explain some of the tags. The tags you saw in the example are used only once usually. Here is just an explanation of the layout tags. Each tag in the skeleton layout starts or ends a section. A section in HTML declares when a certain part of the HTML code is beginning. - Starts the HTML section
9、.(Begins the page) - Starts the Header section. This is the Title! - Starts (and ends) the title section. - Starts the Body section.(Main part of page) - Ends the Body section. - Ends the page. The HTML section contains the entire code.The Header section contains the Title section, and some other st
10、uff.The title section contains the text that goes in the title bar at the top of the browse window, like Welcome to My Page! -Newscast. The body section is the main part of the page that contains all the text that appears in the page. HTML Tutorial - Chapter 2 Body Attributes The Body tag has more t
11、o it than just .The tag also controls the color of the page text, the background of the page, and others.An attribute to any tag (in this instance, it will be the tag) is an extra keyword that can be set inside the tag that allows for certain things to be set. To set a body attribute, like the backg
12、round of the page, you simply include the option in the tag and what it is set to. Example: There are a few body attributes that you will learn for now.Background, text, link, and active link. The Background is controlled with either BGCOLOR=color or BACKGROUND=butt:/ If the Background you want is a
13、 solid color, like black, blue, white, red, etc, you use the BGCOLOR option.BGCOLOR accepts BGCOLOR=blue (a color name), or BGCOLOR=Hexadecimal number. A Hex number can do more variant colors, such as gold, turquoise, navy blue, and most other colors, while just typing a color name like blue or whit
14、e is limited to simple colors.A few simple colors are blue, white, black, green, yellow, orange.Mostly first, secondary, and tertiary colors.The BACKGROUND option is for if you want to use a picture as a background.You must use the URL of the picture, like: Graphics in any Web page must be in either
15、 GIF (.gig) or JPEG (.jog) format.The next option is text.Text is the color of all normal text in the page.It follows this format: text=color or text=hexnumber. This follows the same routine as in Background; a color name will accept simple colors, a hex number can do more exotic colors. The next op
16、tion is link.This is the color of all links on the page.Its format is the same as the text option. The next is Blink.This is the color of a link that is being clicked on.For example, if there is a link to wow.M and you click on it, until you let go, that link will turn to the Blink color.It follows
17、the same format as the text option. The last option you will learn is blink.blink sets the color of all links that have been visited in the past.It follows the same format as the text option. NOTE: If you leave out an option in the Body tag, it will be set to a default color. HTML Tutorial - Chapter 3 Text Tags Now that youve learned body options, you can now learn how to add text to the body section, and how to make it look Funny! Before, you learned a little about tags and how they work.Tags are important to text because they can