web常用标签

1.容器标签

<div>Hello</div>//占一行文本
<span>123</span>//在一行里边
<span>123</span>
<span>123</span>
<span>123</span>
<span>123</span>
//段落标记<p>111</p>

效果如图:
在这里插入图片描述

2.标题标签

<h1>标题1</h1>
<h2>标题2</h2>

效果如图:
在这里插入图片描述

3.无序列表

<ul type="square">
 <li>hello</li>
 <li>hello</li>
 <li>hello</li>
 <li>hello</li>
</ul>

效果如图:在这里插入图片描述

4.图片标签

<img src="file:///C|/Users/DELL/Pictures/新建文件夹/QQ图片20220419204829.png">
//这是一个单标签

效果就是插入了一张图片。

5.分割线标签

<hr>

效果如图:
在这里插入图片描述

5.链接标签

6.表格标记

<table width="600" border="1">
<tr>
<th>hello</th>
<th>hello</th>
<th>hello</th>
<th>hello</th>
</tr>
<tr>
<th>hello</th>
<th>hello</th>
<th>hello</th>
<th>hello</th>
</tr>
</table>

效果如下图:
在这里插入图片描述

7.126邮箱登录部分

<div id="login-word" align="center"> <b>邮箱账号登录</b></div>

<table>
					<tr height="80px">
                    	<td width="30px"></td>
						<td><input type="text" placeholder="邮箱账号或手机号码" class="">@126.com</td>
                        <td width="30px"></td>
					</tr>
					<tr height="80px">
                    	<td width="30px"></td>
						<td><input type="password" placeholder="输入密码" class=""></td>
                        <td width="30px"></td>
					</tr>
					<tr height="80px">
                    	<td width="30px"></td>
						<td><input type="checkbox"/>30天内免费登录 <a class="">忘记密码?</a></td>
                        <td width="30px"></td>
					</tr>
					<tr height="80px">
                    	<td width="30px"></td>
						<td><input type="submit" value="登录" class="button-size"></td>
                        <td width="30px"></td>
					</tr>
				</table>

效果如图:
在这里插入图片描述

8.input标签

<input type="radio"/>hello
<input type="checkbox" name="" id="" value=""/>hello
<input type="button" value="hello"/>
<input type="text" placeholder="邮箱账号或手机号码"/>
<input type="password" placeholder="输入密码"/>
<input type="submit" value="hello"/>
<input type="reset" value="重置"/>

效果依次如下图:
在这里插入图片描述

9.特殊符号

&lt; // 小于号  
&gt; //大于号
&amp; //与字符
&quot;//引号
&nbsp;//空格   

10.给文字加垂直的分割线

.daohang{
		border-left:#6E6A6A 1px solid;
		padding-left:12px;
		}

效果图如下:
在这里插入图片描述

11.126邮箱

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>126邮箱</title>

<style type="text/css">
body{
     
	margin:0px;}
	#logo{
     
		width:100%;
		height:70px;}
		#logo-logo{
     
			width:420px;
			height:70px;
			float:left;
			padding-left:50px;}
			#logo-img{
     
				width:163px;
				height:70px;
				float:left;
				}
			#logo-word{
     
				width:160px;
				height:60px;
				margin:0px;
				padding-top:10px;
				float:left;}
				.wordstyle{
     
					height:40px;
					margin:0px;
					padding-top:15px;
					border-left:#353333 1px solid;
					padding-left:15px;}
		#logo-right{
     
			width:420px;
			height:70px;
			float:right;}
			.ulstyle{
     
				margin:0px;
	 			padding:0px;
				list-style-type:none;}
				.listyle{
     
					height:30px;
					padding-top:25px;
					padding-left:6px;
					padding-right:6px;
					float:left;}
					.daohang{
     
						border-left:#6E6A6A 1px solid;
						padding-left:12px;}
	#login{
     
		width::100%;
		height:750px;
		background:#9963f9;
		padding-top:50px;}
		#login-content{
     
  • 17
    点赞
  • 42
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值