页面命名约定OT [英] page naming conventions OT
问题描述
我是服务器生成静态页面。
我以为我会这样做:
取部分名称并追加页面标题带有破折号(下划线为
替换空格)。
我遇到的麻烦是各部分和页面标题都是大写的,
所以我得到的页面名称如下:
SERVICES-INDUSTRIAL.htm
小节看起来像:
服务 - 工业 - 机器_TOOLS.htm
现在,我意识到这是完全有效的,但它只是*看起来不正确
我。我很想小写它。
任何评论,风格或其他?也许一个更好的部分分割器
比破折号?这将是一个区分大小写的(linux / apache)服务器。
Jeff
I''m server generating static pages.
I thought I would do this:
Take the section name and append the page title with a dash (underscores to
replace spaces).
The trouble I have is that the sections and page titles are all uppercase,
so I get page name like:
SERVICES-INDUSTRIAL.htm
subsections would look like:
SERVICES-INDUSTRIAL-MACHINE_TOOLS.htm
Now, I realize that is perfectly valid, but it just doesn''t *look* right to
me. I''m tempted to lowercase it.
Any comments, stylewise or otherwise? Perhaps a better section divider
than a dash? This will be on a case sensitive (linux/apache) server.
Jeff
推荐答案
在2003年12月12日星期五19:13:32 +0000,Jeff Thies写道:
On Fri, 12 Dec 2003 19:13:32 +0000, Jeff Thies wrote:
获取部分名称并用短划线附加页面标题(下划线)
取代空格。
我遇到的麻烦是章节和页面标题都是大写的,
所以我得到的页面名称如下:
> SERVICES-INDUSTRIAL.htm
小节看起来像:
SERVICES-INDUSTRIAL-MACHINE_TOOLS.htm
任何评论,风格或其他方面?也许一个更好的部分分割器比一个破折号?这将是一个区分大小写的(linux / apache)服务器。
Take the section name and append the page title with a dash (underscores to
replace spaces).
The trouble I have is that the sections and page titles are all uppercase,
so I get page name like:
SERVICES-INDUSTRIAL.htm
subsections would look like:
SERVICES-INDUSTRIAL-MACHINE_TOOLS.htm
Any comments, stylewise or otherwise? Perhaps a better section divider
than a dash? This will be on a case sensitive (linux/apache) server.
您是否考虑过使用URL的层次性来获得
优势,而不是重新发明轮子?
http:// site / Services /
http:// site / Services / Industrial / > http:// site / Services / Industrial / Machine_Tools
可能是一个可行的方案。
Have you considered using the heirarchical nature of URLs to your
advantage, rather than reinventing the wheel?
http://site/Services/
http://site/Services/Industrial/
http://site/Services/Industrial/Machine_Tools
might be a workable scheme.
> >获取部分名称并用短划线附加页面标题(下划线
到
> > Take the section name and append the page title with a dash (underscores
to
替换空格。)
>我遇到的麻烦是部分和页面标题都是
大写,所以我得到的页面名称如下:
SERVICES-INDUSTRIAL.htm
小节将看起来像:
SERVICES-INDUSTRIAL-MACHINE_TOOLS.htm
任何评论,风格或其他?也许一个更好的部分分割器比一个破折号?这将是一个区分大小写的(linux / apache)服务器。
您是否考虑过使用URL的层次性来获得优势,而不是重新发明轮子?
< a rel =nofollowhref =http:// site / Services /target =_ blank> http:// site / Services /
http:// site / Services / Industrial /
http:// site / Services / Industrial / Machine_Tools
replace spaces).
The trouble I have is that the sections and page titles are all uppercase, so I get page name like:
SERVICES-INDUSTRIAL.htm
subsections would look like:
SERVICES-INDUSTRIAL-MACHINE_TOOLS.htm
Any comments, stylewise or otherwise? Perhaps a better section divider
than a dash? This will be on a case sensitive (linux/apache) server.
Have you considered using the heirarchical nature of URLs to your
advantage, rather than reinventing the wheel?
http://site/Services/
http://site/Services/Industrial/
http://site/Services/Industrial/Machine_Tools
有人想到,这似乎是正确的方法。
麻烦的是,只有19个html页面可以产生非常高的
目录文件比率。跟踪所有这些
目录并使链接指向正确的位置很麻烦。
干杯,
杰夫
可能是一个可行的方案。
It''s a thought, and it seems like the right way to go.
Trouble is that there are only 19 html pages which yields a very high
directories to files ratio. It''s a lot of trouble tracking all those
directories and making links point the right place.
Cheers,
Jeff
might be a workable scheme.
Owen Jacobson< an ****** @ lionsanctuary.net>写道:
Owen Jacobson <an******@lionsanctuary.net> wrote:
http:// site / Services /工业/ Machine_Tools
最好避免在URL中使用大写字符,因为它们主要是一个
的负担 - 任何尝试的人要记住一个助记符URL会发现
有区别的困难。
-
Yucca, http://www.cs.tut.fi/~jkorpela/
有关网页制作的网页: http://www.cs .tut.fi / ~jkorpela / www.html
Upper case characters are best avoided in URLs, since they are mainly a
burden - anyone who tries to remember a mnemonic URL will find
difficulties with case distinction.
--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html
这篇关于页面命名约定OT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!