How to Disable Text in HTML

How to Disable Text in HTML thumbnail
HTML stands for HyperText Markup Language.

A lot of work goes into writing HTML code to create web pages. There are times, however, you don't want to erase your code or text entirely because you may need it again in the future. In this case, you can disable the code or text temporarily. This allows you to active it again quickly should you need to.

Things You'll Need

  • HTML editor
Show More

Instructions

    • 1

      Launch your HTML editor. Select "File" and "Open" in the program's navigation window. If you don't have an existing HTML document, you can select "File" and "New."

    • 2

      Determine which text you need to disable.

    • 3

      Comment out the text that needs to be hidden. The tags for this are "<!---" and "--->" without the quotation marks. Place "<!---" (no quotes) before the first letter of the text you're attempting to disable and "--->" (no quotes) after the last letter.

      Example:

      <!--- eHow.com is a great resource for learning how to do projects on your own. --->

      Everything in between the tags will be hidden in a user's browser window.

    • 4

      Select "File" and "Save." Upload the file to your server. Preview the document to make sure the disabled text is hidden.

Tips & Warnings

  • While disabling text hides it from being displayed in a browser, it doesn't hide it in the source code.

Related Searches:

References

  • Photo Credit Enter key image by HILAL Al Hinai from Fotolia.com

Comments

You May Also Like

Related Ads

Featured