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
-
-
Single tag: a tag of </> composition. Such as horizontal dividing line
<hr />
-
双标签:由“开始标签”< >和“结束标签”< />两部分构成。开始标签和结束标签也被称为开放标签和闭合标签。比如:文字段落
<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
- Inline block elements:
(1) does not wrap
(2) capable of identifying the width and height.
(3) the default arrangement from left to right. - 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. - 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 stylingdisplay: block Blocks
inline line of tag
within inline-block row block elements
none Hide -
If the programmers want to learn web front end, plus VX: TZED-21, free delivery web front-end video tutorial oh
- Inline block elements: