常见的块元素也是在平常中经常用到的标签元素
*新增标签
<header></header>*
<main></main>*
<footer></footer>*
<nav></nav>*
<article></article>*
<aside></aside>*
<section></section>*
<figure></figure>*
<h1>---<h6>
<ul></ul>
<li></li>

常见的行元素
<a href="">a标签</a>
<abbr title="">abbr标签</abbr>
<b>b标签</b>
<cite>cite标签</cite>
<code>code标签</code>
<del>del标签</del>
<detail>detaile标签</detail>
<em>em标签</em>
<i>i标签</i>
<span>span标签</span>
<s>s标签</s>
<strong>strong标签</strong>
<sup>sup标签</sup>
<sub>sub标签</sub>
常见的行内块元素
<button>button按钮</button>
<input type="text" placeholder="请输入">
<img src="" alt="">
<video src=""></video>
<select>
<option value ="">111</option>
</select>
<sourse></sourse>
<table>
<tr>
<td></td><td></td>
</tr>
</table>

说点题外话,HTML5新增了许多语义化标签元素,语义化表现在能够清楚的描述其内在意义给浏览器以及开发者
常见的语义化标签有 header main footer nav article section figcaption(定义
这些新元素在IE8以及更早的IE版本无法CSS渲染,可以使用HTML5 Shiv Javascript
将以下代码放在head元素
<!--[if lt IE 9]>
<script src="html5shiv.js"></script>
<![endif]-->
本文详细介绍了HTML5中新增的语义化标签,如header、main、footer等,探讨了它们如何提升网页的可读性和结构清晰度。同时,文章提供了针对IE8及以下版本浏览器的兼容性解决方案。
316

被折叠的 条评论
为什么被折叠?



