White novice from zero contact with Html

From zero to programming, opens the door to a new world of feeling, hope more work, the more lucky!

HTML, stands for "Hyper Text Markup Language", simply, is to use the web page Html language production.

1. master the basic institutional pages
(1) documentation states: <DOCTYPE HTML!>
(2) HTML tags: <html> </ html> entire page from <html> begins to </ html> end.
(3) head tags: head <head> </ head> page, the <head> </ head> tag can define specific internal content. of the title tag: <title> </ title> , the title of the page.
(4) body tags: <body> Most of the content </ body> page body, page enter the <body> </ body> inside.
2. Label
NOTE: ctrl + shift + /
shortcut commands: the TAB
Title Tag: h1-h6, from large to small font 1 to 6, used for a news webpage of
paragraph tag: <p> </ p>
Break tag: < br> tag of the preceding paragraphs have from row to row, there is no spacing between the wrapping tag.
Horizontal tags: <hr> a straight gray page
text formatting tags: bold <b>, <strong>
                          italics <i>, <cite>, <em>
                         superscript tag <sup> for example square mathematical formulas
                         subscript tag <sub>


                         Strikethrough tag <s>
                         Underline tag <u>
                         centrally tag <P align = left = "Center"> </ P>
3. Common character entity
spaces: & nbsp;
less-than <: & lt;
greater than the number>: & gt;
Nos. &: & amp;

4. List
ordered list: <ol> </ ol> <ol type = " Symbol type">
                <Li> </ Li> <Li> list item. 1 </ Li>
                .......... ...........
unordered list: <ul> </ ul> <ul type = " symbol type"
                <Li> </ Li> <Li> list item. 1 </ Li>
                ... ..................
definition list: <DL> </ DL>       
                <dt> </ dt> <dt> noun definitions </ dt>
                <dd> </ dd > <dd> Definition description </ dd>
5. The table
<table>
 <TR>
  <TD> cell. 1
  </ TD>
 </ TR>
</ table>
6. The image
<img src = "image path" alt = "When the text displayed if the image does not show "title =" text "mouse over the image displayed on the>
path: 1 absolute path: a fixed location in the hard disk (not recommended)
          2 relative path: html file with respect to the present He said the location
              / windows drive letter
              ../ parent directory (folder)
              ./ this directory (folder) and can be omitted
          3. Network Path: page F12, upper left corner of the small arrow, select the required picture or video, the right to open the link, select Open page the link to.

Guess you like

Origin www.cnblogs.com/nbkls/p/12112161.html