HTML tutorials-font and style for text

Source: Internet
Author: User
The tutorial HTML4.0 provides the ability to define fonts and use face properties to do this work. The property value of face can be any type of font on this machine, but in a bit of trouble, only the other computer has the same fonts in it that can appear in his browser in your pre-designed style.

<font face= "Font" >

Take a look at the example:

<HTML>
<HEAD>
<TITLE> Fonts </TITLE>
</HEAD>

<BODY>
<CENTER>
<font face= "italics _gb2312" > Welcome </FONT><P>
<font face= "Song body" > Welcome </FONT><P>
<font face= "Imitation _gb2312" > Welcome </FONT><P>
<font face= "bold" > Welcome </FONT><P>
<font face= "Arial" >welcom my homepage.</font><p>
<font face= "comic Sans MS" >welcom my homepage.</font><p>
</CENTER>
</BODY>

</HTML>

To make the text change, or to focus on a certain part, HTML provides some tags to produce these effects, the commonly used tags are listed as follows:

<B> </B> bold HTML language

<I> </I> Italic HTML language

<U> </U> underlined HTML language

<TT> <TT> Typewriter fonts HTML language

<BIG> </BIG> Large font HTML language

<SMALL> </SMALL> Small font HTML language

<BLINK> </BLINK> Blink effect HTML language

<EM> </EM> Express Emphasis, generally italic HTML language

<STRONG> </STRONG> Express Special emphasis, generally bold HTML language

<CITE> </CITE> for citations, examples, generally italic HTML language

Now let's take an example to see the effect:

<title> Font Styles </title>

<body>
<B> Bold Letter </B>
<P> <I> Italic Word </I>
<P> <U> Add underline </U>
<P> <BIG> Large Fonts </BIG>
<P> <SMALL> Small Fonts </SMALL>
<P> <BLINK> Flashing Effect </BLINK>
<P><EM>Welcome</EM>
<P><STRONG>Welcome</STRONG>
<P><CITE>Welcom</CITE></P>
</body>



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.