中文亚洲精品无码_熟女乱子伦免费_人人超碰人人爱国产_亚洲熟妇女综合网

當(dāng)前位置: 首頁 > news >正文

購物網(wǎng)站 系統(tǒng)設(shè)計seo整站優(yōu)化什么價格

購物網(wǎng)站 系統(tǒng)設(shè)計,seo整站優(yōu)化什么價格,如何用ip地址做網(wǎng)站,網(wǎng)站的設(shè)計亮點本文主要內(nèi)容來自一絲的常用的 HTML 頭部標(biāo)簽和百度FEX的HTML head 頭標(biāo)簽。 移動端的工作已經(jīng)越來越成為前端工作的重要內(nèi)容,除了平常的項目開發(fā),HTML 頭部標(biāo)簽功能,特別是meta標(biāo)簽顯得非常重要。 DOCTYPE DOCTYPE(Document Type)&#xff…

本文主要內(nèi)容來自一絲的常用的?HTML 頭部標(biāo)簽和百度FEX的HTML head 頭標(biāo)簽。

移動端的工作已經(jīng)越來越成為前端工作的重要內(nèi)容,除了平常的項目開發(fā),HTML 頭部標(biāo)簽功能,特別是meta標(biāo)簽顯得非常重要。

DOCTYPE


DOCTYPE(Document Type),該聲明位于文檔中最前面的位置,處于 html 標(biāo)簽之前,此標(biāo)簽告知瀏覽器文檔使用哪種 HTML 或者 XHTML 規(guī)范。

使用 HTML5 doctype,不區(qū)分大小寫。

<!DOCTYPE html> <!-- 使用 HTML5 doctype,不區(qū)分大小寫 -->

charset


聲明文檔使用的字符編碼,

<meta charset="utf-8">

html5 之前網(wǎng)頁中會這樣寫:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

這兩個是等效的,具體可移步閱讀:<meta charset='utf-8'> vs <meta http-equiv='Content-Type'>,所以建議使用較短的,易于記憶。

lang屬性


更加標(biāo)準(zhǔn)的 lang 屬性寫法?網(wǎng)頁頭部的聲明應(yīng)該是用 lang="zh" 還是 lang="zh-cn"? - 知乎

簡體中文

<html lang="zh-cmn-Hans"> <!-- 更加標(biāo)準(zhǔn)的 lang 屬性寫法 http://zhi.hu/XyIa -->

繁體中文

<html lang="zh-cmn-Hant"> <!-- 更加標(biāo)準(zhǔn)的 lang 屬性寫法 http://zhi.hu/XyIa -->

很少情況才需要加地區(qū)代碼,通常是為了強(qiáng)調(diào)不同地區(qū)漢語使用差異,例如:

<p lang="zh-cmn-Hans">
<strong lang="zh-cmn-Hans-CN">菠蘿</strong>和<strong lang="zh-cmn-Hant-TW">鳳梨</strong>其實是同一種水果。只是大陸和臺灣稱謂不同,且新加坡、馬來西亞一帶的稱謂也是不同的,稱之為<strong lang="zh-cmn-Hans-SG">黃梨</strong>。
</p>

為什么 lang="zh-cmn-Hans" 而不是我們通常寫的 lang="zh-CN" 呢,請移步閱讀:?頁頭部的聲明應(yīng)該是用 lang=”zh” 還是 lang=”zh-cn”。

優(yōu)先使用 IE 最新版本和 Chrome


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

360 使用Google Chrome Frame


<meta name="renderer" content="webkit">

360 瀏覽器就會在讀取到這個標(biāo)簽后,立即換對應(yīng)的極速核。 另外為了保險起見再加入

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

這樣寫可以達(dá)到的效果是如果安裝了 Google Chrome Frame,則使用 GCF 來渲染頁面,如果沒有安裝 GCF,則使用最高版本的 IE 內(nèi)核進(jìn)行渲染。
相關(guān)鏈接:瀏覽器內(nèi)核控制 Meta 標(biāo)簽說明文檔

