Html using row-level elements and block element and meta tags

Block-level element characteristics:

You will always fill parent element (width of the block elements are always equal to the width of its parent element)

 

Row-level element characteristics:

Space occupied by just equal to the size of the content

 

Common block-level elements:

h1~h6、p、ul、div、li、form

 

Row-level common elements:

a, span, u, i, s, em, b, img (specific row-level element, can be modified size)

 

meta tags

It is also a key form of tag-value key

<meta http-equiv="content-type" content="text/html" charset="gbk">

Will tell the server, the browser here look forward to receiving the data type is a text html format and encoding is gbk, the server will return to gbk encoding a document to the browser, the browser will be decoded in the gbk way.

 

<meta http-equiv="expires" content="时间点">

expires: Expiration

Time to set the cache of the page

 

< Meta HTTP-equiv = "Refresh" Content = "2, url = HTTP: //www.baidu.com" > // 2s after the auto-refresh the page, and jump to Baidu.

2: Delay 2s, 2s after the web page is refreshed

url: Jump after the refresh link

Set pages automatically refresh

 

<meta http-equiv="X-UA-Compatible" content="IE=8,chrome=1">

Compatible: Adapter

In order to address some of the compatibility issues of IE

IE = edge to tell which version of IE browser engine to use to render our website

edge: the current computer installed the latest version of IE engine

chrome = 1 if the engine is also installed on the user's computer Google browser, then it calls the Google browser rendering our website.

 

<meta name="author" content="Crazier_Z">

Web authors

 

< Meta name = "the Description" Content = "strongest ground page" >

Page description

 

<meta name="keywords" content="java,web前端">

seo

Guess you like

Origin www.cnblogs.com/crazier/p/12075585.html