Class1 HTML Label

  • <html>  element is the root element in HTML page
     1 <!DOCTYPE HTML>
     2 <html lang="en">
     3  <meta charset="utf-8">
     4  <title style="red">春晓</title>
     5     <h1>春晓</h1>
     6 
     7     <body>
     8     <br/>
     9     <p>春眠不觉晓,处处闻啼鸟</p>
    10     <hr/>
    11     <p>夜来风雨声,花落知多少</p>>
    12 
    13 </body>
    14 </html>
    View Code
  • <!DOCTYPE html> declare the HTML5 document
  • <head> element include the document (meta) data    元(meta)数据
  • <title> element describe the title of document
  • <body> element include visualization information in webpage
  • <h1>element define a title
  • <p>element define  a paragraph

 2. class: as the HTML element one or more classname

     ID:Define element as the only one ID

    style:set element inline style

     title:describe the element extra information(use as tool bar)

3. <hr>  label will create a horizon line in HTML page

   <br/>  label is hollow and create newline(换行)

posted @ 2018-03-29 15:44  独行头狼  阅读(158)  评论(2编辑  收藏  举报