百度禁止轉(zhuǎn)碼


通過百度手機(jī)打開網(wǎng)頁時,百度可能會對你的網(wǎng)頁進(jìn)行轉(zhuǎn)碼,脫下你的衣服,往你的身上貼狗皮膏藥的廣告,為此可在 head 內(nèi)添加

<meta http-equiv="Cache-Control" content="no-siteapp" />

相關(guān)鏈接:SiteApp 轉(zhuǎn)碼聲明

SEO 優(yōu)化部分


  • 頁面標(biāo)題<title>標(biāo)簽(head 頭部必須)
<title>your title</title>
  • 頁面關(guān)鍵詞 keywords
<meta name="keywords" content="your keywords">
  • 頁面描述內(nèi)容 description
<meta name="description" content="your description">
  • 定義網(wǎng)頁作者 author
<meta name="author" content="author,email address">

定義網(wǎng)頁搜索引擎索引方式,robotterms 是一組使用英文逗號「,」分割的值,通常有如下幾種取值:none,noindex,nofollow,all,index和follow。

<meta name="robots" content="index,follow">

相關(guān)鏈接:WEB1038 – 標(biāo)記包含無效的值

為移動設(shè)備添加 viewport


viewport可以讓布局在移動瀏覽器上顯示的更好。 通常會寫

<meta name ="viewport" content ="initial-scale=1, maximum-scale=3, minimum-scale=1, user-scalable=no"> <!-- `width=device-width` 會導(dǎo)致 iPhone 5 添加到主屏后以 WebApp 全屏模式打開頁面時出現(xiàn)黑邊 http://bigc.at/ios-webapp-viewport-meta.orz -->

width=device-width?會導(dǎo)致 iPhone 5 添加到主屏后以?WebApp?全屏模式打開頁面時出現(xiàn)黑邊(WebAPP ViewPort iPhone5 黑邊解決方案 – 大貓的無限游戲)
content 參數(shù):

  • width viewport 寬度(數(shù)值/device-width)
  • height viewport 高度(數(shù)值/device-height)
  • initial-scale 初始縮放比例
  • maximum-scale 最大縮放比例
  • minimum-scale 最小縮放比例
  • user-scalable 是否允許用戶縮放(yes/no)
  • minimal-ui iOS 7.1 beta 2 中新增屬性(注意:iOS8
    中已經(jīng)刪除),可以在頁面加載時最小化上下狀態(tài)欄。這是一個布爾值,可以直接這樣寫:
<meta name="viewport" content="width=device-width, initial-scale=1, minimal-ui">

而如果你的網(wǎng)站不是響應(yīng)式的,請不要使用 initial-scale 或者禁用縮放。

<meta name="viewport" content="width=device-width,user-scalable=yes">

相關(guān)鏈接:非響應(yīng)式設(shè)計的viewport

適配 iPhone 6 和 iPhone 6plus 則需要寫:

<meta name="viewport" content="width=375">
<meta name="viewport" content="width=414">

大部分 4.7~5 寸的安卓設(shè)備的 viewport 寬設(shè)為 360px,iPhone 6 上卻是 375px,大部分 5.5 寸安卓機(jī)器(比如說三星 Note)的 viewport 寬為 400,iPhone 6 plus 上是 414px。

ios 設(shè)備


添加到主屏后的標(biāo)題(iOS 6 新增)

<meta name="apple-mobile-web-app-title" content="標(biāo)題"> <!-- 添加到主屏后的標(biāo)題(iOS 6 新增) -->

是否啟用?WebApp?全屏模式

<meta name="apple-mobile-web-app-capable" content="yes" /> <!-- 是否啟用 WebApp 全屏模式 -->

設(shè)置狀態(tài)欄的背景顏色

