Learning the front end: HTML learning summary

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

html Profile

What is 1 html: HTML

  • Hypertext: text / image / audio / video
  • Label / tag: <body> </ body>
  • How do: use tags to create web pages

2 HTML uses: is used to write static pages.

  • Set up the whole page. (Framework) CSS used for decoration. . .

3 html structure

1 <HTML> 
2 <head> 
3     includes news and information: properties of the entire page, guiding browser parses the label into the label of the external file 
4 </ head> 
5 <body> 
6         we need to show the information 
7 </ body> 
8 </ html>    

4 distinguish forward and backward slashes

  • / Forward slash
  • \ Backslash (downhill)

5 start and end tags

. 1 <HTML> (start tag) 
2     Keyword 
3 </ html> (end tag)

6 writing specifications

  • PS: Nesting occurs between the label
  • Hierarchical relationships between tags must be standardized
  • Most labels have the property property = "property"
  • html is not case sensitive: Recommended lowercase
  • When naming try to use English to write
  • Note: there must be conscious to write comments <- -!>


html tag

html: root tag

head:
<head>
// set the encoding format of the entire page
<Meta charset = "UTF-. 8">
// Set the page title
<title> novice - Legend </ title>
</ head>

body:
<body>
text: text color
bgcolor: background color of the
background: background image

<body text = "# 00FF00" bgcolor = "# 00" backgroud = "">

// in html code, no matter how many spaces, the browser parses think that only a space
blank: & nbsp

// wrap
<br> // there may be separate

@ paragraph tag into a single line
<P> 
// XXXX
</ P>

// horizontal
<hr width: "length" 100px // - 50% ->
width: 100px length // - 50% -
size: thickness
color: Color
align: Alignment

 

</body >

 

Guess you like

Origin www.cnblogs.com/cainiao-chuanqi/p/11529724.html