HTML语言指南-毕业论文外文翻译.doc
《HTML语言指南-毕业论文外文翻译.doc》由会员分享,可在线阅读,更多相关《HTML语言指南-毕业论文外文翻译.doc(24页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、中英文翻译HTML Tutorial - PrefaceHtml is one of the easiest languages to learn. This tutorial will explain how to write Html webpages, what Html is, and how to program in Html. Html stands for HyperText Markup Laguage.The only use for Html is for writing web pages. A web page is really a program, only a
2、very simple one. What is easy about HTML is that: 1. There is no compiling, and 2. It is simple coding only. There are no functions, loops. Bugs are almost impossible 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 tutori
3、al, or you can use a simple text editor, save the text as an .htm file (or .html for a Macintosh), and view it with your browser, such as Netscape or Microsoft Internet Explorer. This tutorial is being written in ordinary Notepad, so you dont need anything special. If you do not already have a web b
4、rowser, you can download: Netscape at MSIE at HTML Tutorial - Chapter 1 Tags, and the Skeleton LayoutBefore 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. Therefor 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 about
7、 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 let
8、s 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 stu
10、ff. The title section contains the text that goes in the title bar at the top of the browser window, like Welcome to My Page! -Netscape. 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 AttributesThe 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 bac
12、kground 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= If the Background you want is a so
13、lid 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 white
14、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: body BACKGROUND= Graphics in any web pag
15、e must be in either GIF (.gif) or JPEG (.jpg) 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 inBackground; a color name will accept simple colors, a hex number can do more exoti
16、c colors. The next option is link. This is the color of all links on the page. Its format is the same as the text option. The next is alink. This is the color of a link that is being clicked on. For example, ifthere is a link to and you click on it, until you let go, that linkwill turn to the alink
17、color. It follows the same format as the text option. The last option you will learn is vlink. Vlink 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. HTM
18、L Tutorial - Chapter 3 Text TagsNow that youve learned body options, you can now learn how to add text to the body section, and how to make it look FuNkY! Before, you learned a little about tags and how they work. Tags are important to text because they can change the way text looks, and acts. Lets
19、take a look at an example to learn a few basic tags. Text ExampleThis is my first, ordinary paragraph.This is my second, bold paragraph.This is my third, italics paragraph.This is my fourth, underlined paragraph.This is my fifth, BlInKiNg paragraph.This is my last, centered paragraph.The tag stands
20、for paragraph. It starts text on a new line. Without , all the text would be in one line and wrapped around, and it would look pretty messed up.In the second paragraph, there was a (or for full) tag. Bold makes all text inside of it become bolder. As you learned before, some tags need to be ended. T
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- HTML 语言 指南 毕业论文 外文 翻译
限制150内