<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" /> <!-- 設(shè)置狀態(tài)欄的背景顏色,只有在 `"apple-mobile-web-app-capable" content="yes"` 時生效 -->

只有在 “apple-mobile-web-app-capable” content=”yes” 時生效

content 參數(shù):

  • default 默認(rèn)值。
  • black 狀態(tài)欄背景是黑色。
  • black-translucent 狀態(tài)欄背景是黑色半透明。 如果設(shè)置為 default 或 black ,網(wǎng)頁內(nèi)容從狀態(tài)欄底部開始。
  • 如果設(shè)置為 black-translucent ,網(wǎng)頁內(nèi)容充滿整個屏幕,頂部會被狀態(tài)欄遮擋。

禁止數(shù)字識自動別為電話號碼

<meta name="format-detection" content="telephone=no" /> <!-- 禁止數(shù)字識自動別為電話號碼 -->

iOS 圖標(biāo)


rel 參數(shù): apple-touch-icon 圖片自動處理成圓角和高光等效果。 apple-touch-icon-precomposed 禁止系統(tǒng)自動添加效果,直接顯示設(shè)計原圖。 iPhone 和 iTouch,默認(rèn) 57×57 像素,必須有

<link rel="apple-touch-icon-precomposed" href="/apple-touch-icon-57x57-precomposed.png" /> <!-- iPhone 和 iTouch,默認(rèn) 57x57 像素,必須有 -->

iPad,72×72 像素,可以沒有,但推薦有

<link rel="apple-touch-icon-precomposed" sizes="72x72" href="/apple-touch-icon-72x72-precomposed.png" /> <!-- iPad,72x72 像素,可以沒有,但推薦有 -->

Retina iPhone 和 Retina iTouch,114×114 像素,可以沒有,但推薦有

<link rel="apple-touch-icon-precomposed" sizes="114x114" href="/apple-touch-icon-114x114-precomposed.png" /> <!-- Retina iPhone 和 Retina iTouch,114x114 像素,可以沒有,但推薦有 -->

Retina iPad,144×144 像素,可以沒有,但推薦有

<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/apple-touch-icon-144x144-precomposed.png" /> <!-- Retina iPad,144x144 像素,可以沒有,但推薦有 -->

IOS 圖標(biāo)大小在iPhone 6 plus上是180×180,iPhone 6 是120×120。 適配iPhone 6 plus,則需要在中加上這段

<link rel="apple-touch-icon-precomposed" sizes="180x180" href="retinahd_icon.png">

iOS 啟動畫面

官方文檔:Technical Q&A QA1686: App Icons on iPhone, iPad and Apple Watch
參考文章:http://wxd.ctrip.com/blog/2013/09/ios7-hig-24/

iPad 的啟動畫面是不包括狀態(tài)欄區(qū)域的。

iPad 豎屏 768 x 1004(標(biāo)準(zhǔn)分辨率)

<link rel="apple-touch-startup-image" sizes="768x1004" href="/splash-screen-768x1004.png" /> <!-- iPad 豎屏 768 x 1004(標(biāo)準(zhǔn)分辨率) -->

iPad 豎屏 1536×2008(Retina)

<link rel="apple-touch-startup-image" sizes="1536x2008" href="/splash-screen-1536x2008.png" /> <!-- iPad 豎屏 1536x2008(Retina) -->

iPad 橫屏 1024×748(標(biāo)準(zhǔn)分辨率)

<link rel="apple-touch-startup-image" sizes="1024x748" href="/Default-Portrait-1024x748.png" /> <!-- iPad 橫屏 1024x748(標(biāo)準(zhǔn)分辨率) -->

iPad 橫屏 2048×1496(Retina)

<link rel="apple-touch-startup-image" sizes="2048x1496" href="/splash-screen-2048x1496.png" /> <!-- iPad 橫屏 2048x1496(Retina) -->

iPhone 和 iPod touch 的啟動畫面是包含狀態(tài)欄區(qū)域的。

