Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

SEO Tycoon


You are currently viewing our SEO Tycoon as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Do spans break words if there's no whitespace?
Old 05-02-2007, 04:16 AM Do spans break words if there's no whitespace?
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,023
Name: Forrest Croce
Location: Seattle, WA
Trades: 0
I've got a couple of questions about how some html tags are interpreted by the search engines. This isn't really Google specific, although they're the most important.

First, I like drop caps, and think they would look good in my photography articles. But to apply them, I need to throw a span around the first letter in the first word on the page. I've been making some improvements to a black and white Photoshop tutorial I wrote a while ago; I learned some new tricks, and managed to create an action set that complements the article. So, if I use a drop cap, does this turn "black and white" into "b lack and white?"

A span that's nested inside an h2 should be invisible, right? I want to make sections expandable and collapsible, with a + or - and use a class to make it red, bold, and with a thin outline. On the other hand, would it make more sense to try to put it outside the span? Maybe indent the h2 and then set "margin-top: -1em" on the toggle button that should wind up on the next line? Does it matter?

I realize content is still king, but the way it's packaged can make it more or less readable, especially as the content gets longer.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
 
Register now for full access!
Old 05-02-2007, 05:06 AM Re: Do spans break words if there's no whitespace?
King Spam Talker

Posts: 1,186
Location: Manchester, UK
Trades: 0
Regarding the first question about spans breaking up words - they don't.

Search for http://www.google.com/search?hl=en&q...=Google+Search

If you see the mandarindesign page, that uses a span to create a drop cap, yet the Google keeps the search term is intact.
gringo is offline
Reply With Quote
View Public Profile Visit gringo's homepage!
 
Old 05-02-2007, 12:25 PM Re: Do spans break words if there's no whitespace?
willcode4beer's Avatar
Super Moderator

Posts: 1,533
Name: Paul Davis
Location: San Francisco
Trades: 1
I agree with gringo, don't worry about it.

OTOH, you might try the CSS pseudo element instead. I noticed the paragraph followed by wrapping the first letter with a span.
Instead you could use
Code:
<style type="text/css">
p:first-letter {
    font-size:3em;
    color:#AA6666;
}
</style>
or whatever your preferred style is.

This should work for FF, IE5.5+, Opera, Safari, and Konqueror
__________________

Please login or register to view this content. Registration is FREE

willcode4beer is offline
Reply With Quote
View Public Profile
 
Old 05-02-2007, 03:55 PM Re: Do spans break words if there's no whitespace?
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,023
Name: Forrest Croce
Location: Seattle, WA
Trades: 0
Quote:
Originally Posted by gringo View Post
Regarding the first question about spans breaking up words - they don't.

Search for http://www.google.com/search?hl=en&q...=Google+Search

If you see the mandarindesign page, that uses a span to create a drop cap, yet the Google keeps the search term is intact.
Thanks! I was thinking I'd be able to test things against my own site once Google updated the cache ... it didn't even occur to me to find another page that's coded similarly to find the answer. ( I must be losing it! )
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Reply     « Reply to Do spans break words if there's no whitespace?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13626 seconds with 12 queries