-
-
-
什么是 HTML? 什么是 HTML文件?What is HTML? What are HTML files?
HTML 表示超文本标示语言( Hypertext Markup Language)。
HTML 包含一些指令可用来标示你的文字。透过网页浏览器检视时,那些难看的指令不会显示在页面上,而是会影响你的文字外观。HTML 文件就是加注有 HTML 的文字文件。
HTML stands for Hypertext Markup Language. HTML comprises of a number of commands that you can use to annotate your text. When viewed through a web browser, those ugly commands will not appear on screen. Instead, the commands will affect the appearance of your text. HTML files are simply text files with HTML annotations added to them.
例如,你有一行文字:暴风雨的黑夜。For example, say you have a line of text:
It was a dark and stormy night.
我们用HTML加上粗体:This is how we boldface the text with HTML:
<b>暴风雨的黑夜。<b><b>It was a dark and stormy night.</b>
从浏览器看的样子是:When viewed through a web browser, it looks like this:
暴风雨的黑夜。 It was a dark and stormy night.
一点都不难吧? 在 HTML中,我们称这些为标记标签。你可以在任何文字编辑器中制作 HTML 网页,从 Microsoft Word 到 Windows Notepad都行。
我在 Apple's Stickies 上随便做了一个网页,就像上面的一样。记得要以 '.html' 储存。 ('.htm' 有时也可以,但保持一致较好 )
Not too difficult, eh? In HTML, we call those annotations tags. You can create HTML pages in any text editor, from Microsoft® Word to Windows® Notepad. I have cooked up quick-and-dirty pages in Apple's Stickies, just like the one above. Just remember to save your files with a '.html' at the end. ('.htm' sometimes works, but it helps to be consistent)
如何学习 HTML?How do I learn HTML?
很可惜,这堂课的范围并不在于教导HTML细节。这不是一个“如何做某某东西”的课程。但是网络上有一些很好的HTML 入门网站,如果你要以写HTML 网页为第一个专题,你应该要仔细研读。Unfortunately, teaching all the nuts and bolts of HTML is beyond the scope of this class. As Ed keeps repeating, "this isn't a how-to class". However, there are some excellent primers on HTML on the web, which you should examine carefully if you want to write HTML pages for your first project.
有很多这样的网站。找一个容易明白的网站,并且花点时间研究教学影片和范例,然后再开始你自己的网页设计。
There are many, many more on the web. Find one that's easy to read and take time to work through their tutorials and examples before starting on your own page designs.
如何做出超炫的网页?How do I make Kickass Web Pages?
你不需要表现HTML /Java /cgi-bin的各种高难度花招来争取高分。专注在你的写作风格和想法,而不是在两星期内成为 HTML高手。简单的网页和用心琢磨的文字,胜过花俏而没内容的网页。所有的网页出版品都是如此,尤其是这堂课。
此外,简单的网页在许多不同浏览器和计算机上的呈现较为一致,让你可以更轻松报告。
You don't really have to pull all sorts of weird HTML/Java®/cgi-bin tricks to do well in this class. Concentrate on your writing style and your ideas, rather than trying to master HTML in two weeks. A simple page with well-chosen words and sentences is much more desirable than a pretty page with little content. This applies to most web publishing, but is particularly relevant in this class. Plus, a simple web page is more likely to look consistent over many different computers and browsers, which makes presenting your page much easier.
当然,如果你是个中高手,想要以与众不同的方式说故事,那就尽情发挥吧!以各种方式将你的想法以文字和影像呈现出来,但是不要让网页技巧与你的故事喧宾夺主。Of course, if you're already well-versed in all sorts of web tricks and would like to use them to tell stories in a radically different way, be our guest. And by all means, put thought into the layout of your text and images. But don't obsess over the technology at the expense of your story.
The Bare Bones Guide to HTML 解救我好几次。开始学 HTML 编码时,记得随时参考。The Bare Bones Guide to HTML has saved my hide over and over again. Keep it by your side when you're starting your HTML coding session.