iPhone/iPod Touch 豎屏 320×480 (標(biāo)準(zhǔn)分辨率)

<link rel="apple-touch-startup-image" href="/splash-screen-320x480.png" /> <!-- iPhone/iPod Touch 豎屏 320x480 (標(biāo)準(zhǔn)分辨率) -->

iPhone/iPod Touch 豎屏 640×960 (Retina)

<link rel="apple-touch-startup-image" sizes="640x960" href="/splash-screen-640x960.png" /> <!-- iPhone/iPod Touch 豎屏 640x960 (Retina) -->

iPhone 5/iPod Touch 5 豎屏 640×1136 (Retina)

<link rel="apple-touch-startup-image" sizes="640x1136" href="/splash-screen-640x1136.png" /> <!-- iPhone 5/iPod Touch 5 豎屏 640x1136 (Retina) -->

添加智能 App 廣告條 Smart App Banner(iOS 6+ Safari)

<meta name="apple-itunes-app" content="app-id=myAppStoreID, affiliate-data=myAffiliateData, app-argument=myURL"> <!-- 添加智能 App 廣告條 Smart App Banner(iOS 6+ Safari) -->

iPhone 6對應(yīng)的圖片大小是750×1294,iPhone 6 Plus 對應(yīng)的是1242×2148 。

<link rel="apple-touch-startup-image" href="launch6.png" media="(device-width: 375px)">
<link rel="apple-touch-startup-image" href="launch6plus.png" media="(device-width: 414px)">

Android


Android Lollipop 中的 Chrome 39 增加 theme-color meta 標(biāo)簽,用來控制選項卡顏色。

http://updates.html5rocks.com/2014/11/Support-for-theme-color-in-Chrome-39-for-Android

圖片描述

<meta name="theme-color" content="#db5945">

rss訂閱


<link rel="alternate" type="application/rss+xml" title="RSS" href="/rss.xml" /> <!-- 添加 RSS 訂閱 -->

favicon icon


<link rel="shortcut icon" type="image/ico" href="/favicon.ico" /> <!-- 添加 favicon icon -->

比較詳細(xì)的 favicon 介紹可參考https://github.com/audreyr/favicon-cheat-sheet

關(guān)閉chrome瀏覽器下翻譯插件


有些時候感覺chrome瀏覽器下翻譯插件很煩人,可以通過下面的代碼禁用它。

<meta name="google" value="notranslate" />

圖片描述

移動端的頭部標(biāo)簽和meta


