Home >Web Front-end >HTML Tutorial >How to use html small tag? Summary of usage of HTML small tag

How to use html small tag? Summary of usage of HTML small tag

寻∝梦
寻∝梦Original
2018-09-11 13:38:244100browse

CSS styles are not used in HTML to make text smaller. Many people have forgotten this element. small tag Its function is to be used in most elements and allow the small tag to be used. The selected text is one font size smaller than the normal text. This is the small tag. Next, let’s take a look at the following article about the use examples of the small tag.

First, let’s look at the use of an HTML small tag. Example:

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>PHP中文网</title>
</head>
<body>
这是一个<small>正常的</small>文本
</body>
</html>

As shown in the figure, the first simple small tag is used. Normally, it is nested inside other text tags, such as

Inside the tag, use this attribute to make certain words or words smaller (this is the best approach besides CSS styles).

Let’s take a look at the example of the small tag above:

How to use html small tag? Summary of usage of HTML small tag

The picture shown is a normal text, because it is said to be normal. text, so we just use it as normal text. We can see that the three words enclosed by the small tag are normal. The effect displayed on the web page is obviously shorter than other normal text. This is the effect we want to achieve. Personally, sometimes zoom in The labels also have shrunken labels to make them more visible. Let’s not talk about this anymore.

Let’s continue to look at the details of the use of the small tag:

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>PHP中文网</title>
</head>
<body>
这是一个<small>正常的</small>文本
<h2>这也是一个<small>正常的</small>标题标签</h2>
<p>这还是一个<small>正常的</small>段落标签</p>
</body>
</html>

This time I added two tags in it at once, and one is free, no Tags are also equivalent to p tags by default.

Let’s take a look at the effect:

How to use html small tag? Summary of usage of HTML small tag

We can clearly see that the three paragraphs in the picture above have become smaller. The thing becomes most obvious in the largest font h2. What we see becomes the largest is the title tag in the middle. Just look at the obvious effect. Our small tag can help make the text smaller in most elements. Insert a sentence here, there are also larger tags, which are the same as the small tag. Most tags can be used. If you want to see how to use enlarged labels, go to the editor’s recommendations below.

Personal summary of the small tag:

Adding the small tag to any text element can make it one size smaller than other text next to it. It can be used in most tags, but after learning CSS styles, small tags are rarely used. Everyone knows that it is easier to use CSS styles. However, I still like to use the small tag in pure HTML text because I like the shrinking effect.

That’s it for this article about the html small tag. If you want to learn more, go to the PHP Chinese website and learn in the HTML Learning Manual column. Students who have questions can leave a message below.

【Editor's Recommendation】

How to use the big tag in html? Usage examples of html big tag

#How to set spaces in HTML paragraph elements? Summary of HTML space settings

The above is the detailed content of How to use html small tag? Summary of usage of HTML small tag. 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

Related articles

See more