Forum Moderators: open

Message Too Old, No Replies

Best way to "hide" text so it will get indexed?

I'm not selling anything, just want my name on my personal page

         

benlieb

10:34 pm on Nov 18, 2004 (gmt 0)

10+ Year Member



The situation: I do lots of sites, but finally did one for just me about 6 months ago. That site is just about me, but when I search my name in google (what estranged friends would do to find me) my page won't come up. Yet many other pages that mention me off the cuff do. I realized this is because I only mentioned my name in the keywords and on the main banner image, but very sparingly in the content of the site.

The Lesson: I must somehow add my name to my pages. But I don't want to be egotistical.

A Solution?: I developed the following so my name is invisible, and put this on my pages:

(external style...)
<style>
.hide {color:same_as_background; font-size:5%; line-height:2px}
</style>

<div class="hide">My name, My Long Name, My Nick Name</div>

The question: will search engines be wise to this? If so, how else can I solve my problem?

whoisgregg

2:42 am on Nov 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Why not just put in small grey text at the bottom of the page:

"This page © 2004 My long name."

Then it's visible, unobtrusive, and not egotistical since it serves a legitimate legal purpose. :)

encyclo

3:01 am on Nov 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Don't bother with the hidden text thing - you wouldn't want the site kicked out of the index for something as trivial as that. I'd just get with it and be egotistical, and add your name in there in plain text. Do something like a
<h1>
for your page title, and follow with a subtitle in a
<h2>
with "The personal website of My Long Name" or similar.

Of course, even better would simply be to get a few inbound links using the varieties of your name as link text. As the search phrase will be far from competitive (unless your name is Bill Gates), it would be simple to get the required result.

httpwebwitch

4:37 am on Nov 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



According to reliable sources, Google does not snoop into your CSS styles to find hidden text (yet!). So the method you mention should work just fine.

But I wouldn't recommend it. Hidden text is cowardly, and most people would agree it's spammy. You may never get caught, but if you do it's banishment for sure for using spammy techniques to hide text.

<div class="invisible">viagra viagra viagra viagra viagra viagra viagra viagra viagra viagra viagra viagra viagra viagra viagra viagra </div>

best regards,
httpwebwitch

paybacksa

4:49 am on Nov 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Use the alt text. A website called "SloppyJoes" can use alt text that says "Joe Salami's Sloppy Joe's Website" and get indexed for Joe Salami.

benlieb

5:27 am on Nov 21, 2004 (gmt 0)

10+ Year Member



What?

Do you mean img alt text?

I'm not sure I follow...

osfp

7:40 am on Nov 21, 2004 (gmt 0)



...Use the alt text...
thats the best way ,you can even put a page of content there exept Joe Salami (ie) Joe Salami ,eat at Joe's the best salami from Parma,Joe Salami's the best restaurant in town....ech

walkman

7:53 am on Nov 21, 2004 (gmt 0)



"According to reliable sources, Google does not snoop into your CSS styles to find hidden text (yet!). So the method you mention should work just fine. "

will your reliable sources give you a heads up before google starts looking ;)? Why risk it?

benlieb

7:56 am on Nov 21, 2004 (gmt 0)

10+ Year Member



Could someone please tell me what the previous posters mean when they say "alt text"?

Is this some meta tag I don't know of?

osfp

8:55 am on Nov 21, 2004 (gmt 0)



alt=the text you put on an image (gif,jpg ech)to tell whats the image is about.

osfp

8:57 am on Nov 21, 2004 (gmt 0)



hold a bit your mouse on the button above this page without click(post new topic)and you'll see an ALT text

davelms

5:31 pm on Nov 21, 2004 (gmt 0)

10+ Year Member



I though using your mouse to "hover" showed the TITLE not the ALT? That's my experience, anyway. I use Firefox. Perhaps it's a browser thing.

pageoneresults

5:42 pm on Nov 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Let's clear up a few things...

The correct name for the alt text is the alt attribute.

There is also a title attribute being discussed.

IE incorrectly displays the alt attribute on hover. Other browsers like Opera, Moz and Firefox display the title attribute if being used.

The alt attribute's purpose is for describing the content of an image. Not for stuffing keyword phrases. If you are using themed imagery, then your alt attributes will most likely contain keyword phrases. No more than 80 characters for the alt attribute. The shorter the better.

The title attribute is usually used to describe a link. If the link text itself is not descriptive enough, then utilization of the title attribute may come into play. This is strictly a usability issue. If the link text is descriptive enough, don't stuff the title attribute.

SuzyUK

6:12 pm on Nov 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Even if SE's are requesting CSS files does not mean they can parse them.. and besides even if they could you could very well have your name hidden in the screen media version of your page quite legitimately, perhaps only intending it to appear if the page is printed..

