html标签语法规范及关系分类

前面我们说网页本质是一个html文件,所以我新建一个文件,把html码写到文件当中,在桌面建立一个文件夹,今天是htlm码的,第1天打开新建一个案例,在案例中新建一个文件,文档命名为01-html的语法规范,写完后再修改文件后缀名,格式按调整字号大小,我们说html是一种超文本标记语言是含有各种各样的标签,然后进行书写,那么标签也有自己的语法规范,标签都包含在一对尖括号内。
然后书写想要的单词标签,基本上我们的标签,第1个与第2个分别区别的符号是反斜杠,后面有无这个符号,html /html这就是一对标签,记住我们的标签必须出现在尖括号的内部,并且成对出现。第1个,叫做开始标签,第2个叫做结束标签,结束标签和开始标签区别就是左尖括号后跟了一个反斜杠,是从右上到左下,这个我们也称之为双标签,有些特殊的标签是单标签只出现一个。
我们只要在单词标签后面跳一个空格加反斜杠,所以总结一下标签语法规范,关键词,标签使用,必须使用尖括号,单标签的语法规范是尖括号内写上单标签的单词,接一个空格加一个反斜杠,并且要空格与反斜杠要记住,我们的双标间成对出现,第1个称之为开始第2个结束,紧接着根据标签的关系分为两大类,
一种叫做包含,另一种叫做并列,所谓包含就是一个标签下,包含着另外的一个标签,或者说可以理解为嵌套的一个关系,比如,html下面有一个title的一个标签,我们说html包含titke包含关系,里面就是父与子关系。我们再看第2个例子,head body它们是并列写在一起的,这一种我们叫并列关系,就好比兄弟关系,
html在上head body在下互相并列,即html包含body也同时包含head我们把head与body称之为并列关系,总结一下,标签要么就是包含关系,要么就是并列关系,这就是我们的标签关系,语法规范一定要严格遵守。单标签,记得加上空格加反斜杠。双标签只在结束标签左尖括号后加反斜杠,而且是成对的一个出现。
We said in front of the web page is an HTML file, so I create a new file, writes the HTML code files, on your desktop to create a folder, today is HTLM code, open a new case 1 day, create a new file, in case the document named 01 - HTML syntax specification, finish and then modify the file suffix, format to adjust font size according to size, we say that HTML is a hypertext markup language is contains a variety of labels, then writing, then label also has its own grammar specification, label is contained in a pair of brackets.
And then we write the word tag that we want, basically our tag, the first symbol and the second symbol that we want to distinguish is the backslash, with or without that symbol, HTML/HTML that’s just a pair of tags, remember our tags have to be inside the Angle brackets and come in pairs. The first one is called the opening tag, and the second one is called the closing tag. The difference between the closing tag and the opening tag is that the left Angle bracket is followed by a backslash, from the top right to the bottom left. This is also known as a double tag, and some special tags are single tags where only one tag appears.
We just behind the word tag jump a space with a backslash, it summarize the tag syntax specification, key words, label use, must use the Angle brackets, single tag syntax specification is written within Angle brackets single label word, a space with a backslash, and the blank space with a backslash, keep in mind that our double standard rooms come in pairs, 1 call start a second end, and then according to the relationship of the label is divided into two categories,
One is called inclusion, and the other is called juxtaposing, and inclusion is a tag that contains another tag, or you can think of it as a nested relationship, for example, a tag that has a title underneath it, and we say that HTML contains the titke inclusion relationship, which is the parent and child relationship. Let’s look at the second example, the head body which is juxtaposed, this is what we call a juxtaposed relationship, it’s like a sibling relationship,
HTML is juxtaposed above and below the head body, so HTML contains both the body and the head and we call them juxtaposed, so to summarize, tags are either inclusive or juxtaposed, so that’s what we call tag relations, and the syntax is to be very strict. Single label, remember to add space and backslash. The double label is only followed by a backslash after the left Angle bracket of the closing tag, and it comes in pairs.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值