1、HTML 标题
HTML 标题(Heading)是通过<h1> - <h6> 标签来定义的.
示例一:
<span style="border: 0px; margin: 0px; padding: 0px; color: rgb(51, 51, 51); font-family: "Microsoft Yahei", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 21px;"><em></em></span><pre name="code" class="html" style="color: rgb(51, 51, 51); line-height: 24px;"><!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title><span style="font-family: "Microsoft Yahei", "Helvetica Neue", Helvetica, Arial, sans-serif;">http://blog.youkuaiyun.com/praifire</span></title>
</head>
<body>
<h1>这是一个标题</h1>
<h2>这是一个标题</h2>
<h3>这是一个标题</h3></body>
</html>
2、HTML 段落
HTML
段落是通过标签 <p> 来定义的.
示例二:
<span style="border: 0px; margin: 0px; padding: 0px; color: rgb(51, 51, 51); font-family: "Microsoft Yahei", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 21px;"><em></em></span><pre name="code" class="html" style="color: rgb(51, 51, 51); line-height: 24px;"><!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title><span style="font-family: "Microsoft Yahei", "Helvetica Neue", Helvetica, Arial, sans-serif;">http://blog.youkuaiyun.com/praifire</span><span style="font-family: "Microsoft Yahei", "Helvetica Neue", Helvetica, Arial, sans-serif;"></title></span>
<span style="border: 0px; margin: 0px; padding: 0px; color: rgb(51, 51, 51); font-family: "Microsoft Yahei", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 21px;"><em></em></span><pre name="code" class="html" style="color: rgb(51, 51, 51); line-height: 24px;"><pre name="code" class="html" style="color: rgb(51, 51, 51); line-height: 24px;"><strong style="font-family: "Microsoft Yahei", "Helvetica Neue", Helvetica, Arial, sans-serif;font-size:14px; background-color: rgb(255, 255, 255);"></strong></head><body>
<p>这是一个段落。</p>
<p>这也是一个段落。</p><span style="font-family: "courier new"; font-size: 13.2px;"><p>这是另外一个段落。</p></span>
<span style="font-family: "courier new"; font-size: 13.2px;"></body>
</html>
</span>3.HTML链接
HTML 链接是通过标签 <a> 来定义的.
示例三:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title><span style="font-family: "Microsoft Yahei", "Helvetica Neue", Helvetica, Arial, sans-serif;">http://blog.youkuaiyun.com/praifire</span></title>
</head>
<body>
<a href="http://blog.youkuaiyun.com/praifire">这是一个链接</a></body>
</html>
4.HTML图像
HTML 图像是通过标签 <img> 来定义的.
示例四:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title><span style="font-family: "Microsoft Yahei", "Helvetica Neue", Helvetica, Arial, sans-serif;">http://blog.youkuaiyun.com/praifire</span></title>
</head>
<body>
<span style="font-family: "courier new"; font-size: 13.2px;"><img src="</span><span style="font-family: "courier new"; font-size: 13.2px;"></span>http://avatar.youkuaiyun.com/8/5/B/1_praifire.jpg<span style="font-size: 13.2px; font-family: "courier new";">" width="104" height="142"></span><span style="font-size: 13.2px; font-family: "courier new";"></body>
</html>
</span>
本文介绍了HTML中的基本元素,包括标题、段落、链接和图像的使用方法,并提供了示例代码帮助理解。

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



