How does the HTML small tag work? Summary of usage of HTML small tags

Source: Internet
Author: User
HTML does not use CSS style to make the text smaller, many people forget this element, small tag its function is to be able to use in most elements, and let the small label selected text smaller than normal text a font size, which is small tag, Next, let's take a look at the following article about small tag usage examples.

First, let's look at an example of an HTML small tag:

<!doctype html>

The first simple use of small tags, normal is nested in other text tags inside, such as all in the <p> tag inside, want to let a few words or words to smaller point of Use this attribute (this is in addition to CSS style of the best practice).

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

is a normal text, because it says it is normal text, so we just use it well when it is normal text. We can see that the small tag is surrounded by the normal three words, the effect on the Web page is not significantly shorter than other normal text, this is the effect we want to do, personal feeling, sometimes enlarged labels and smaller labels more conspicuous. Don't say that.

Let's continue to look at the usage details of the small tag:

<!doctype html>

This time I added two tags in it, one is free, no tag, and the default is the P tag.

Let's look at the effect:

We can clearly see that the three paragraphs have been smaller things, in the largest font H2 the most obvious, we see the largest is the middle of the title tag. Look at the effect is very clear, our small tag can help the text in most elements of the small, in this insert, there is a bigger label, as well as the small tag, most of the tags can be used, want to see the use of large labels to the lower part of the recommendation.

Personal summary of small tags:

Adding a small tag to any text element can become smaller than the rest of the text next to it. Most of the tags are available, but after learning CSS styles It is very rare to use small tags, all knowing that CSS styles are easier to compare. However, in plain HTML text, the individual still likes to use the small tag, thought like this narrowing effect.

This is the article about HTML small tags. Want to learn more on the Topic.alibabacloud.com,html Study Manual section of the study, the students have problems can be in the bottom of the message to ask questions.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.