当前位置: 首页 >前端技术 > html的一些基本属性介绍

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格式化:

html的一些基本属性介绍 _ JavaClub全栈架构师技术笔记

代码演示和效果演示:

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

html的一些基本属性介绍 _ JavaClub全栈架构师技术笔记

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

1、无序列表的使用:

html的一些基本属性介绍 _ JavaClub全栈架构师技术笔记

代码演示和效果演示:

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

html的一些基本属性介绍 _ JavaClub全栈架构师技术笔记

2、有序列表的使用:

html的一些基本属性介绍 _ JavaClub全栈架构师技术笔记

代码和效果演示如下:

<!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的一些基本属性介绍 _ JavaClub全栈架构师技术笔记

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------每天学一点点,日积月累你也是专家!

 

转载于:https://www.cnblogs.com/1121518wo/p/11333508.html

作者:weixin_30416497
来源链接:https://blog.csdn.net/weixin_30416497/article/details/101336498

版权声明:
1、JavaClub(https://www.javaclub.cn)以学习交流为目的,由作者投稿、网友推荐和小编整理收藏优秀的IT技术及相关内容,包括但不限于文字、图片、音频、视频、软件、程序等,其均来自互联网,本站不享有版权,版权归原作者所有。

2、本站提供的内容仅用于个人学习、研究或欣赏,以及其他非商业性或非盈利性用途,但同时应遵守著作权法及其他相关法律的规定,不得侵犯相关权利人及本网站的合法权利。
3、本网站内容原作者如不愿意在本网站刊登内容,请及时通知本站(javaclubcn@163.com),我们将第一时间核实后及时予以删除。





本文链接:https://www.javaclub.cn/front/117296.html

标签:HTML
分享给朋友:

“html的一些基本属性介绍” 的相关文章