HTML block level, row level elements, special characters, nested rule

If the introductory page basic HTML tags nested rules, the first thing to say is that the classification of elements. Elements can be divided into block-level elements and row-level elements, block-level element is what? It may be a separate line, the height can be set wide, the default is 100%; row-level elements contrary, its content determines the height of its width, as a special text character as to look

. 1  <! DOCTYPE HTML > 
2  < HTML lang = "EN" > 
. 3  < head > 
. 4      < Meta charset = "UTF-. 8" > 
. 5      < Meta name = "the viewport" Content = "width = Device-width, Initial-Scale 1.0 = " > 
. 6      < title > the HTML block-level, row level elements, special characters, nested rule </ title > 
. 7  </ head > 
. 8  < body > 
. 9      <-! block elements:Exclusive line, width and height may be provided, the default width of 100% ->
10      block element containers into verbal and
 11      verbal block elements: P, h1 of - H6
 12 is      a container class block element: div, table, tr, td , frame, ul> li, ol, dl, dt, dd ( sequence)
 13      <! - row elements: an exclusive line not, depending on what height width -> 
14      row elements: A strong EM INPUT IMG del span
 15      special characters: text br & nbsp HR
 16  </ body > 
. 17  </ HTML >

Nested rules summarize the following points:

1. The elements can be nested row block row element 2. 3. The elements can be nested row element row can not be nested block elements 4. The elements of text-based block elements can not be nested block elements 5. The block elements can be nested containers block element

The following html page basic concepts, the basic structure of html pages, HTML base tag list table picture text hyperlinks to reports, html tags form the basic principles interact, radio buttons, check boxes, drop-down box to reports, web pages DIV + CSS layout and traditional ifame contrast layout of the blog post is all part of the HTML, HTML is learning to understand its main nesting semantic rules to build pages, as the CSS and JS interaction logic is the content of the page below to practice!

Guess you like

Origin www.cnblogs.com/dhnblog/p/12301813.html