新网创想网站建设,新征程启航

为企业提供网站建设、域名注册、服务器等服务

HTML中如何设置类

小编给大家分享一下HTML中如何设置类,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!

创新互联致力于网站建设,网站制作设计,营销网页按需定制,成都外贸网站制作,企业网站建设,微信小程序开发,网站SEO优化,网站设计制作案例丰富,是成都做网站公司和建站公司,欢迎咨询。

对 HTML 进行分类(设置类),使我们能够为元素的类定义 CSS 样式。

为相同的类设置相同的样式,或者为不同的类设置不同的样式。

实例

London

London is the capital city of England. 

It is the most populous city in the United Kingdom, 

with a metropolitan area of over 13 million inhabitants.

 

分类块级元素

HTML

元素是块级元素。它能够用作其他 HTML 元素的容器。

设置

元素的类,使我们能够为相同的
元素设置相同的类:

实例

London

London is the capital city of England. 

It is the most populous city in the United Kingdom, 

with a metropolitan area of over 13 million inhabitants.

Paris

Paris is the capital and most populous city of France.

Tokyo

Tokyo is the capital of Japan, the center of the Greater Tokyo Area,

and the most populous metropolitan area in the world.

分类行内元素

HTML 元素是行内元素,能够用作文本的容器。

设置 元素的类,能够为相同的 元素设置相同的样式。

实例

My Important Heading

以上是“HTML中如何设置类”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注创新互联行业资讯频道!


当前文章:HTML中如何设置类
文章URL:http://www.wjwzjz.com/article/jgcgjd.html