HTML acquaintance

HTML

   1. Description  HTML HTML (English: HyperText Markup Language) is a standard markup language for creating web pages

       You can use HTML to build their WEB site, HTML run on the browser, to resolve by the browser.

 
 2. a basic HTML page: 
    
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>网页标题</title>
</head>
<body>
</body>
</html>

  The above analysis:           

  • <! DOCTYPE html>  declaration for the HTML5 document
  • <html>  element is the root element of an HTML page
  • <head>  element contains metadata document (meta) data, such as  <meta charset = "utf-8 "> define the page encoding format is  UTF-8 (to unify the browser meta character set, or cause garbled)  
  • <title>  element describes the document title
  • <body>  element contains the visible page content

 3. Tags:   

      The • HTML tag refers to the label.
      • HTML markup tags to describe web pages use.
      • Structure:
             <Label name> tag content </ tag name>
            <Tag name />
 4. Common Tags:
  <html>
    • Role:
                - <html> tag is used to tell the browser information that is contained in the document written in HTML.
           • Usage:
               - All content pages will need to write a page in html tag html tags can only have one.
               - html tab has two sub-tabs head and body.
        <head>
           • Role:
              - <head> tag is used to represent the metadata page, head contains other non-visible browsers and search engines use the information.
           • Usage:
             - head tag appears as a child element of html tags, a Web page can have only one head.
   <title>
           • Role:

            - <title> tag indicates the title of the page, usually displayed in the title bar of the page.
            - title tag text is the most important factor in page optimization. When searching for a search engine to see first, the most eye-catching content.  

   <body>
   • Role:
            - <body> tag is used to set the body of the page, the page to see all the content should be written into the body tag. 
   <h1>~<h6>
          • Role:
           - h1 ~ h6 is the title tag of the page, to indicate a title page, different is that from h1 ~ h6 importance of getting lower and lower.
           - The title tag is equivalent to the title text, generally considered second in importance only the page title.
      - Generally we only use the title tag to h3, after h3 heading tags for search engine does not make sense.
   - a page will only use a h1 tag.
        <p>
    • Role:
           - <p> tag represents a paragraph in the page.
           - General browser will each add a line break before and after the paragraph, that is paragraph will be on a separate line on the page.

  /> <br
   • Role
    - <br /> tags represent a line break tags, labels can make use br br contents of the label on a separate line.
  <hr />
   • role:
   - <hr /> tag is a horizontal line labels, labels may be printed hr using one horizontal line on the page, the page can be divided into horizontal upper and lower parts.
  <img />
     • Role:
    - <img /> tag is the image tag, it can be used to introduce an external picture to the page.
  • Properties:
    - src path to an external image.
       - alt image description
  <a>
   • Role:
    - <a> label is a hyperlink label, through a label, you can quickly jump to other pages.
   • Properties:
    - href point to a link address
    - target set in the open position of the target page, selectable values: _blank new window, _self the current window.

  The basic effects of the labels and

 

<! DOCTYPE HTML> 
<HTML> 
	<head> 
		<Meta charset = "UTF-. 8"> 
		<title> tag substantially </ title> 
	</ head> 
	<body> 
		<h1 of> a title </ h1 of> 
		<H2> subheadings </ H2> 
		<H3> three title </ H3> 
		<H4> four title </ H4> 
		<H5> five title </ H5> 
		<H6> six title </ H6> 
		<P> the basic assumption relativity (to relativity) is the principle of relativity, i.e. independent of the physical laws of the selected reference frame. <br> 
		difference Special Relativity (Special Relativity) and general relativity (General Relativity) is, <br> 
		former laws of physics discussion between reference systems (inertial reference frame) uniform rectilinear motion, the latter is generalized to in the frame of reference acceleration <br> <HR> <br> 
		(non-inertial reference frame), and under the assumption of equivalence principle, widely used primers <br> Field. Relativity and quantum mechanics are the two basic pillars of modern physics. 
		<br> basis of classical physics classical mechanics, not suitable for high-speed moving objects and microscopic < br> field. 
		Relativistic speed movement to solve the problem; quantum mechanics to solve the problem of micro subatomic conditions. <br> relativity subvert human "common sense" concept of the universe and nature, he proposed the "relativity of time and space," "four-dimensional space-time"
		The new concept of "curved space". Special theory of relativity proposed in 1905, general relativity proposed in 1915 (love <br> general relativity Einstein completed in late 1915  
		to create the work, the official publishing papers in early 1916).
		</ the p-> 
		<img src = "../../ HelloHBuilder / img / HBuilder.png" > 
		<a href="#"> this is a link </a> 
	</ body> 
</ HTML>

 

Guess you like

Origin www.cnblogs.com/zqy6666/p/11706886.html