好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

关于HTML基本语法和语义写法规则与实例分析

本文主要和大家分享对HTML基本语法和语义进行了整理与实例,需要的朋友可以参考下,希望能帮助到大家。

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
html5
<meta charset="utf-8"> 
html5 demo
<!DOCTYPE html>
<html>
 <head>
 <meta charset="utf-8">
 <title>html5 demo</title>
 </head>
 <body>
 <header>
  <h1>html5 demo</h1>
  <nav>
  <ul>
   <li>nav1</li>
   <li>nav2</li>
  </ul>
  </nav>
 </header>
 <section>
  <h1>article aside</h1>
  <article>article</article>
  <aside>aside</aside>
 <section>
 <footer>footer</footer>
 </body>
</html> 
@charset "utf-8";
html{margin:0;padding:0;border:0}a,abbr,acronym,address,article,aside,blockquote,body,caption,code,dd,del,dfn,dialog,p,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} 
<script>
 document.createElement('header');
 document.createElement('nav');
 document.createElement('section');
 document.createElement('aside');
 document.createElement('article');
 document.createElement('footer');
</script> 

标签可编辑属性contenteditable

<article contenteditable></article>

相关推荐:

解析HTML基本语法和语义写法规则

Javascript中正则表达式的使用及基本语法_正则表达式

HTML基本语法和语义写法规则与实例

以上就是关于HTML基本语法和语义写法规则与实例分析的详细内容,更多请关注Gxl网其它相关文章!

查看更多关于关于HTML基本语法和语义写法规则与实例分析的详细内容...

  阅读:34次