我的xhtml,你的意见 [英] My xhtml, your opinion

查看:61
本文介绍了我的xhtml,你的意见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!


这个新闻组的读者可以帮助我使用我的

xhtml技能。我唯一想要的是,我的网站上有一些关于

编码风格的反馈,您可以在以下网址找到:

http://michaelsremarks.com


因为我希望它有良好的xhtml和css,我还在authoring.stylesheets-group中发布了类似的

消息(关于css)。

非常感谢您的反馈,提示,提示或批评,


Michael

Hi everybody!

Can the honoured readers of this newsgroup maybe help me with my
xhtml-skills. The only thing I would like to have, is some feedback on
my coding style on my website, which you can find at:

http://michaelsremarks.com

Because I want it to have good xhtml and css, I also posted a similar
message (concerning css) into the authoring.stylesheets-group.
Thanks a lot for feedback, hints, tipps or criticism,

Michael

推荐答案

Michael Kalina写道:

Michael Kalina wrote:

http://michaelsremarks.com



| < body style =" background-

| image:url(http://michaelsremarks.com/images/hintergrund.gif)">


为什么要内联CSS?这是一个坏习惯,你会后来感到抱歉。


您可以使用CSS签名来允许人们自定义您的网站


< body id =" michaelsremarks-com">


我可以轻松删除您网站的虚假边距,并且不需要
需要做什么每次我访问你的网站时它都会再次出现。


| < p>

| < a href =" /"类= QUOT;喹">家庭和LT; / A> /

| < a href =" /?rss = 1" title =" XML feed"> RSS< / a> /

| < a href =" /?atom = 1" title =" XML feed"> Atom< / a>

| < / p>


这不是段落。不要使用P标记。更多像这样的情况




| < div class =" abschnitt"> Kategorien< / div>


这显然是标题。使用合适的航向元素(h2?h3?)。


| < p style =" text-align:center"> *< / p>


而是使用hr并很好地设计样式。不幸的是,在IE浏览器中查看*是不可能的。如果你想不出别的东西,把它换成

div而不是p。并使用一些内联CSS的类。也许你

想要改变那天*的大小或颜色。或者,如果我经常使用你的网站

,我会删除它。


| < h3>


你跳过了h2,不要这样做。 WAI指南有解释的链接。


相当不错。


-

Lauri Raittila< http: //www.iki.fi/lr> < http://www.iki.fi/zwak/fonts>

我在找工作Etsin ty?t?



| <body style="background-
| image:url(http://michaelsremarks.com/images/hintergrund.gif)">

Why inline CSS? That is bad habit you will be sorry for later.

You could use CSS-signature to allow people to customize your site

<body id="michaelsremarks-com">

The I could easily remove unnessary margins of your site, and wouldn''t
need to do it again each time I visit yout site.

| <p>
| <a href="/" class="noline">Home</a> /
| <a href="/?rss=1" title="XML feed">RSS</a> /
| <a href="/?atom=1" title="XML feed">Atom</a>
| </p>

This is not a paragraph. Don''t use P markup. More cases like this there
too.

| <div class="abschnitt">Kategorien</div>

This is obviously heading. Use suitable heading element (h2? h3?).

| <p style="text-align: center">*</p>

Rather use hr and style it nicely. Unfortunately it is impossible to
style hr to look * in IE. If you can''t think anything else, wrap it to
div instead of p. And use some class, insted of inline CSS. Maybe you
want to change size or color of that * someday. Or if I was regular on
your site, I would remove it.

| <h3>

You skipped h2, dont do that. WAI guidelines has link to explanation.

Quite good.

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
I''m looking for work | Etsin ty?t?


Lauri Raittila写道:
Lauri Raittila wrote:
Michael Kalina写道:
Michael Kalina wrote:
http://michaelsremarks.com


http://michaelsremarks.com/index.php?id=134


| < textarea name =" message" COLS = QUOT 1 QUOT;行= QUOT 1 QUOT; ...>


非常糟糕。使用一些在CSS被禁用时有效的行和列值。


-

Lauri Raittila< http://www.iki.fi/lr> ; < http://www.iki.fi/zwak/fonts>

我在找工作Etsin ty?t?


http://michaelsremarks.com/index.php?id=134

| <textarea name="message" cols="1" rows="1" ...>

Really bad. Use some row and cols values that work whe CSS is disabled.

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
I''m looking for work | Etsin ty?t?


Lauri Raittila< la *** @ raittila.cjb.net>写道:
Lauri Raittila <la***@raittila.cjb.net> wrote:
你跳过了h2,不要这样做。 WAI指南与解释有关。
You skipped h2, dont do that. WAI guidelines has link to explanation.




WAI指南中的解释是否比

更有说服力< http ://www.w3.org/TR/WCAG10-HTML-TECHS/#document-headers> ;?

我同意使用它们传达文档结构非常重要,但是

有时文档结构会导致作者跳过

级别。我的宠物示例是自然属于块的内容,每个

都有标题和一些内容(段落,列表等)。这些

" chunks"分为(H2)部分,其中一些足够大

分为子部分(H3)。


对我而言,似乎更具结构性将H4用于所有块标题,

即使这意味着在没有

小节的较小部分跳过H3。将H3用于某些块标题和H4为其他块

标题似乎不那么结构化。添加一个无关的(甚至是空的)

H3到较小的子部分看起来像是一个非结构性的黑客。


恕我直言,YMMV以及所有这些。< br $>
-

Darin McGrew, mc **** @ stanfordalumni.org http://www.rahul.net/mcgrew/

网页设计组, da***@htmlhelp.com http://www.HTMLHelp.com/

aquapella /a-kw& - ''pe-l& / adj。在淋浴中唱歌



Is there an explanation in the WAI guidelines that is more convincing than
the one at <http://www.w3.org/TR/WCAG10-HTML-TECHS/#document-headers>?

I agree that it is important to use them to convey document structure, but
there are times when document structure would lead an author to skip a
level. My pet example is content that naturally falls into "chunks", each
of which has a heading and some content (paragraphs, lists, etc.). These
"chunks" are organized into sections (H2), some of which are large enough
to be divided into subsections (H3).

To me, it seems more structural to use H4 for all the "chunk" headings,
even though that means skipping H3 in the smaller sections that don''t have
subsections. Using H3 for some "chunk" headings and H4 for other "chunk"
headings seems less structural. Adding an extraneous (perhaps even empty)
H3 to the smaller subsections seems like a non-structural hack.

IMHO, YMMV, and all that.
--
Darin McGrew, mc****@stanfordalumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp.com, http://www.HTMLHelp.com/

aquapella /"a-kw&-''pe-l&/ adj. sung in the shower


这篇关于我的xhtml,你的意见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