FWIW: I rank very well for my real name, which surprised me, it appears only once in the footer of my page, it's not in a link and it's not a heading element, just bog standard <p> text... but Some sites have used my real name in the link text when linking to my pages... so IMHO that is the answer.. and would work whether the text was hidden or not.

Suzy

trader

6:31 pm on Nov 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



...Use the alt text...thats the best way ,you can even put a page of content there....

Really? Is it not correct the SE's limit the number of words they scan in the alt txt tag? I recall reading somewhere G only reads the first 8 or 9 words, but not sure about that? Anyone know?

...IE incorrectly displays the alt attribute on hover. Other browsers like Opera, Moz and Firefox display the title attribute if being used...

Do not believe that is so as it is not an error by IE at all. The old research I have done on alt tags clearly say it's only purpose it so the user knows what the graphic is about in a few words, i.e. we put a photo of Pittsburgh PA on a site recently, without its correct alt tag you would likely not know the name of the city.

Alt text is also for use by the handicapped. Displaying the Title would be an incorrect and quite odd use and would serve no real purpose at all as the image may not be related to the title. IMO you have this backwards.

About getting your name indexed in the SE I think the best way is to mention it in the context you own the copyright. You can mention a business name or personal name (or both at same time) using that method, and is something I have done successfully myself. Putting your name next to the copyright in quotes makes this technique even more effective.

[edited by: trader at 6:55 pm (utc) on Nov. 21, 2004]

davelms

6:54 pm on Nov 21, 2004 (gmt 0)

10+ Year Member



Trader - here's a link to a previous discussion on the subject of title and alt attribute usage: [webmasterworld.com...]

trader

7:04 pm on Nov 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Davelms, not sure why you believe that the title tag gets displayed on mouse image hovering but thanks anyway for the link. Most all evidence including that thread, most anywhere else and hands-on, indicate that with most all browsers hovering the mouse over an image displays the img alt tag (as it shoould), definately NOT the title.

Perhaps some rarely used 2nd tier browsers like the ones you mention do it wrong. In all my yrs on the web I have never noticed an image display the title attribute, it's always the alt tag that is read.

P.S. It's possible some html coders may typein the web-site title in the alt tag as an easy way to use it rather than bother to use the correct img description, and that may be confusing you?

whoisgregg

7:11 pm on Nov 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What would be displayed in this situation?

<a href="foo.html" title="fooish discussions">
<img src="chatter.gif" alt="two people talking"
title="Silhouette of a man and a woman sharing a pleasant conversation." />
</a>

davelms

7:12 pm on Nov 21, 2004 (gmt 0)

10+ Year Member



Trader - I disagree / and I entirely agree with pageoneresults who explains above the difference much better than me and provides a list of browsers to test this (difference) with. I fully concur with the quoted findings.

[edit]I just tested with my site. With just an ALT atribute, IE6 displayed the content of ALT whilst Firefox displayed nothing on hover. With an ALT and a TITLE, both IE6 and Firefox displayed the TITLE - I was a little suprised about IE6 on the second test, but it just proved my point anyway. Sorry, I really posted that link earlier so I didn't have to post again to force this further off topic. Sorry guys.[/edit]

[edit again]Silhouette of a man and a woman sharing a pleasant conversation.[/edit]

pageoneresults

8:46 pm on Nov 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



The only time the alt attribute is to be displayed is when a user has images turned off and the alt attribute is displayed instead of the image. It should not be displayed on hover, that is incorrect if I'm not mistaken.

Now think about that, if you are stuffing the alt attribute with irrelevant text, what would the user with images turned off have to say about that? ;)

There really is no best way to hide text so it will get indexed, not without risks. There are many creative ways that you could easily incorporate your name into the structure of a site without it being too overly obvious. ;)

benlieb

8:52 pm on Nov 21, 2004 (gmt 0)

10+ Year Member



I was initially confused by the suggestion to use "alt text" because it never occured to me to use this other than for it's purpose. My site is not commercial. And additionally, I am in favor of W3C recommendations, and hope that one beautiful day in the future, web designers will be able think more about design than about the current limits to design: i.e. brower incompatibility, incomplete css implementation etc, "straight line syndrome" (just made that last one up to describe the fact that nearly everything with a curve on a website must be an image).

Anyway, I'd rather delay a little personal gratification to work towards universal standards. Just my approach of course...

The problem is essentially this: indexes like google have decided that my keywords are not enough to list me. So I have to decide not to be indexed or to add the proper "content" that will be indexed. In this case the words in question are my name, which I don't want to slap all over the site, as anyone at the site knows perfectly well whose site it is.

