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