Cascading Style Sheets Tutorial

HTML font marker and attributes

  We are here to be talking about is the text of the marker, including font size, colors, fonts … and other changes, the appropriate application can increase the appearance pages! 

  Common font marker 

  <Hn> …</ Hn> title, the title font size settings, n = 1 (a) to 6 (small) will automatically jump into the party.    Usually used in such as chapters, paragraphs, etc. title. 

  Such as: <H2> heading </ H2> 

  Title 

  Such as: <H3 ALIGN = CENTER> heading </ H3> (Heading home) 

  Title 

  <B> …</ B> bold. 

  Such as: <B> bold </ B> 

  Bold 

  <I> …</ I> italics. 

  Such as: <I> italics </ I> 
  Italics 

  <U> …</ U> increase the bottom line. 

  Such as: <U> Underline </ U> 
  Underline 

  <DEL> …</ DEL> hyphen (deleted). 

  Such as: <DEL> underlining </ DEL> 
  Line 

  <TT> …</ TT> a font (fixed width text). 

  Such as: a font <TT> </ TT> 
  A font 

  <SUP> …</ SUP> superscript characters. 

  Such as: fonts <SUP> superscript characters </ SUP> 
  Superscript font characters 

  <SUB> …</ SUB> subscript characters. 

  Such as: fonts <SUB> subscript characters </ SUB> 
  Font subscript characters 

  <!…> Notes (not shown in the browser), and multi-line. 

  Such as: <! Update: 2000/1/1> 

  Set font size, colors, fonts 

  [Method for the creation of a total of the following: 

  1. HTML document set main text color.    <BODY> …</ BODY> marker. 

  Such as: <BODY TEXT=RED> …</ BODY> or <BODY TEXT = # FF0000 >…</ BODY> 

  2. Set basic font size, colors, fonts.    <BASEFONT> …</ BASEFONT> marker. 

  3. Set font size, colors, fonts.    <FONT> …</ FONT> marker. 

  <BASEFONT> …</ BASEFONT> Settings basic fonts, SIZE = 1 ~ 7,1 (minimum) 7 (maximum). 

  Such as: <BASEFONT SIZE=4> basic font size 4 </ BASEFONT> 
  Basic font size 4 

  Such as: <BASEFONT COLOR =#FF0000> set color </ BASEFONT> 
  Sets the color 

  Such as: <BASEFONT FACE = font set标楷体,细明体> </ BASEFONT> 
  Font set 

  <BIG> …</ BIG> basic font increase. 

  Such as: <BASEFONT SIZE=4> basic font size 4, </ BASEFONT> 
  <BIG> Increase of 5 </ BIG> 
  Basic font size for 4, increasing 5 

  <SMALL> …</ SMALL> basic fonts reduced. 

  Such as: <BASEFONT SIZE=4> basic font size 4, </ BASEFONT> 
  <SMALL> Decreased 3 </ SMALL> 
  4 basic font size, reduced to three 

  <FONT> …</ FONT> set font size, colors, fonts, SIZE = 1 ~ 7,1 (minimum) 7 (maximum). 

  Such as: <FONT SIZE=4> font size 4 </ FONT> 
  Font size 4 

  Such as: <BASEFONT SIZE=4> basic font size 4 
  <FONT SIZE= 1> a font size of 5 </ FONT> 
  <FONT SIZE=-2> -2 font size for 2 </ FONT >…</ BASEFONT> 
  Basic font size 4 
  1 font size 5 
  -2 Font size 2 

  Such as: <FONT COLOR =#FF0000> set color </ FONT> 
  Sets the color 

  Such as: <FONT FACE = font set标楷体,细明体> </ FONT> 
  Font set 

  Notes 

  1. Set the font size: If absolutely SIZE: <FONT SIZE=4> 
  And the relative SIZE such as: <FONT SIZE= 1> (BASEFONT set the font size to do addition and subtraction). 

  2. Set the font color can be color name or # RRGGBB table red-green-blue intensity (dark-FF-00).    # RRGGBB represent the red, green, blue RGB, each by two hexadecimal color values (ie decimal 0 ~ 255). 
  HEX: 0,1,2,3,4,5,6,7,8,9, A, B, C, D, E, F. 

  3. Fonts, font settings will be displayed in accordance with the order to identify the font, if the system default font while not show. 

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • DotNetKicks
  • DZone

Tags: Font, Font Family, Font Size, Font Style, Font Variant, Font Weight

Releated Posts

  • Em use the designated font size trouble
  • Css Manual (c) Font font
  • Flash on the font characters embedded components and functions explain
  • Flash clearly show how the font
  • Create using Flash MX 2004 pixel font

This entry was posted on Monday, April 30th, 2007 at 12:00 am and is filed under CSS Properties. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

« How prepared DHTML Web
Summary page document contains »

Leave a Reply

  • Categories

    • CSS Properties (491)
    • CSS Tutorial (1154)
    • CSS Tutorial By Examples (1201)
    • Css+Div Web Design (3274)
    • Xhtml and Web Design (1797)
  • Archives

    • February 2008
    • January 2008
    • December 2007
    • November 2007
    • October 2007
    • September 2007
    • August 2007
    • July 2007
    • June 2007
    • May 2007
    • April 2007
    • March 2007
    • February 2007
    • January 2007
  • Pages

    • About us

Cascading Style Sheets Tutorial