I've decided on a conservative hack: I've added one line of my name in various forms and colored it the same color as the bg of the page with an ext. css file. The size is normal. The only disadvantage is an extra "line" of whitespace.

I'm enjoying this conversation... thanks.

pageoneresults

8:52 pm on Nov 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



What would be displayed in this situation?

<a href="foo.html" title="fooish discussions"><img src="chatter.gif" alt="two people talking" title="Silhouette of a man and a woman sharing a pleasant conversation." /></a>

In IE, the title attribute of the image.
In Opera, the title attribute of the image.
In Firefox, the title attribute of the image.

The second title attribute in this instance would override the first. The above would be incorrect implementation of the alt attribute and title attribute on the img. Since the image is linked, the title attribute should be assigned to the a href and the alt attribute to the image. No title attribute on the image.

[edited by: pageoneresults at 9:06 pm (utc) on Nov. 21, 2004]

trader

8:56 pm on Nov 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This all makes no sense, the title attrib goes in the top of the page, and is typically used one time only. Why are you using examples where you put 2 titles in the htm page, including outting an non-needed extra tile attrib in the img/alt area. Surely you guys are misunderstanding the intended 1-time use of the title attrib?

P.S. I really could care less how Firefox or other 2nd tier browsers use the tags. Why not only worry about IE who probably has at least 90% of the market?

pageoneresults

9:02 pm on Nov 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



This all makes no sense, the title attrib goes in the top of the page, and is typically used one time only.

No, you are referring to the title element. We are discussing the title attribute. They are two different things.

SuzyUK

9:03 pm on Nov 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



trader.. sorry but perhaps you are misunderstanding the difference between the title element and the title attribute?

the two are different as P1R already said.. ;)
the <title>This is your title</title> element does only appear once per page but the title attribute serves an altogether different purpose...

The Title attribute [w3.org]


visual browsers frequently display the title as a "tool tip" (a short message that appears when the pointing device pauses over an object). Audio user agents may speak the title information in a similar context.

The Alt attribute [w3.org]


let authors specify alternate text to serve as content when the element cannot be rendered normally.

IE maybe doesn't have it "wrong" per se it's just that it displays the alt attribute as the tooltip on hover on an image if there is no title attribute present.. others just display the title attribute which as far as I can deduce is correct..

Suzy

trader

9:17 pm on Nov 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



OK thanks for explaining it. Even though I have coded many sites myself did not even know there was such a thing as a title tag for images. By Title 'attrib' I was referring to the title 'element' top of the page in the html head area, not titles in the body areas, so to a degree this is a wordage misunderstanding.

This is also mostly a moot point IMO as most all web-pages I have seen use the Alt exclusively regarding images, and not a Title there, though there are apparently some of us who use a Title with images I was not aware of, but am fairly positive it would be somewhat of a rare usage.

benlieb

10:54 pm on Nov 21, 2004 (gmt 0)

10+ Year Member



trader: title attributes can be used in just about any tag, not just img tags. These can be used to walk along the document structure, or to identify a specific "entity" in your document structure. Among the different browsers "title" and "id" have hazily defined differences. I personally always use "id" for CSS and javascript. An "expert" might have more on this...

You could also refer to my post above about "standards" and research the "standards" issue. Very illuminating. The reason web standards haven't made much progress seems to be that most people want to code for today, and can't afford to code for the future.

Also (not to step on anyone's toes), IE is the #$%&-iest browser out there, even though it does have ~90+% of the market share. An apt analogy would be the US not complying with international law because the US has a big army. That is, "strength"!= "moral highground." I don't want to turn this into a political debate, or offend anyone, but if you haven't noticed many major issues in the field of computing (open source vs. proprietary software, browser wars...) are philosophical and political, not simply technical issues.

Try doing a google search for "IE factor" or "no IE".

Happy surfing.

whoisgregg

1:23 am on Nov 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Since the image is linked, the title attribute should be assigned to the a href and the alt attribute to the image. No title attribute on the image.

Thanks pageoneresults for that info! I had no idea that linking an image would change where the title attribute was placed.

httpwebwitch

5:05 pm on Nov 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



walkman:

"will your reliable sources give you a heads up before google starts looking ;)? Why risk it?

nope. I sure wish they would, but I'm quite a few degrees of separation away from the people who control the indexes.

paybacksa

5:03 am on Nov 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



A website called "SloppyJoes" can use alt text that says "Joe Salami's Sloppy Joe's Website" and get indexed for Joe Salami.

Just to be perfectly clear, my suggestion was in no way "stuffing" the alt attribute. The poster wanted his name on the site, but not visible.

My example put his name into the (masthead?) image, properly scripted as important alt info for that image on that site, useful for sreen readers, SEs, etc.