What is HTML I label? Summary of how HTML I tags are used

Source: Internet
Author: User
This article mainly describes the HTML I tag introduction, as well as the use of HTML I tag introduction, and finally my personal summary, then let's take a look at this article

First of all, what do we say about HTML I tags? Let's take a look at the introduction of the I tag:

<i> defines the parts that are different from the rest of the text and renders the text as italic text.

<i> tags are used to denote technical terms, idioms, ideas, names of spaceships, etc. in other languages.

Use the <i> element when elements with no other appropriate semantics are available.

Tip:,<i> Labels render italic text in HTML4.01. However, there is no need to do this in HTML5, you can use style sheets to format the text in the <i> element.

<i> Labels Display italic text effects.

<i> tags and content-based style tags <em> similar. It tells the browser to display the text contained therein in italics (italic) or italic (oblique) font. If this italic word is not available to the browser, you can use styles such as highlighting, anti-white, or underline.

Tip:<i> tags must be used with the end tag </i> combined together.

Note: Because I also is the abbreviation of icon, like bootstrap some popular frame, also often use <i> tag to store icons (icon), generally with CSS written to <i> tag

Next, let's talk about how to use the HTML I tag:

The element I represents is different from the regular text of the text, with a variety of voice or tone, for the classification of names, technical terms, idioms in foreign languages, translated prose, the names of ships in western languages.

If the text in the I element is in a different language than the primary text, use the lang attribute to indicate it. Such as:

<p> here <i> is topic.alibabacloud.com</i>topic.alibabacloud.com. </p><p> This is <i> a website that can learn </i> any programming language for free. </p><p> Many people like <i> to topic.alibabacloud.com</i> to learn. </p>

By default, the browser will display the accent text as italic. Operation Result:

I've pointed out all the changes, so it should be obvious.

Defining italic characters

<i> text </i>

The text produces a slanted style that can be used as a highlight or accent on a particular field

Summary of HTML I tags:

The HTML I tag is the style that can define the text in the HTML4.01 version, but the CSS style added in HTML5 can cancel the text formatting within the I tag, so few people in HTML5 use the <i> tag to express the text emphasis, But in the HTML4.01 version, the <i> tags are still welcome, which is one of the reasons why I want to say HTML I tags.

The article ends here (want to learn more about topic.alibabacloud.com, a website with lots of free programming courses), questions can be asked below.

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.