html consolidation

HTML (HyperText Markup Language) basis

  1. HTML file is plain text file (plain text file)
    plain text file is such a file:

    • Only text, no style ;
    • Editor, such as Notepad readable by plain text, not garbled
  2. HTML is responsible for describing the semantics of the document language

    • html, in addition to semantics, nothing else.
    • This article is a pure html file (txt file is to use the renamed made), with some tags to describe the semantics of the text, these tags in the browser which is not visible, so called "hypertext", so is the "hypertext Markup language "was.
    • For example, the interview ask you, h1 tags What is the role?

      • The correct answer : to increase the main title text semantics
      • Incorrect Answers: a text bold, black, large
  3. Structure structure

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
        <head>
            <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
            <meta name="Keywords" content="牛逼,很牛逼,特别牛逼" />
            <meta name="Description" content="**是中国领先的互联网技术公司,为用户提供免费邮箱、游戏、搜索引擎服务,开设新闻、娱乐、体育等30多个内容频道,及博客、视频、论坛等互动交流,网聚人的力量。" />
            <title>Document</title>
        </head>
        <body>
    
        </body>
    </html>
    
    • DocType Declaration(DTD: 6+1)

      This tag tells the browser which HTML or XHTML specification documentation use. What are the norm in the end it? First we determine one thing, we now learn is HTML4.01 this version, this version is compatible with IE6 start. HTML5 is beginning to open IE9 compatible. But IE6,7,8 these browsers can not prematurely eliminated, so the past few years the web or use HTML4.01 should be made. Later known website Mobile, the mobile side, you can use the HTML5. HTML4.01 There are two kinds of norms, norms which every species of large and small have three kinds of specifications. Therefore, a total of six kinds of specifications (see below): HTML4.01 which provides for the ordinary, XHTML are two kinds of specifications. HTML feel that they have some of the provisions are not strict, for example, whether the label can be used in capital letters it? <H1> </ H1> So, HTML feel, some norms stringent standards, but also developed a XHTML1.0. In XHTML letter X, said that "strict."

      • HTML4.01

             Strict        严格的,体现在一些标签不能使用,比如u
             Transitional   普通的
             Frameset     带有框架的页面
      • XHTML1.0

         严格体现在小写标签、闭合、引号
         Strict          严格的,体现在一些标签不能使用,比如u
         Transitional    普通的(我们学习的版本)
         Frameset      带有框架的页面
      • html5

         HTML5中极大的简化了DTD,也就是说HTML5中就没有XHTML了(W3C自己打脸了):<!DOCTYPE html>
        
    • charset :

      • UTF-8 characters and more, there are various national languages, but save big size, file bloated;
      • gb2312 few words, only a small number of Chinese and foreign language and symbols, but the small size, compact file.
    • kerwords: Keyword
    • description: Description

    image description

  4. HTML5

    • What is html5 ? html5 = html + css + Javascript API

      新一代web开发富客户端应用程序整体解决方案
    • What is rich client? Means the client program is highly interactive and experience

Guess you like

Origin www.cnblogs.com/homehtml/p/12207723.html