您的位置:首页 > Web前端 > HTML5

HTML5表单属性(四)

2016-03-29 16:10 519 查看
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

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

<title>一个文档中不能有一个以上的title元素</title>

<style type="text/css">

h1 {

color: red;

}

p.fontblue {

color: blue;

}

</style>

</head>

<body>

<h1>Hello World!</h1>

<p class="fontblue">

progress 标签定义运行中的进度(进程).可以使用progress标签来显示JavaScript中耗费时间的函数的进度.

</p>

<progress max="100" value="70" id="progress1">

</progress><br />

<progress id="progress2">

</progress>

<p>

rt标签定义字符(中文注音或字符)的解释或发音.ruby 注释是中文注音或字符

</p>

<ruby>

漢<rp>(</rp><rt>Han</rt><rp>)</rp>字 <rp>(</rp><rt>zi</rt><rp>)</rp>

</ruby>

<p>span标签用于对文档中的行内元素进行组合.提示:请使用 span 元素对行内元素进行分组,以便通过样式对它们进行格式化.</p>

<p>

This is a paragraph <span style="color:#00ff00;">This is a paragraph</span>This is a paragraph

</p>

<p>

sub标签用于定义下标文本<sub>下标</sub>

</p>

<p>

sup标签用于定义上标文本<sup>上标</sup>

</p>

<p>summary标签包含details元素的标题,details元素用于描述有关文档或文档片段的详细信息.</p>

<details>

<summary>HTML 5</summary>

This document teaches you everything you have to learn about HTML 5.

</details><br />

<table border="1">

<thead>

<tr>

<td>THEAD 中的文本</td>

</tr>

</thead>

<tfoot>

<tr>

<td>TFOOT 中的文本</td>

</tr>

</tfoot>

<tbody>

<tr>

<td>TBODY 中的文本</td>

</tr>

</tbody>

</table>

<br />

<textarea rows="3" cols="30">

这里是文本域中的文本

</textarea>

<p>th 标签定义表格内的表头单元格.此 th 元素内部的文本通常会呈现为粗体.</p>

<table border="1">

<tr>

<th>Header 1</th>

<th>Header 2</th>

</tr>

<tr>

<td>Cell A</td>

<td>Cell B</td>

</tr>

</table>

</body>

</html>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: