喵宅苑 MewoGarden × 技术宅社区II | Z站 Z Station 棒棒哒纯文字二次元技术社区

正文

基础术语

作者:月夜猫妖
part3: 来源: http://www.codecademy.com/zh/cou ... fb998b470000202dc8b Basic terminology 基础术语 To learn more HTML, we should learn how to talk about HTML. Already you have seen we use <>s a lot. 为了更多地学习HTML我们因该学习如何谈论HTML。之前你看到我们使用了很多“<>”。 01. Things inside <>s are called tags. 01. 在“<>”之间的被称为标签(标记) 02. Tags nearly always come in pairs: an opening tag and a closing tag. 02. 标签总是与最近的成对存在:一个开始,一个结束 Example of opening tag: <html> 开始的范例标签:<html> Example of closing tag: </html> 结束的范例标签:</html> You can think of tags as being like parentheses: whenever you open one, you should close it. Tags also nest, so you should close them in the right order: the most recently opened tag should be the first one closed, like in the example below. 你可以认为标签的使用就像是括号:无论何时你使用了左括号,你都需要使用一个右括号与它配对,标签也一样。所以你应该让它们以正确的顺序配对:结束标签会与最近的开始标签配对,就像下头的例子一样。 <first tag><second tag>Some text!</second tag></first tag> The last exercise taught us how to set up our HTML file. Everything we do now will go between <html> and </html>. 最新的例子告诉我们如何创建我们的HTML文档。我们将在“<html> ”与“</html>”间填写代码。 Practice makes perfect! One more time: 再来一次熟能生巧: 01. Put in the <!DOCTYPE HTML> tag. 01. 输入“<!DOCTYPE HTML>”标签 02. Put in the <html> opening and closing tags. 02. 输入“<html>”的起始、结束标签 03. Between the <html> tags, write whatever you like. 03. 在“<html>”的两个标签间输入任何你喜欢的东西。 04. Press Save & Submit Code to see what you've written appear on the page! 04. 单击“Save & Submit Code”看你写出的页面。

回复

0%
站点地图友情链接:
喵宅苑
喵空间社区程序
喵宅苑 静态版
宅喵RPG地图编辑器
络合兔
Lanzainc
技术宅
小五四博客
莉可POI
Mithril.js
枫の主题社
Project1
午后少年
机智库
七濑胡桃
xiuno
幻想の日常
魂研社
Nothentai
0xffff
欲望之花
泽泽社长
淀粉月刊
HAYOU