HTML 02: font markup (TAGS)

Source: Internet
Author: User
Document directory
  • <H #>...

  • Specify the color <font color = #>... </font>
  • & #;#= Character entity name or ASCII Value
Font markup (TAGS)

Title Font (header)

<H1> the weather is good today! </H1>The weather is so good today! <H2> the weather is good today! </H2>The weather is so good today! <H3> the weather is good today! </H3>The weather is so good today! <H4> the weather is good today! </H4>The weather is so good today! <H5> the weather is good today! </H5>The weather is so good today! <H6> the weather is good today! </H6>The weather is so good today!

  • <HN> --- </HN> these marks show italics.
  • <HN> --- </HN> these tags automatically insert an empty row without the <p> MARK.
    Therefore, fonts of different sizes cannot be used in a row.
 

Font size <font size = #>... </font> # = 1, 2, 3, 4, 5, 6, 7 or + #,-#
<Basefont size =#># = 1, 2, 3, 4, 5, 6, 7

<Font size = 7> today's weather is good! </Font>The weather is so good today!

<Font size = 6> today's weather is good! </Font>The weather is so good today!

<Font size = 5> today's weather is good! </Font>The weather is so good today!

<Font size = 4> today's weather is good! </Font>The weather is so good today!

<Font size = 3> today's weather is good! </Font>The weather is so good today!

<Font size = 2> today's weather is good! </Font>The weather is so good today!

<Font size = 1> today's weather is good! </Font>The weather is so good today!

 

 

Physical Style)

<B> the weather is good today! </B>The weather is so good today!

<I> the weather is good today! </I>The weather is so good today!

<U> the weather is good today! </U>The weather is so good today!

<Tt> the weather is good today! </Tt>The weather is so good today!

<Sup> the weather is good today! </Sup> the weather is good today!

<Sub> the weather is good today! </Sub> the weather is good today!

<S> the weather is good today! </S> The weather is so good today!

<Strike> the weather is good today! </Strike> The weather is so good today!

 

 

Logical font (logical style)

<Em> the weather is good today! </Em>The weather is so good today!

<Strong> the weather is good today! </Strong>The weather is so good today!

<Code> the weather is good today! </Code>The weather is so good today!

<SAMP> the weather is good today! </SAMP>The weather is so good today!

<KBD> the weather is good today! </KBD>The weather is so good today!

<Var> the weather is good today! </Var>The weather is so good today!

<Dfn> the weather is good today! </Dfn>The weather is so good today!

<Cite> the weather is good today! </CITE>The weather is so good today!

<Small> the weather is good today! </Small> the weather is good today!

<Big> the weather is good today! </Big> the weather is good today!

 

 

Specify the combination of "font size" and "specified font"
<I> <font size = 5> <B> today </B> weather <font size = 6> really nice! </Font> </I>

TodayGood weather!

 

Font color

Specify the color <font color = #>... </font>
# = Rrggbb hexadecimal digital, or the following predefined colors:
Black, Olive, teal, red, blue, maroon, navy, gray, lime,
Fuchsia, white, green, purple, silver, yellow, Aqua

<Font color = ffffff> White </font> &
<Font color = white> White </font>

White & white

 

Font face)

<Font face = "#, #,..., #">... </font>
# = Fonts available on the client

<Font face = "Arial, helvetica"> hellow world! </Font>

Hellow world!

Client font face example
 

Entity)

& #;#= Character entity name or ASCII Value
Html2.0 Character Set
&amp;           &&lt;            <&gt;            >&quot;          "
Html2.0 character entity name list html3.2 character entity name list ISO character entity name list

 

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.