HTML - Text Formatings

  • Div - Formatting of Block Text
    The <div> Tag provides easy way to refer a block text.This element is very important when you are applying styles to block of text.
    Ex:
    <div align = "center">
       Programming Languages for Beginners <br />
       Priyal Kulathilake
       SriLanka
    </div>

  • Span Formatting Inline Text
    The <span> element selects inline text to apply styles.
    Ex :
       <div align = "center">
          This is my Blog Site <span style = "color : Blue">Programming for Languages Beginners
         
    </span> for the absolute beginners of Web Programming   </div>

    Out put:
    This is my Blog Site Programming Languages for Beginners for the absolute beginners of Web Programming
  • Blink
    Displays enclosed text as blinking on and off approximately once a second.
    Ex:
       <blink style = "color : Blue">Programming Languages for Beginners</blink>

    Output
    Programming Languages for Beginners

  • Marquee
    Displays scrolling text in a marquee style. That displays a moving banner.
    Ex:
       <marquee align = "left" loop = "infinite" behavior = "bounce" bgcolor = "orange" direction = "right" style = "color : Blue">Programming Languages for Beginners</marquee>

    direction: direction of the moving text
        Ex: Left to Right, Top to bottom
    behavior : behaviour of the marque
        Ex: Scroll, Slide, Alternate, Bounce
Will be continue

No comments:

Post a Comment