How do I write text that doesn't show in the site? (HTML) - Geeks to Go Forums

Jump to content

Log in Register Register Malware removal guide How it works

How do I write text that doesn't show in the site? (HTML)

#1 Throntel

  • Group: Member
  • Posts: 39
  • Joined: 10-September 05

Posted 18 October 2005 - 09:31 AM

Does anyone know how I can have hidden teks in my html document that doesn't show at the final result?

I think in Javascript it was:
"<!--" "-->"
So I could write <!--Please respond--> But still it would have no effect on the script itself.

Anyone knows how I do this in a HTML tekst?

#2 Throntel

  • Group: Member
  • Posts: 39
  • Joined: 10-September 05

Posted 18 October 2005 - 09:54 AM

Oh, just found it, it was the same :tazz:
Well, If anyone knows another (Easyer way) Write it

#3 Neil Jones

  • Group: Member
  • Posts: 8,475
  • Joined: 03-October 05

Posted 18 October 2005 - 04:57 PM

The code will still appear in the HTML source, it just won't appear in the browser.

#4 gust0208

  • Group: Member
  • Posts: 311
  • Joined: 04-July 05

Posted 18 October 2005 - 09:15 PM

To make comments in HTML, it is correct to use <!-- and then end with --> as stated above.
To make comments in Javascript, you preceed the line with // to indicate a comment. It is a bit confusing since most Javascript is included in HTML, you will see the Javascript code surrounded by <!-- and --> to ensure it is not displayed, then within the javascript code, you will see comments denoted with a //.

Hope that helps,
Tom

#5 MaverickSidewinder

  • Group: Member
  • Posts: 257
  • Joined: 10-June 05

  Posted 01 November 2005 - 02:46 PM

If you want to cram your site with words so that the searchengine bots find them (which is a very bad and useless thing to do :) ) you could choose the smallest size (-7) font :tazz: and make it the same color as the bg. Or if u just wanna put comments then use the java <//---> thing :)

Just using resources found previously when i wanted to make my site show up on search engines...and many FAQs said that the font thing was a possible solution but not worthwhile...especially because it occupies space on your site...and if someone highlights some words by accident they will also see your words and they wont think highly of your site :woot:

Hope this helped...

Share this topic: