zoukankan      html  css  js  c++  java
  • 2021.3.6

    今日学习内容:

      第一天  第二天 第三天  第四天   
    所花时间(小时) 4  4.5  4  5  
    代码量(行) 150  100  200  200  
    博客量(篇) 1  1  1  1  
    了解到的知识点 html URL编码 html 文档类型  xhtml   xtml元素  

    XHTML 元素是以 XML 格式编写的 HTML 元素。

    XHTML 元素 - 语法规则

    • XHTML 元素必须正确嵌套
    • XHTML 元素必须始终关闭
    • XHTML 元素必须小写
    • XHTML 文档必须有一个根元素

    XHTML 元素必须正确嵌套

    在 HTML 中,某些元素可以不正确地彼此嵌套在一起,就像这样:

    <b><i>This text is bold and italic</b></i>

    在 XHTML 中,所有元素必须正确地彼此嵌套,就像这样:

    <b><i>This text is bold and italic</i></b>

    XHTML 元素必须始终关闭

    这是错误的:

    <p>This is a paragraph
    <p>This is another paragraph

    这是正确的:

    <p>This is a paragraph</p>
    <p>This is another paragraph</p>

    空元素也必须关闭

    这是错误的:

    A break: <br>
    A horizontal rule: <hr>
    An image: <img src="happy.gif" alt="Happy face">

    这是正确的:

    A break: <br />
    A horizontal rule: <hr />
    An image: <img src="happy.gif" alt="Happy face" />

    XHTML 元素必须小写

    这是错误的:

    <BODY>
    <P>This is a paragraph</P>
    </BODY>

    这是正确的:

    <body>
    <p>This is a paragraph</p>
    </body>
  • 相关阅读:
    jsp大文件(视频)上传问题
    python多版本的pip共存问题解决办法
    buntu系统安装rpm包的方法
    如何查看linux是32位还是64位
    python的if else
    python获取列表唯一值
    python列表转数组
    python文件操作write与writelines的区别
    python中字符串str的strip()方法
    ubuntu16.04安装cloudcompare及打开方法
  • 原文地址:https://www.cnblogs.com/marr/p/14903661.html
Copyright © 2011-2022 走看看