Today let’s get to know two html tags that I don’t use very often: sub tags and sup tags.
Definition and usage: The
tag can define subscript text. can define superscript text. They are all inline elements and are slightly smaller than the current font by default.
Example:
sub and sup tags in html
This tag is
subThis tag is
sup div>
Draw inferences from one example:
Let’s take a look at how to achieve this effect with mathematical equations?
sub and sup tags in html
x
1 y
23=15
< ;/div>
Other applications: By chance, I discovered Taobao some time ago The website has made some modifications to the price (I don’t know why, but it has now been restored), which is different from the previous traditional price performance.
sub and sup tags in html>
< style type="text/css">
¥< /sup>43.26I believe that the applications of sub and sup tags are not limited The same goes for other HTML tags. As long as you understand them and activate our thinking and imagination, you can use them skillfully and show their unique charm.
Statement of this Website
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
Latest Articles by Author
-
2024-10-22 09:46:29
-
2024-10-13 13:53:41
-
2024-10-12 12:15:51
-
2024-10-11 22:47:31
-
2024-10-11 19:36:51
-
2024-10-11 15:50:41
-
2024-10-11 15:07:41
-
2024-10-11 14:21:21
-
2024-10-11 12:59:11
-
2024-10-11 12:17:31