- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
XHTML语法标准(国外英文资料)
XHTML语法规范(国外英文资料)
XHTML syntax specification
In the use of XHTML language for Web authoring, we must follow certain grammatical norms. The following detailed explanation, in which the specific content can be divided into the following points.
1. case sensitive
XHTML is sensitive to case, and in XHTML documents, elements that use the same letters, uppercase and lowercase definitions, are different. For example, h and H represent different elements.
Explain
In XHTML, you are required to use lowercase letters to define all elements and attributes in a page. Include properties in the CSS style sheet, also lowercase letters.
2. correctly nested all elements
In XHTML, when elements are nested, they must be closed in the order in which the elements are opened. The code example of the correct nested element is as follows.
ulli/li/ul
The code example of the wrong nested element is as follows:
ulli/ul/li
There are also strict nested constraints in XHTML. These limitations include the following.
??. a elements cannot contain other a elements.
pre elements cannot include object, big, img, small, sub, or sup elements.
button elements cannot include input, textarea, label, select, button, form, iframe, fieldset, or isindex elements.
??. label elements cannot contain other label elements.
??. form elements cannot contain other form elements.
The 3. element must be closed
In XHTML, all page elements have corresponding ending elements. For example, the end element of the body corresponds to /body. The independent elements (such as br, etc.) must also end. The method is in the elements of the right bracket before adding a / to end the elements, for example, is br / br after the end of writing. If there is an attribute in the element, / appears behind all the properties. The sample code is as follows.
img src= pic.jpg /
The 4. attribute must be enclosed in double quotes
All attributes in XHTML, including numeric values, must be enclosed in double quotes. The sample code is as follow
您可能关注的文档
- 2013~2014年丙烷脱氢(PDH)生产工艺路线剖析(国外英文资料).doc
- 2012版深圳牛津七年级第二单元语法及课文(国外英文资料).doc
- 2013年小升初语文测试题及答案(国外英文资料).doc
- 2013年汉语言文学专升本考试大纲(国外英文资料).doc
- 2013年考研英语二测验纲目(国外英文资料).doc
- 2013年青岛市事业单位考试教育类B模拟卷-130422(国外英文资料).doc
- 2013春季华师网院《教育统计与评价》作业答案(国外英文资料).doc
- 2013年9月份测验花费者行动学第一次功课(国外英文资料).doc
- 2013高三落后生转化任务总结(国外英文资料).doc
- 2013年成人英语三级测验动词演习题(国外英文资料).doc
原创力文档


文档评论(0)