<!DOCTYPE html> <!-- 使用 HTML5 doctype,不區(qū)分大小寫 -->
<html lang="zh-cmn-Hans"> <!-- 更加標(biāo)準(zhǔn)的 lang 屬性寫法 http://zhi.hu/XyIa -->
<head><!-- 聲明文檔使用的字符編碼 --><meta charset='utf-8'><!-- 優(yōu)先使用 IE 最新版本和 Chrome --><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/><!-- 頁面描述 --><meta name="description" content="不超過150個字符"/><!-- 頁面關(guān)鍵詞 --><meta name="keywords" content=""/><!-- 網(wǎng)頁作者 --><meta name="author" content="name, email@gmail.com"/><!-- 搜索引擎抓取 --><meta name="robots" content="index,follow"/><!-- 為移動設(shè)備添加 viewport --><meta name="viewport" content="initial-scale=1, maximum-scale=3, minimum-scale=1, user-scalable=no"><!-- `width=device-width` 會導(dǎo)致 iPhone 5 添加到主屏后以 WebApp 全屏模式打開頁面時出現(xiàn)黑邊 http://bigc.at/ios-webapp-viewport-meta.orz --><!-- iOS 設(shè)備 begin --><meta name="apple-mobile-web-app-title" content="標(biāo)題"><!-- 添加到主屏后的標(biāo)題(iOS 6 新增) --><meta name="apple-mobile-web-app-capable" content="yes"/><!-- 是否啟用 WebApp 全屏模式,刪除蘋果默認(rèn)的工具欄和菜單欄 --><meta name="apple-itunes-app" content="app-id=myAppStoreID, affiliate-data=myAffiliateData, app-argument=myURL"><!-- 添加智能 App 廣告條 Smart App Banner(iOS 6+ Safari) --><meta name="apple-mobile-web-app-status-bar-style" content="black"/><!-- 設(shè)置蘋果工具欄顏色 --><meta name="format-detection" content="telphone=no, email=no"/><!-- 忽略頁面中的數(shù)字識別為電話,忽略email識別 --><!-- 啟用360瀏覽器的極速模式(webkit) --><meta name="renderer" content="webkit"><!-- 避免IE使用兼容模式 --><meta http-equiv="X-UA-Compatible" content="IE=edge"><!-- 針對手持設(shè)備優(yōu)化,主要是針對一些老的不識別viewport的瀏覽器,比如黑莓 --><meta name="HandheldFriendly" content="true"><!-- 微軟的老式瀏覽器 --><meta name="MobileOptimized" content="320"><!-- uc強(qiáng)制豎屏 --><meta name="screen-orientation" content="portrait"><!-- QQ強(qiáng)制豎屏 --><meta name="x5-orientation" content="portrait"><!-- UC強(qiáng)制全屏 --><meta name="full-screen" content="yes"><!-- QQ強(qiáng)制全屏 --><meta name="x5-fullscreen" content="true"><!-- UC應(yīng)用模式 --><meta name="browsermode" content="application"><!-- QQ應(yīng)用模式 --><meta name="x5-page-mode" content="app"><!-- windows phone 點擊無高光 --><meta name="msapplication-tap-highlight" content="no"><!-- iOS 圖標(biāo) begin --><link rel="apple-touch-icon-precomposed" href="/apple-touch-icon-57x57-precomposed.png"/><!-- iPhone 和 iTouch,默認(rèn) 57x57 像素,必須有 --><link rel="apple-touch-icon-precomposed" sizes="114x114" href="/apple-touch-icon-114x114-precomposed.png"/><!-- Retina iPhone 和 Retina iTouch,114x114 像素,可以沒有,但推薦有 --><link rel="apple-touch-icon-precomposed" sizes="144x144" href="/apple-touch-icon-144x144-precomposed.png"/><!-- Retina iPad,144x144 像素,可以沒有,但推薦有 --><!-- iOS 圖標(biāo) end --><!-- iOS 啟動畫面 begin --><link rel="apple-touch-startup-image" sizes="768x1004" href="/splash-screen-768x1004.png"/><!-- iPad 豎屏 768 x 1004(標(biāo)準(zhǔn)分辨率) --><link rel="apple-touch-startup-image" sizes="1536x2008" href="/splash-screen-1536x2008.png"/><!-- iPad 豎屏 1536x2008(Retina) --><link rel="apple-touch-startup-image" sizes="1024x748" href="/Default-Portrait-1024x748.png"/><!-- iPad 橫屏 1024x748(標(biāo)準(zhǔn)分辨率) --><link rel="apple-touch-startup-image" sizes="2048x1496" href="/splash-screen-2048x1496.png"/><!-- iPad 橫屏 2048x1496(Retina) --><link rel="apple-touch-startup-image" href="/splash-screen-320x480.png"/><!-- iPhone/iPod Touch 豎屏 320x480 (標(biāo)準(zhǔn)分辨率) --><link rel="apple-touch-startup-image" sizes="640x960" href="/splash-screen-640x960.png"/><!-- iPhone/iPod Touch 豎屏 640x960 (Retina) --><link rel="apple-touch-startup-image" sizes="640x1136" href="/splash-screen-640x1136.png"/><!-- iPhone 5/iPod Touch 5 豎屏 640x1136 (Retina) --><!-- iOS 啟動畫面 end --><!-- iOS 設(shè)備 end --><meta name="msapplication-TileColor" content="#000"/><!-- Windows 8 磁貼顏色 --><meta name="msapplication-TileImage" content="icon.png"/><!-- Windows 8 磁貼圖標(biāo) --><link rel="alternate" type="application/rss+xml" title="RSS" href="/rss.xml"/><!-- 添加 RSS 訂閱 --><link rel="shortcut icon" type="image/ico" href="/favicon.ico"/><!-- 添加 favicon icon --><title>標(biāo)題</title>
</head>

更多的 meta 標(biāo)簽參考

COMPLETE LIST OF HTML META TAGS
18 Meta Tags Every Webpage Should Have in 2013
參考文章:

常用的 HTML 頭部標(biāo)簽
html5_header
amazeui css
DOCTYPE
WEB 工程師和設(shè)計師必學(xué)的 10 個 IOS 8 新鮮改變

http://www.risenshineclean.com/news/59958.html

相關(guān)文章:

  • wordpress配置教程網(wǎng)站優(yōu)化快速排名軟件
  • 好的網(wǎng)站設(shè)計模板廣州seo網(wǎng)站開發(fā)
  • 中電建鐵路建設(shè)公司網(wǎng)站查網(wǎng)址
  • 宜昌 醫(yī)院 網(wǎng)站建設(shè)seo排名優(yōu)化推廣教程
  • 網(wǎng)站建設(shè)單位不給數(shù)據(jù)庫google推廣教程
  • 防城港北京網(wǎng)站建設(shè)廣州權(quán)威發(fā)布
  • 安陽做網(wǎng)站公司廣州今天剛剛發(fā)生的重大新聞
  • 網(wǎng)站背景視頻是怎么做的新聞聯(lián)播今日新聞
  • 網(wǎng)站建設(shè)叫什么軟件seo優(yōu)化費用
  • wordpress toc長沙seo優(yōu)化哪家好
  • 貴陽做網(wǎng)站好的公司有哪些今天的新聞 最新消息
  • wordpress 空兩格沈陽seo優(yōu)化排名公司
  • 今日上海大事件網(wǎng)站seo關(guān)鍵詞設(shè)置
  • 誰家的網(wǎng)站做的比較好色盲測試圖片60張
  • 集團(tuán)網(wǎng)站建設(shè)新聞seo長尾關(guān)鍵詞排名
  • 有哪些公司的網(wǎng)站做的比較好公眾號如何推廣運營
  • 青島找網(wǎng)站建設(shè)公司好5000元網(wǎng)站seo推廣
  • b2c商城網(wǎng)站常用的搜索引擎有哪些
  • 高端建筑物圖片紹興百度seo
  • 寧波男科醫(yī)院哪家好哈爾濱優(yōu)化網(wǎng)站公司
  • 廣東網(wǎng)站建設(shè)怎么選網(wǎng)站優(yōu)化策劃書
  • 一個網(wǎng)站要怎么做的2022智慧樹互聯(lián)網(wǎng)與營銷創(chuàng)新
  • 服裝公司網(wǎng)站建設(shè)開題報告福州網(wǎng)絡(luò)營銷推廣公司
  • 宜昌微網(wǎng)站建設(shè)微信推廣鏈接怎么制作
  • 政府網(wǎng)站建設(shè)評分標(biāo)準(zhǔn)網(wǎng)站建設(shè)優(yōu)化的技巧
  • 蘇州做網(wǎng)站優(yōu)化網(wǎng)站關(guān)鍵詞怎么快速上排名
  • 杭州濱江網(wǎng)站建設(shè)杭州網(wǎng)站關(guān)鍵詞排名優(yōu)化
  • 開發(fā)一個物流app需要多少錢優(yōu)化資源配置
  • flash網(wǎng)站的制作網(wǎng)頁制作
  • 小程序搭建賺錢是真的嗎南京seo報價