HTML element: Mark text,

Source: Internet
Author: User

HTML element: Mark text,

1. Mark content with basic text elements

First look at the display effect:

Corresponding HTML code:

<! DOCTYPE html> 

Corresponding element style:

* Generally, it indicates the keyword and product name * B {font-weight: bolder;} * generally, it indicates emphasizing * em {font-style: italic ;} * General Expression of Foreign words or technical terms * I {font-style: italic;} * General Expression of inaccuracy or correction * s {text-decoration: line-through ;} * generally, it indicates important text * strong {font-weight: bolder;} * generally, it indicates adding an underscore to the text * u {text-decoration: underline ;} * generally, it indicates adding the small font content * small {font-size: small;} *. Generally, it indicates adding the superscript and subscript * sup {vertical-align: sub; font-size: smaller;} sub {vertical-align: super; font-size: smaller ;}

 

2. Use language elements

Ruby, rt, and rp elements, first look at the effect:

Code:

<P style = "font-size: 3em;"> <ruby> latency <rp> (</rp> <rt> ch frequency </rt> <rp>) </rp> </ruby> <ruby> charm <rp> (</rp> <rt> mè I </rt> <rp>) </rp> </ruby> <ruby> protocol <rp> (</rp> <rt> w ng </rt> <rp>) </rp> </ruby> <ruby> protocol <rp> (</rp> <rt> li yunng </rt> <rp>) </rp> </ruby> </p>

 

3. Use pre-formatted content

The pre element can change the way the browser processes the content, prevent the combination of blank characters, and retain the format in the source document.

 

 

<pre>    <code>        var fruits = ["apples","oranges","mangoes","cherries"];        for(var i= 0; i < fruits.length; i++){            document.writeln("I like " + fruits[i]);        }    </code></pre>

 

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.