The basic structure of the classification and labeling of HTML

The basic structure of HTML

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
    </head>
    <body>
    </body>
</html>

 

html nested in two parts: head and body

  head put in the title, character format, language, compatibility, keywords, description and other information;

  put the body in the pages need to show part.

html label classification

  • By closing feature classification

 

    1.  Single tag: a tag of </> composition. Such as horizontal dividing line<hr />

    2.  双标签:由“开始标签”< >和“结束标签”< />两部分构成。开始标签和结束标签也被称为开放标签和闭合标签。比如:文字段落<p></p>
      <p>It is the start tag, indicating the start of a paragraph. </p>It is the end of the label, indicating the end of a paragraph.

  • Classified according to whether the new line features
    1. Inline block elements:
      (1) does not wrap
      (2) capable of identifying the width and height.
      (3) the default arrangement from left to right.
    2. Block tags:
      (1) a separate line 
      (2) to inherit the parent attribute. 
      (3) width and height may be provided.
        For example: div, p, ul, li , ol etc.
    3. Tag line:
      (1) only his own part
      . (2) inherited parent property 
      (3) the width and height can not be set
        , such as: i, input, label, select , span and other

      control tag type of styling

      display: block Blocks
          inline line of tag
          within inline-block row block elements
          none Hide

    4. If the programmers want to learn web front end, plus VX: TZED-21, free delivery web front-end video tutorial oh
       

Guess you like

Origin blog.csdn.net/weixin_44970764/article/details/90671362
Recommended