iLTC Home
Bookmark iLTC!

Categories

Perl
  • Perl Tutorials Beginners

  • Javascript
  • Javascript Tutorials
  • Javascript Tutorials Beginners

  • HTML
  • HTML Tutorials

  • Command Line
  • Command Line Tutorials

  • How Tos
  • Other Tips and Tricks



  • for(var i;i < 1000;i++) { }
    1716003

    iLoveTheCode.com

    CSS Strikethrough

    To make strikethrough text using CSS, use text-decoration: line-through in your stylesheet.

    Short Example:

    <style type="text/css">
    .mystri {text-decoration: line-through;}
    </style>
    <div class="mystri">Hello</div>

    Hello


    -We created a stylesheet
    -We named our class "mystri" because we like the way that sounds when said aloud.
    -We assigned the class "mystri" to a div tag.


    Note: You could use HTML strikethrough tags if you prefer (<strike> or <s>). But both of these HTML tags are depricated in HTML 4.0.1, meaning they may become obsolete in future versions of HTML.

    Example:
    <strike>Hello</strike> or <s>Hello</s>

    Hello
    Hello

    Wrap the text you want to be strikethrough in HTML's <strike> or <s> tag.

    HTML Strikethrough - iLoveTheCode


    Related Resources:
    w3c.org 15.2.1 Font style elements: the TT, I, B, BIG, SMALL, STRIKE, S, and U elements
    Make Italic Text Using HTML
    Make Text Bold Using HTML




    Previous Article: Wordpress Change the Excerpt Dots to Article Link with Read More Text
    Next Article: CSS Hide Text Use Display None in HTML to Hide Text






    Search iLTC w/ Google




    Recent Articles

  • HTML Font Code
  • Javascript and CSS - Easy Pop Up Help Balloons
  • Use OnMouseOver in Javascript
  • Use onMouseOut in Javascript
  • Use innerHTML to Change Text on a Page
  • Renaming a File with Perl's RENAME Function
  • PRINT to Browser with document.write Command in Javascript
  • Passing an Argument or Variable to a Javascript
  • Opening an Alert Box in Javascript
  • Opening a REMOTE WINDOW in Javascript
  • OPEN and WRITE a Data File in Perl
  • OPEN and READ a Data File in Perl
  • Mimic Typing from a Textfield in a Textarea with Javascript
  • Javascript Reset Form








  • Perl Programming - Javascript Programming - HTML Code - Mac Unix Command Line - Maybe Some PHP - Free Scripts - ILoveTheCode
    All Content © 2006-2009 iLoveTheCode.com


    Contact Chris | About this Site


    1715729
    Counter by iLoveTheCode.com


    Last Modified: Thursday, 05-Feb-2009 03:08:11 EST



    Hosted as well :)
    Home-brewed logo - 1997