Home  >  Article  >  Web Front-end  >  Detailed introduction to h5 elements/attributes/formatting

Detailed introduction to h5 elements/attributes/formatting

零下一度
零下一度Original
2017-07-17 11:07:591935browse

1.HTML element

1.1 element refers to all codes from the start tag to the end tag.

1.2 The content of the element is the content between the start tag and the end tag.

1.3 Most HTML elements can have attributes.

1.4 Tags can have attributes to provide more information to the element.

1.5 Commonly used tag attributes:

4a249f0d628e2318394fd9b75b4636b1:align对齐方式
6c04bd5ca3fcae76e30b72ad730ca86d:bgcolor背景颜色
3499910bf9dac5ae3c52d5ede7383485:target规定在何处打开标签

Test original code:

76c82f278ac045591c9159d381de2c57
9fd01892b579bba0c343404bcccd70fb
93f0f5c25f18dab9d176bd4f6de5d30e
a80eb7cbb6fff8b0ff70bae37074b813
b2386ffb911b14667cb8f0f91ea547a712346e916e0f7d1e588d4f442bf645aedb2f
9c3bca370b5104690d9ef395f2c5f8d1
6fa3005eeecd9db50adfd3db8c0d7852             <!--6c04bd5ca3fcae76e30b72ad730ca86d:bgcolor背景颜色-->
f2c3e983438c3678845eaacbdb3c0523打开本地5db79b134e9f6b82c0b36e0489ee08ed   <!--3499910bf9dac5ae3c52d5ede7383485:target规定在何处打开标签,示例中的在另一个空白页打开这个链接-->
6e76058f69c224dc3d4736aa09896887标题473f0a7621bec819994bb5020d29372a      <!--4a249f0d628e2318394fd9b75b4636b1:align对齐方式-->
36cc49f0c466276486e50c850b7e4956
73a6ac4ed44ffec12cee46588e518a5e

1.6 Common attributes:

class:规定元素的类名
id:规定元素唯一ID
style:规定元素的样式
title:规定元素的额外信息

1.7HTML formatting

a4b561c25d9afb9ac8dc4d70affff419      定义粗体文字
3d49bde0e0b2e042578ad34140b6c48e    定义大号字
907fae80ddef53131f3292ee4f81644b     定义着重文字
5a8028ccc7a7e27417bff9f05adf5932      定一斜体字
d015d241ae6d34c34210679b5204fe85  定义小号字
8e99a69fbe029cd4e2b854e244eab143 定义加重语气
b96cac025db4031319c29e1eb68f19d6    定义下标字
426be984ffbbb815d7d88e3543a85d91    定义插入字
823db3943044a0a9a620ada8d4b1d965    定义删除字

Test original code:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
 <title>挥舞着键盘征服世界的微博</title>
</head>
<body>
挥舞着键盘征服世界的微博
<br>
<b> 挥舞着键盘征服世界的微博</b> <!--定义粗体文字-->
<br>
<em>挥舞着键盘征服世界的微博</em>  <!--定义大号字-->
<br>
<i>挥舞着键盘征服世界的微博</i>  <!--定义着重文字-->
<br>
<small>挥舞着键盘征服世界的微博</small>  <!--定义小号文字-->
<br>
<strong>挥舞着键盘征服世界的微博</strong>  <!--定义加重语气-->
<br>
挥舞着键盘征服世界的微博<sub>欢迎来到我的微博</sub>挥舞着键盘征服世界的微博  <!--定义上标字-->
<br>
挥舞着键盘征服世界的微博<sup>挥舞着键盘征服世界的微博</sup>挥舞着键盘征服世界的微博     <!--定义下标字-->
<br>
<ins>挥舞着键盘征服世界的微博</ins>   <!--定义插入字-->
<br>
<del>挥舞着键盘征服世界的微博</del>   <!--定义删除字-->
</body>
</html>

The above is the detailed content of Detailed introduction to h5 elements/attributes/formatting. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn