HTML template 标签
使用 <template> 标签在页面加载时该标签中的内容不会显示,加载后可以使用 JavaScript 来显示它: 实例 Run this code » <button onclick="showContent()"&g...
使用 <template> 标签在页面加载时该标签中的内容不会显示,加载后可以使用 JavaScript 来显示它: 实例 Run this code » <button onclick="showContent()"&g...
一个 HTML 文本区域: 实例 Run this code » <textarea rows="10" cols="30"> 我是一个文本框。 </textarea> 浏览器支持 所有主流浏览器都支持 <te...
带有 <thead>、<tfoot> 和 <tbody> 元素的 HTML 表格: 实例 Run this code » <table border="1"> <thead> &l...
一个简单的 HTML 表格,包含两列两行: 实例 Run this code » <table border="1"> <tr> <th>Month</th> <th>Saving...
上标文本: 实例 Run this code » <p>这个文本包含 <sup>上标</sup> 文本。</p> 浏览器支持 所有主流浏览器都支持 <sup> 标签。 标签定义及使...
使用 <summary> 元素: 实例 Run this code » <details> <summary>Epcot Center</summary> <p>Epcot is ...
下标文本: 实例 Run this code » <p>这个文本包含 <sub>下标</sub>文本。</p> 浏览器支持 所有主流浏览器都支持 <sub> 标签。 标签定义及使用...
在 HTML 文档中使用 <style> 元素: 实例 Run this code » <!DOCTYPE html> <html> <head> <meta charset="utf-...
对文档中的文本进行格式化: 实例 Run this code » <strong>加粗文本</strong> 浏览器支持 所有主流浏览器都支持 <strong> 标签。 标签定义及使用说明 <str...
给文本添加删除线: 实例 Run this code » <p>Version 2.0 is <strike>not yet available!</strike> now available!</...