時間:2023-09-26 09:18:01 | 來源:網(wǎng)站運(yùn)營
時間:2023-09-26 09:18:01 來源:網(wǎng)站運(yùn)營
html基本語法與語義寫法規(guī)則詳解:本文主要為了初學(xué)者遇到基本語法不理解意思,語義寫法規(guī)則不懂,下面就有詳細(xì)的解釋,另外小編還有一個web交流學(xué)習(xí)群,都是剛學(xué)習(xí)前端的小伙伴,大家一起交流,學(xué)習(xí),討論,每天還分享資料筆記視頻,歡迎大家的加入點(diǎn)擊進(jìn)入10452672831<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
HTML 4.01 Transitional<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
HTML 4.01 Frameset<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
HTML5文檔類型1<!DOCTYPE html><!-- 使用 Html5 doctype,不區(qū)分大小寫 -->
meta<metahttp-equiv="Content-Type"content="text/html; charset=utf-8">html5<metacharset="utf-8">
SEO優(yōu)化<title>your title</title>
頁面描述<meta name="description" content="your description">
關(guān)鍵字<meta name="keywords" content="your keywords">
網(wǎng)頁作者<meta name="author" content="your name">
網(wǎng)頁搜索引擎索引方式<meta name="robots" content="index,follow">
follow 跟蹤鏈接并分析目標(biāo)網(wǎng)頁。這是默認(rèn)行為,并且可忽略。index 將網(wǎng)頁編入索引。這是默認(rèn)行為,并且可忽略。noodp 不使用 Open Directory Project 來創(chuàng)建內(nèi)容描述。noydir 不使用 Yahoo Directory 來創(chuàng)建內(nèi)容描述。noarchive 不允許搜索引擎顯示內(nèi)容的緩存版本。cache 允許搜索引擎顯示內(nèi)容的緩存版本。nocache 不允許搜索引擎顯示內(nèi)容的緩存版本。
標(biāo)簽@charset "utf-8";如果要在不支持html5的瀏覽器中使用html5標(biāo)簽,需要加一小段JavaScript代碼
html{margin:0;padding:0;border:0}a,abbr,acronym,address,article,aside,blockquote,body,caption,code,dd,del,dfn,dialog,div,dl,dt,em,fieldset,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,iframe,img,label,legend,li,nav,object,ol,p,pre,q,section,span,table,tbody,td,tfoot,th,thead,tr,ul{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,dialog,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1.5;background:#fff}table{border-collapse:separate;border-spacing:0}caption,td,th{text-align:left;font-weight:400;float:none!important}table,td,th{vertical-align:middle}blockquote:after,blockquote:before,q:after,q:before{content:''}blockquote,q{quotes:"" ""}a img{border:none}a{text-decoration:none}:focus{outline:0}
<article contenteditable></article>以上就是html基本語法與語義寫法規(guī)則詳解的詳細(xì)內(nèi)容,
關(guān)鍵詞:寫法,規(guī)則,基本,語法
客戶&案例
營銷資訊
關(guān)于我們
微信公眾號
版權(quán)所有? 億企邦 1997-2025 保留一切法律許可權(quán)利。