HTML英旅之行 第三天

[ 2005-10-10 09:36:08 | 作者: Admin ] 字号: | |
(三) Tags 标签

Just like our body, we can use tags to divide a webpage into

sections.
就象我们的身体,我们可以用标签来把网页分成几个部分.

1. HTML

The first and last tags in a document should always be the HTML tags.
在一个文档里面一头一尾的标签应该是HTML标签.

We use this tag to tell a browser where document begins and ends.
我们用这个标签来告诉浏览器哪里是文件开头和结束.

The most basic webpage is:
来个最基本的网页:

<HTML>

</HTML>

That's it.
就这么简单.

If you edit it with Notepad or other editors and save it as .htm or

.html document, then you can see a blank page in web brower.
如果你用记事本或其他的工具编辑然后保存为.htm或.html文件, 你就可以在浏

览器中看到一个空白页.

But there is no doubt it is technically a valid webpage.
但无疑这在技术上这是一个有效网页.

2. HEAD

The HEAD tags contain all of the document's header information.
头部标签包括了所有文件中文件头的信息.

One thing I must point out is that header doesn't mean the title we

see at the top of the browser window.
我想指出一点的是头部并不是指我们在浏览器上方看到的标题.

It contains things like title and so on.
它包括一些诸如标题之类的东西.

3. TITLE

We can use a title to indicate our documents.
我们可以用标题来显示我们的网页.

It is easy, just add something between TITLE tags.
很简单,只要在标题标签中加点东西.

It will appear at the top of the browser's title bar.
它会出现在浏览器中的标题栏中.

We can also it this in browser history list.
我们同时能在浏览器中的历史中找到它.

If you like to bookmark a webpage, it can go into your bookmark

file automatically.
如果你想收藏一个网页, 它会自动到你的书签里去的.

4. BODY

We can get the answer by literal interpretation.
我们单从字面上就可以找到答案.

Body contains all of the stuff that will display in the browser window, i.e., the content of the document.
文件体包括一切我们可以在浏览器中看到的东东, 也就是说, 文件的内容.
Share
评论Feed 评论Feed: http://www.85815.com/feed.asp?q=comment&id=876
UTF-8 Encoding 引用链接: http://www.85815.com/trackback.asp?id=876&key=
这篇日志没有评论.
发表
表情图标
[smile] [confused] [cool] [cry]
[eek] [angry] [wink] [sweat]
[lol] [stun] [razz] [redface]
[rolleyes] [sad] [yes] [no]
[heart] [star] [music] [idea]
UBB代码
转换链接
表情图标
悄悄话
用户名:   密码:   注册?
验证码 * 请输入验证码