Java工程师必备技能——超文本标记语言HTML速查列表

转自:https://blog.csdn.net/weixin_45080371/article/details/107990149?utm_medium=distribute.pc_category.none-task-blog-hot-1.nonecase&depth_1-utm_source=distribute.pc_category.none-task-blog-hot-1.nonecase&request_id=
HTML基本文档

<!DOCTYPE html>
<html>
	<head>
		<title>文档标题</title>
	</head>
	<body>
		文本...
	</body>
</html>

基本标签(Basic Tags``)

<h1>最大(第一)标题</h1>
<h2> 第二标题 </h2>
<h3> 第三标题 </h3>
<h4> . . . </h4>
<h5> . . . </h5>
<h6>最小的标题</h6>
 
<p>这是一个段落。</p>
<br> (换行)
<hr> (水平线)
<!-- 这是注释 -->

文本格式化(Formatting)

<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)

在这里插普通的链接:<a href="http://https://blog.csdn.net/weixin_45080371">链接文本</a>
图像链接: <a href="http://https://blog.csdn.net/weixin_45080371"><img src="URL" alt="替换文本"></a>
邮件链接: <a href="mailto:webmaster@example.com">发送e-mail</a>
书签:
<a id="tips">提示部分</a>
<a href="#tips">跳到提示部分</a>入代码片

图片(Images)

在这里插入<img src="URL" alt="替换文本" height="42" width="42">代码片

样式/区块(Styles/Sections)

<style type="text/css">
h1 {color:red;}
p {color:blue;}
</style>
<div>文档中的块级元素</div>
<span>文档中的内联元素</span>

无序列表

在这里插入<ul>
    <li>项目</li>
    <li>项目</li>
</ul>代码片

有序列表

<ol>
    <li>第一项</li>
    <li>第二项</li>
</ol>

表格(Tables)

<table border="1">	<!--border表示表格边框大小-->
  <tr>
    <th>表格标题</th>
    <th>表格标题</th>
  </tr>
  <tr>
    <td>表格数据</td>
    <td>表格数据</td>
  </tr>
</table>

框架(Iframe)

<iframe src="demo_iframe.htm"></iframe>

表单(Forms)

在这里插入代<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 selected="selected">中国</option>
<option>香港</option>
<option>澳门</option>
<option>台湾省</option>
</select>
<textarea name="comment" rows="60" cols="20"></textarea>
 
</form>码片

实体(Entities)

&lt; 等同于 <
&gt; 等同于 >
&#169; 等同于 ©

总结:
HTML 是一种在Web上使用的通用标记语言。HTML 允许你格式化文本,添加图片,创建链接、输入表单、框架和表格等等,并可将之存为文本文件,浏览器即可读取和显示。

HTML 的关键是标签,其作用是指示将出现的内容。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值