Hide HTML Code | Web design tips

 

Add hidden text to a web page


How to Hide HTML Comments in Your Web Pages

By Candice Pardue

Hide HTML code in your web pages so you can recognize where to make changes later. It's easy!

How to Hide HTML Comments in Your Web Pages

 

When viewing the HTML code of a web page, you might notice some strange tags that really stand out throughout the HTML code. These tags contain words that are not found on the web page when viewing it online. They are hidden HTML comment tags. Here's an example of how a web designer might hide HTML code using the comment tags. See the 3 comment tags below. Notice, each tag has a purpose.



Hide HTML Code

What these "hide" tags represent are areas of the HTML code that are not seen by visitors who are looking at your web pages online. However, your comments can be seen by anyone who views your HTML source code. So, don't put any sensitive information here such as passwords, funny stuff or personal information.

 

The 3 "Hide HTML Code" Tags Explained

 

Remember, the tags above are fictional. I'm only using these as examples to explain how beneficial it can be to hide HTML code for future reference.

Comment Tag #1 is just a general statement.

Comment Tag #2 states "Navigation menu links start here," meaning you can quickly locate your navigation menu in your HTML code by looking for this message. If you decide to make a change to your navigation menu six months from now, this comment will still be there. So, you can easily locate the menu codes when you need to make a change.

Comment Tag #3 states "Articles start here," which could mean a section of article links begins there or actual article text.

 

The text within the tags can say anything you want. Change the text only, but leave the tags in tact at the beginning and ending of your comment.

Site Updates Made Easy

 

As you can see, hiding HTML code for future reference can come in handy when you need to update your web pages. As a beginner, it will help you recognize where your codes are within the HTML code quickly.

 

Hide HTML Code Step by Step

 

Step 1: To hide HTML code within your web pages, go to your HTML code with a text editor or HTML editor. Click on "Edit" and "Find."

Step 2: Type in a word or phrase that would be located near where you need to insert your comment tag.

Step 3: Once you find the spot, insert the comment tag between major HTML tags of the page. Don't insert it within your other main codes. For example, look for the ending of a major tag by the "/" backward slash. A paragraph would end with the letter "p" preceeded by a backward slash and both within brackets.

 

Step 4: Next, type one of the comment tags above into your chosen spot and change the text to whatever you want. Be sure it's something you will recognize later.

 

Test It Out!

 

After inserting your comment tag using the instructions above, test it out on the Web. Transfer your web page to your site using FTP. Go online to look at your page. Be sure that no part of the comment tag appears on your visible web page. If it doesn't appear - and if nothing else is moved or disorganized - then you have succeeded!

 

If you're hesitant about trying this out on your main site pages, then copy one of the main pages into a "test" page, and insert the comment tag on the test page only. Once you know how to hide HTML code in your page successfully, then place the comment tags in your main site pages.

 

Future Preparation

 

You can never prepare enough when designing a website. Plan before you start. Decide how your web pages will be organized. Hide HTML code tags early on in a basic template for your website. Most web sites are uniform throughout as far as the menu bars and basic layout are concerned. When you save your pages from the template, the comment tags will already be in each page for you. This will save much time later. Always consider what's ahead before getting started with your site design.

"Want to really get started with designing your personal or business website? I highly reccommend that you take a look at the Webmastery Course for beginners.

You will learn all the basics of designing a website and you'll get templates to help get you going in becoming a webmaster. All at very little cost to you. Go here for details ..."

Bob Pardue, Owner
Webmaster Course .Com

---

Article written by Candice Pardue, Writer of Internet pages for content. Go here to learn web design from start to finish. This one's for beginners...

Can I Design a Website?


*** Reprint Information for this Article ****

This article showing how to hide HTML code may be reprinted for use as content at any website or in any publication as long as the article is kept in-tact with included links, text, etc.. and the resource at the conclusion of the article must remain with the article. The articles may not be sold for profit or included with a consumer product without written permission from the author. Thank you, and enjoy!


Disclaimer: Even though we have made every effort to provide good and precise web designing info with the ideas in these articles, Webmaster Course does not insure that all webmaster hints are correct. Degrees of web or Internet design success for beginning webmasters varies greatly dependent upon the attitudes, attributes and ambition of each individual Internet designer. Please check through any information you find in these reports before placing these web design tips on your home page or content pages of your business website. Use this "Hide HTML Code" advice as a guide to make web designing easier!

Google

 

How to Write HTML

More Articles about Web Design


How to Promote Your New Website Using Words


--------------------------------------------------------------------------------
Learn Web Design from Home  |  Mike's Article Marketing Newsletter   | Free Webmaster Articles | SiteBuildIt!
Web Hosting  |  Register Domain Name  | Content Writing ServicesPromote Your Site
Site Map | Subscribe to Web Design Weekly | FAQ | Learn Web Design
--------------------------------------------------------------------------------
Webmaster Course
 
 
© Copyright Webmaster Course - All rights reserved web design beginners | Hide HTML Code