本文摘自PHP中文网,作者不言,侵删。
这篇文章主要介绍了关于HTML 速查列表,有着一定的参考价值,现在分享给大家,有需要的朋友可以参考一下HTML 基本文档
1 2 3 4 5 6 7 | <!DOCTYPE html>
<html>
<head>
<title>文档标题</title>
</head>
<body>可见文本...</body>
</html>
|
基本标签(Basic Tags)
1 2 3 4 5 6 7 8 9 10 | <h1>最大的标题</h1>
<h2> . . . </h2>
<h3> . . . </h3>
<h4> . . . </h4>
<h5> . . . </h5>
<h6>最小的标题</h6>
<p>这是一个段落。</p>
<br> (换行)
<hr> (水平线)
|
文本格式化(Formatting)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | <b>粗体文本</b>
<code>计算机代码</code>
<em>强调文本</em>
<i>斜体文本</i>
<kbd>键盘输入</kbd>
<pre>预格式化文本</pre>
<small>更小的文本</small>
<strong>重要的文本</strong>
<abbr> (缩写)
<address> (联系信息)
<bdo> (文字方向)
<blockquote> (从另一个源引用的部分)
<cite> (工作的名称)
<del> (删除的文本)
<ins> (插入的文本)
<sub> (下标文本)
<sup> (上标文本)
|
链接(Links)
1 2 3 4 5 | 普通的链接:<a href="http://www.example.com/">链接文本</a>
图像链接: <a href="http://www.example.com/"><img src="URL" alt="替换文本"></a>
邮件链接: <a href="mailto:webmaster@example.com">发送e-mail</a>
书签:<a id="tips">提示部分</a>
<a href="#tips">跳到提示部分</a>
|
图片(Images)
1 | <img src="URL" alt="替换文本" height="42" width="42">
|
样式/区块(Styles/Sections)
1 2 3 4 5 6 | <style type="text/css">
h1 {color:red;}
p {color:blue;}
</style>
<p>文档中的块级元素</p>
<span>文档中的内联元素</span>
|
无序列表
1 2 3 4 | <ul>
<li>项目</li>
<li>项目</li>
</ul>
|
有序列表
1 2 3 4 | <ol>
<li>第一项</li>
<li>第二项</li>
</ol>
|
定义列表
1 2 3 4 5 6 | <dl>
<dt>项目 1</dt>
<dd>描述项目 1</dd>
<dt>项目 2</dt>
<dd>描述项目 2</dd>
</dl>
|
表格(Tables)
1 2 3 4 5 6 7 8 9 10 | <table border="1">
<tr>
<th>表格标题</th>
<th>表格标题</th>
</tr>
<tr>
<td>表格数据</td>
<td>表格数据</td>
</tr>
</table>
|
框架(Iframe)
1 | <iframe src="demo_iframe.htm"></iframe>
|
表单(Forms)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | <form action="demo_form.php" method="post/get">
<input type="text" name="email" size="40" maxlength="50"><input type="password">
<input type="checkbox" checked="checked">
<input type="radio" checked="checked">
<input type="submit" value="Send">
<input type="reset">
<input type="hidden">
<select>
<option>苹果</option>
<option selected="selected">香蕉</option>
<option>樱桃</option>
</select>
<textarea name="comment" rows="60" cols="20"></textarea>
</form>
|
实体(Entities)
1 2 3 | < 等同于 <
> 等同于 >
© 等同于 ?
|
相关推荐:
HTML中重要的关键字
html自适应字号
以上就是HTML 速查列表的详细内容,更多文章请关注木庄网络博客!
相关阅读 >>
Html em标签怎么用
Html中行内元素与块级元素的区别是什么
Html代码在编写过程中的一定要注意的三点
什么是Html文件?Html格式如何打开?(图)
Html body标签的居中属性你知道吗?Html body标签的定义和使用方法
一起来聊聊Html与Html5的区别
Html5中table的意思是什么
Html keygen标签怎么用
Html中如何使用Html表单提交的操作
Html如何移除元素
更多相关阅读请进入《Html》频道 >>
人民邮电出版社
本书对 Vue.js 3 技术细节的分析非常可靠,对于需要深入理解 Vue.js 3 的用户会有很大的帮助。——尤雨溪,Vue.js作者
转载请注明出处:木庄网络博客 » HTML 速查列表