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.
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: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