HTML Learning Notes (2)---text labels

Source: Internet
Author: User

Text is the basic part of web design, set the style of text, can play a multiplier effect, usually can use two methods.

The 1th option is to use HTML tags directly, such as: use bold tags <B> set text to bold style.

The 2nd method is to use CSS, cascading style sheets.

The HTML defines a level 6 heading, 1-6 levels, and the title text decreases as the series increases in turn.

Effects of <H1>H1

Effects of <H2>H2

Effects of

Effects of

Effects of

Effects of

The Align property enables you to align the horizontal side of the title text to the left, middle, and right. Align= "Left/center/right"

Test instance one as follows:

<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">

Test program Example Two:

<HTML><HEAD><title> Font Alignment </title>  </HEAD>  <BODY>  



HTML text settings:

<B> sets the text to be displayed in bold form. Grammar <B>...</B><I> settings text is displayed in italics. Grammar <I>...</I><EM> effects with <l> grammar <EM>...</EM><SUP> set text above text effect display. Grammar <SUP>...</SUP><SUB> Set text The following text effects are displayed. Grammar <SUB>...</SUB><U> Set the text to be underlined. Grammar <U>...</U><S> set Text to remove line display. Grammar <S>...</S><FONT> control of font, size, and text.

Grammar:

<font face= "Font", size= "Text Size", color= "color value" >...</FONT>

Face control font used by text

Size controls how large the text is

Color Set Text colors

Test Example Three:

<HTML>   <HEAD><title> font settings </title>  </HEAD>  <BODY>  <B> Bold </B><br>  <I> italic </I><br>  <EM> italic </EM><br>  font <sup > Superscript </SUP><br>  font <SUB> subscript </SUB><br> <U> underline  </U><br>  <S> Delete lines </S><br>  </BODY></HTML>



HTML Learning Notes (2)---text labels

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.