Reply to Re: Naming files, classes, ids...

Your name:

Reply:


Posted by Davιmon on 11/10/05 12:55

dorayme wrote:
>
> Anyway, I know it has been said to keep to lower case for most
> of these things to avoid trouble. But if one is consistent, what
> trouble has anyone ever experienced?

I've never had any trouble, using all lowercase and underscores '_' in
place of spaces to separate words to aid the eye, which is a bit more
what the eye is used to reading than CamelCaps.

I like to try to name classes and id's in css as meaningfully as
possible, rather than describing the styling. i.e. i'd use .story_text
in preference to .middle_content, so that when I decide that the middle
really should be on the left, the name still remains correct. When there
are things that are just done for presentational reasons rather than
semantic ones,I give them obviously layout-orientated names like #column_one

Having said that, recently I've taken up using hyphenated filenames as
it's suggested Google et al. recognise each individual word that way.
But it seems counter-intuitive to me as the normal use of a hyphen is to
literally combine things together, not separate them...

http://www.prweaver.com/blog/2004/08/26/2-hyphen-and-underscore



--

DavΓ©mon
http://www.nightsoil.co.uk

[Back to original message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация