html的一些基本属性介绍
一、html的属性类型:
1、常见标签属性:
a、<h1>:align对其方式 例如:<h1 align="right"> hhhhh</h1> 表示标题hhhhh右对齐
b、<body>:bgcolor背景颜色
c、<a>:target规定在何处打开链接
2、通用属性:
a、class:规定元素的类名
b、id;规定元素唯一id
c、style:规定元素的样式
d、title:规定元素的额外信息
二、html格式化:

代码演示和效果演示:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>study</title>
</head>
<body>
<b>i like the mcu</b>
<br/>
<big>i like the mcu</big>
<br/>
<em>i like the mcu</em>
<br/>
<i>i like the mcu</i>
<br/>
<small>i like the mcu</small>
<br/>
<strong>i like the mcu</strong>
<sub>i like the mcu</sub>
<br/>
hhhh<sub>i like the mcu</sub>hoho
<br/>
<sup>i like the </sup>
<br/>
<ins>i </ins>
<br/>
<del>i like the mcu</del>
</body>
</html>

三、关于有序列表和无序列表的补充使用方法:
1、无序列表的使用:

代码演示和效果演示:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>study</title>
</head>
<body>
<ul type="disc">
<li>
i like the mcu
</li>
<li>
i like the mcu
</li>
</ul> <ul type="circle">
<li>
i like the mcu
</li>
<li>
i like the mcu
</li>
</ul> <ul type="square">
<li>
i like the mcu
</li>
<li>
i like the mcu
</li>
</ul>
</body>
</html>

2、有序列表的使用:

代码和效果演示如下:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>study</title>
</head>
<body>
<ol type="1">
<li>
i like the mcu
</li>
<li>
i like the mcu
</li>
</ol> <ol type="a">
<li>
i like the mcu
</li>
<li>
i like the mcu
</li>
</ol> <ol type="A">
<li>
i like the mcu
</li>
<li>
i like the mcu
</li>
</ol>
<ol type="i">
<li>
i like the mcu
</li>
<li>
i like the mcu
</li>
</ol>
</body>
</html>

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------每天学一点点,日积月累你也是专家!
html的一些基本属性介绍的更多相关文章
- DIV+CSS布局中主要CSS属性介绍
Float: Float属性是DIV+CSS布局中最基本也是最常用的属性,用于实现多列功能,我们知道<div>标签默认一行只能显示一个,而使用Float属性可以实现一行显示多个div的功能 ...
- location.hash属性介绍
location.hash属性介绍 例如URL: http://wwww.a.com/index#rhythmk 通过location.hash 我们将获取到 #rhythmk. 默认浏览器会滚动至i ...
- Autocomplete:属性介绍、firefox中文支持问题
如有问题,请前往 http://www.cnblogs.com/dreamowneryong/p/4953911.html 原文评论交流 一,属性介绍 * minChars (Number) 在触发a ...
- Intent的属性介绍
在Android系统的设计中有四大组件:Activity,Service,BroadcastReceiver,ContentProvider.Intent可以被应用于ContentProvider之外 ...
- RelativeLayout常用属性介绍
RelativeLayout常用属性介绍 转自: http://www.douban.com/note/97496783/ 下面介绍一下RelativeLayout用到的一些重要的属性: 第一类:属性 ...
- strut2配置文件属性介绍
mystruts.xml配置文件属性介绍 1.package标签的中的namespace属性 <package name="default" extends="st ...
- Chart控件,chart、Series、ChartArea曲线图绘制的重要属性介绍
先简单说一下,从图中可以看到一个chart可以绘制多个ChartArea,每个ChartArea都可以绘制多条Series.ChartArea就是就是绘图区域,可以有多个ChartArea叠加在一起, ...
- Spring事务传播属性介绍(二).mandatory、not_supported、never、supports
Required.Required_New传播属性分析传送门:https://www.cnblogs.com/lvbinbin2yujie/p/10259897.html Nested传播属性分析传送 ...
- Spring事务传播属性介绍(三).Nested
Required.Required_New传播属性分析传送门:https://www.cnblogs.com/lvbinbin2yujie/p/10259897.html Mandatory.Neve ...
- Spring事务传播属性介绍(一).required 和 reuqires_new
Mandatory.Never.Not_Support传播属性分析传送门:https://www.cnblogs.com/lvbinbin2yujie/p/10260030.html Nested传播 ...
随机推荐
- 并发编程-concurrent指南-原子操作类-AtomicLong
可以用原子方式更新的 long 值.有关原子变量属性的描述,请参阅 java.util.concurrent.atomic 包规范.AtomicLong 可用在应用程序中(如以原子方式增加的序列号), ...
- JcApiHelper 简单好用的.Net ApiHelper
一 背景 随着前端技术的不断发展,各种框架逐渐成熟,前端 Angular,React,Vue 三分天下.再加上移动端的崛起,前后端分离开发成为主流,前端后端代码混合开发的方式沦为被淘汰的局面.如今 M ...
- gePlugin封装成winform控件,一行代码即可加载。
将插件直接封装为控件,大大简化了GEPlugin的使用.多数常用功能也已经封装完毕,其他功能全部开放接口,直接调用即可. 1. GepluginControl控件传送门: 链接:https://pan ...
- Visual Studio中Es6的开发环境搭建
1.打开终端,输入初始化代码.输入代码之后会在目录中出现package.json,可以在红色下划线上写上作者名和描述(不写也可以) npm init -y 2.安装Babel转换器 npm in ...
- c++学习书籍推荐《C++语言的设计与演化》下载
百度云及其他网盘下载地址:点我 编辑推荐 <C++语言的设计与演化>由C++语言的设计者Bjarne Stroustrup著就,是一本阐述C++语言的设计及开发过程的无可争辩的内情手册.S ...
- 包教包会之Open Live Writer设置代码样式
Open Live Writer(以下简称OLW),作为一个在本地写博文,然后发布到各个博客网站的客户端,在使用上个人觉得还是比较好用的.但是其对IT博文中代码部分的内容样式支持不是很友好.下面是本人 ...
- Golang 高效实践之defer、panic、recover实践
前言 我们知道Golang处理异常是用error返回的方式,然后调用方根据error的值走不同的处理逻辑.但是,如果程序触发其他的严重异常,比如说数组越界,程序就要直接崩溃.Golang有没有一种异常 ...
- GIL与异步回调
07.07自我总结 一.GIL 1.概念 在CPython中,这个全局解释器锁,也称为GIL,是一个互斥锁 2.带来的问题 首先必须明确执行一个py文件,分为三个步骤 从硬盘加载Python解释器到内 ...
- 简单题[期望DP]
也许更好的阅读体验 \(\mathcal{Description}\) 桌面上有R张红牌和B张黑牌,随机打乱顺序后放在桌面上,开始一张一张地翻牌,翻到红牌得到1美元,黑牌则付出1美元.可以随时停止翻牌 ...
- Spring 自动生成getter和setter方法 tostring方法
添加maven依赖 <!-- https://mvnrepository.com/artifact/org.projectlombok/lombok --> <dependency& ...