返回HTML中常用......登陆

HTML中常用标签及属性

无名氏_连2019-06-29 11:43:171632

<!doctype html>

<html>

<head>

<meta charset="UTF-8">

<title>HTML常用标签及属性</title>

<style>

font-weight:bold; //字体加粗

font-family:楷体; //改变字体类型

text-align:left center raght;//文本 靠左  居中 靠右

line-height:10px; //行高

text-dcoration:none; //链接取消下划线

text-dcoration:underline; //链接显示下划线

list-style:none; //去除ul li前的点

border:1px solid #ccc; //边框



 


</style>

</head>

<body>

<em>斜体-加粗</em>

<strong>正常加粗</strong>

<i>斜体</i>

<b>加粗</b>

<pre>预格式文本</pre>

<h1>标题</h1>

<p>段落</p>

<a>链接</a>

<span>常用于文本<span>

<sub>下标</sub>

<sup>上标<sup>

<!--锚点-->

<a href="top"></a>

<a href="#" id="top">返回顶部</a>

<!--有序列表-->

<ol>

<li>1</li>

<li>2</li>

<li>3</li>

</ol>

<!--无序列表-->

<ul>

<li>1</li>

<li>2</li>

<li>3</li>

</ul>

<!--自定义列表-->

<dl>

<dt>标题</dt>

<dd>1</dd>

<dd>2</dd>

<dd>3</dd>

</dl>

<!--表单-->

<form action="1.html" method="post">

文本:<input type="text" name="name">

密码:<input type="password" name="name" placeholder="请输入密码">

单选:<input type="radio" name="name">

多选:<input type="checkbox" name="name">

提交:<input type="submit" name="name">

重置:<input type="reset" name=""name>

<button>按键</button>

</form>

<table>

<tr>

<th>ID</th>

<th>name</th>

<th>age</th>

</tr>

<tr>

<td>1</td>

<td>peter</td>

<td>18</td>

</tr>

<tr>

<td>1</td>

<td>peter</td>

<td>18</td>

</tr>

</table>

</body>

</html>

最新手记推荐

• 用composer安装thinkphp框架的步骤• 省市区接口说明• 用thinkphp,后台新增栏目• 管理员添加编辑删除• 管理员添加编辑删除

全部回复(0)我要回复

暂无评论~
  • 取消回复发送
  • php.cn