如果我使用 XHTML 过渡文档类型,那么它(在我的作品集中)是否会显示出我不是专业专家?

发布于 2024-08-18 17:26:27 字数 359 浏览 13 评论 0原文

如果我使用 XHTML 过渡文档类型,那么它会(在我的作品集中)显示出我不是专业专家吗?

这是为一位没有支付太多工作费用的客户而设计的,他也没有 了解网络标准。我想使用一些已弃用的或演示性的项目来节省时间,那么我应该给他什么?

  • 具有严格 XHTML 但存在一些验证错误的网站

网站如果我将该网站添加到投资组合中会好吗?

If I use XHTML transitional doctype then will it show (in my portfolio) like I'm not a professional expert?

It is for one client who is not paying much for work, and he doesn't
know about Web Standards. I want to use some deprecated or presentational item to save time so what should I give to him?

  • Site with XHTML strict but with some validation errors

or

What would be good if I add that site in portfolio?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(8

深爱不及久伴 2024-08-25 17:26:27

使用您遵守的任何内容。使用“严格”的文档类型并不能证明您是“专业”的。

专业开发人员不会纠结于您使用的文档类型定义,除非您没有文档类型。重要的是你的作品集的结构,无论是视觉上还是标记/css/javascript 中。

使用“严格”文档类型与过渡文档类型与您的“专业”程度无关。如果您查看 StackOverflow,您会发现他们甚至使用 HTML 4 作为文档类型,甚至不使用 XHTML,并且他们这样做是有意的设计选择,而不是事后的想法。

Use whatever you comply with. Using a "strict" doctype will not prove you're a "professional".

Professional developers don't get hung up on the doctype definition you use, unless you have no doctype. What matters is the structure of your portfolio, both visually and in your markup/css/javascript.

Using a "strict" doctype vs. a transitional doctype has nothing to do with how "professional" you are. If you look at StackOverflow, you'll see even they use HTML 4 as their doctype, not even XHTML, and they did that as an intentional design choice, not an afterthought.

平定天下 2024-08-25 17:26:27

如果你想破坏严格的文档类型,那么使用它是没有意义的。使用过渡。

There's no point using a strict doctype if you're going to break it. Use transitional.

羁绊已千年 2024-08-25 17:26:27

标准就是这样。 标准,传统指南。一本“最佳实践之书”。 XHTML Transitional 在产品组合中取得了不错的成绩。

比较一下:

使用 XHTML 在新窗口上打开链接 过渡:

<a href="about:blank" target="_blank"></a>

相同的任务,在严格上,需要 JavaScript 方法,即

<a href="about:blank" rel="new_window"></a>
<script type="text/javascript">
var links = document.getElementsByTagName("A");
for (link in links)
{
  if (links[link].rel.toString().indexOf("new_window") > -1)
  {
    links[link].onclick = function(e)
    {
      window.open(this.href, '', '');
    }
  }
}
</script>

不要让自己复杂化。无论您使用什么,都要使用它

Standards are just that. Standards, a conventional guide. A "book of best practices". XHTML Transitional is a good score on a portfolio.

Compare this:

Opening a link on a new window, with XHTML Transitional:

<a href="about:blank" target="_blank"></a>

Same task, on Strict, requires a JavaScript approach, i.e.

<a href="about:blank" rel="new_window"></a>
<script type="text/javascript">
var links = document.getElementsByTagName("A");
for (link in links)
{
  if (links[link].rel.toString().indexOf("new_window") > -1)
  {
    links[link].onclick = function(e)
    {
      window.open(this.href, '', '');
    }
  }
}
</script>

Don't complicate yourself. Whatever you use, use it good.

清秋悲枫 2024-08-25 17:26:27

在我看来,专业人士的标志是了解您的客户希望通过您的工作完成什么,有能力向他们解释各种替代方案的价值和局限性,并让您熟练地实施他们的选择。当您准备从事另一份工作并且雇主要求查看作品集时,您可以向他们展示作品并解释为什么做出某些设计决策。

The mark of a professional, IMO, is to understand what your customer would like to accomplish with your work, have the ability to explain to them the values and limitations of various alternatives, and for you to skillfully implement their choices. When you are up for another job and the employer is asking to see a portfolio you can show them the work and explain why certain design decisions were made.

日裸衫吸 2024-08-25 17:26:27

重点不在于它是否会验证。重点在于为什么您会考虑使用您不遵守的文档类型?

The point is not if it will validate or not .. the points is why would you even consider using a doctype that you do not adhere to ?

苏大泽ㄣ 2024-08-25 17:26:27

“XHTML Transitional”不是垃圾,它是一个标准,就像所有其他标准一样。它有其清晰的规则,您的所有 Web 项目都应该 100% 正确运行,直到您遵守该标准。 (呃……如果浏览器完全支持该标准,哈哈。这个问题需要谷歌搜索……)

使用“严格”是更好的选择,但不要因为使用“过渡”而感到羞耻。但请避免像我曾经那样在“过渡”项目中复制粘贴“严格”代码 =)


PS:有一件小事... XHTML 1.1 需要在内部添加 [CDATA... 但几乎没有人这样做(google、yahoo、digg 等)。他们的网站继续运行。你会说什么? Google 在其起始页上写着 他们比我们更聪明

"XHTML Transitional" is not a rubbish, it's a standard, like all other standards are. It has its sharp and clear rules and all your web project should run 100% correctly until you keep that standard. (e-e-e... IF the browser fully supports that standard, ha-ha. That question needs googling...)

Using "Strict" is a little bit preferable but don't be ashamed of using "Transitional". But avoid copy-pasting "Strict" code inside "Transitional" project as I did once =)


PS: there is one small thing... XHTML 1.1 needs adding [CDATA... inside <script></script> but almost nobody does that (google, yahoo, digg..etc etc) . And their sites keep working. What would you say?. Google on it's start page writes <!doctype> and they are wiser then we are

森林很绿却致人迷途 2024-08-25 17:26:27

为什么不摆脱不推荐使用的元素呢?说真的,只有当你没有正确使用 CSS 时才需要它们,如果你不这样做,那就说明你不是“专业人士”。

另外,我认为 XHTML 文档应该始终验证。如果您创建 tag-soup,请使用 HTML。

Why not get rid of the deprecated elements? Seriously, you only need them if you don't use CSS properly, and if you don't, then that's what shows that you're not a 'professional'.

Also, in my opinion XHTML documents should always validate. If you create tag-soup, use HTML.

初与友歌 2024-08-25 17:26:27

尽管有一些充分的理由使用过渡文档类型,但每当我看到使用它的新页面时,我都会自动质疑作者是否使用 Dreamweaver 或类似程序来创建它,并且当作者在不使用不推荐使用的元素的情况下使用不推荐使用的元素时,我总是质疑他们的能力原因。

Though there are some good reasons to use the transitional doctype, whenever I see a new page using it, I automatically question whether the author is using Dreamweaver or similar program to create it, and I always question the author's ability when they use deprecated elements without reason.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文