框架集的有效html [英] valid html for framesets

查看:86
本文介绍了框架集的有效html的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!


我有一个html文件( http://www.kpc.nl/home.html )我发送给

w3验证器以及一个在线HTML整洁脚本。


w3验证器(validator.w3.org)声称框架集标签没有

有边框标签而html整洁脚本

http://infohound.net/tidy/tidy.pl )声称一切好的..


谁是对的?我问这个是因为我想写得很干净

html。如果w3验证器是正确的,我应如何在

a框架集中使用边框?


谢谢,Arie

低于我的文件: (以及 http://www.kpc.nl/home.html


1:<!DOCTYPE HTML PUBLIC" - // W3C // DTD HTML 4.01 Frameset // EN"

" http ://www.w3.org/TR/html4/frameset.dtd">

2:

3:< html>

4:< head>

5:< title> Keiser Prestatie Consultancy< / title>

6:< meta http-equiv =" Content-Type" ; content =" text / html;

charset = iso-8859-1">

7:< / head>

8 :

9:< frameset rows =" 125,*"边界=" 0" frameborder =" 0">

10:< frame name =" topframe" scrolling =" auto"

src =" interface / top.html">

11:< frameset cols =" 175,*" border =" 0">

12:< frame name =" toc" scrolling =" no"

src =" interface / toc / index.htm">

13:< frame name =" content" scrolling =" auto"

src =" content / home / index.html">

14:

15:< / frameset>

16:< / frameset>

17:

18:< noframes>< body>

19:

20:< / body>< / noframes>

21:

22:

23:

24:< / html>

解决方案

* Arie Mijnlieff在comp.infosystems中写道。 www.authoring.html:

我有一个HTML文件( http://www.kpc.nl/home.html )我发送给
w3验证器以及一个在线HTML整洁脚本。

w3验证器(validator.w3.org)声称框架集标签不具备
一个边框标签,而html整洁的脚本
http://infohound.net/tidy/tidy.pl )声称一切正常..




此在线界面使用的Tidy版本可能已经过时

因为当前Tidy正确报告


*%get http://www.kpc.nl/home.html | tidy -e

*第9行第1列 - 警告:< frameset>专有属性border

*第9行第1列 - 警告:< frameset>专有属性frameborder

*第11行第9列 - 警告:< frameset>专有属性border

*信息:给出的Doctype是 - // W3C // DTD HTML 4.01 Frameset // EN

*信息:文档内容看起来喜欢HTML Proprietary

-

Bj?rn H?hrmann·mailto:bj **** @ hoehrmann.de· http://bjoern.hoehrmann.de

Weinh。海峡。 22·Telefon:+49(0)621/4309674· http://www.bjoernsworld.de

68309曼海姆·PGP Pub。 KeyID:0xA4357E78· http://www.websitedev.de/


Bjoern Hoehrmann写道:

第9行第1列 - 警告:< frameset>专有属性border




问题是:这个属性的等价物是什么?我尝试了几个CSS的东西但不能得到相同的结果。

也许最好的方法是使用HTML 3.2?


Pierre Goiffon写道:

Bjoern Hoehrmann写道:

第9行第1列 - 警告:< frameset>专有属性border


问题是:此属性的等价物是什么?

http: //w3.org/TR/html4/present/frames.html#h-16.2.2


< frame ... frameborder =" ... >


IIRC,浏览器支持几乎不存在。

我尝试了很少的CSS东西但是却无法获得同样的东西结果。


CSS无法触摸帧。

也许最好的方法是使用HTML 3.2?



HTML 3.2根本没有框架。

http://w3.org/TR/html4/appendix/changes.html#hA.3 - FRAME和FRAMESET是

列在新元素下。


框架加载了可访问性问题,并且几乎总是最好的

避免。您似乎正在使用它们作为在多个页面上包含常见内容

的方法。更好的技术描述于
http://www.allmyfaqs .com / faq.pl?包含... ile_in_another

-

David Dorward< http://blog.dorward.me.uk/ > < http://dorward.me.uk/>

首页是〜/ .bashrc的位置


Hi !

I have an html file (http://www.kpc.nl/home.html) which i send to the
w3 validator as well as to a an online HTML tidy script.

The w3 validator (validator.w3.org) claims the frameset tag doesnt
have a border tag whereas the html tidy script
(http://infohound.net/tidy/tidy.pl) claims everything is ok..

Who is right ? I am asking this because i would like to write clean
html. If the w3 validator is right how should i suppres the borders in
a frameset ?

Thanks, Arie
below my file: (as well as on http://www.kpc.nl/home.html)

1: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
2:
3: <html>
4: <head>
5: <title>Keizer Prestatie Consultancy</title>
6: <meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
7: </head>
8:
9: <frameset rows="125,*" border="0" frameborder="0">
10: <frame name="topframe" scrolling="auto"
src="interface/top.html">
11: <frameset cols="175,*" border="0">
12: <frame name="toc" scrolling="no"
src="interface/toc/index.htm">
13: <frame name="content" scrolling="auto"
src="content/home/index.html">
14:
15: </frameset>
16: </frameset>
17:
18: <noframes><body>
19:
20: </body></noframes>
21:
22:
23:
24: </html>

解决方案

* Arie Mijnlieff wrote in comp.infosystems.www.authoring.html:

I have an html file (http://www.kpc.nl/home.html) which i send to the
w3 validator as well as to a an online HTML tidy script.

The w3 validator (validator.w3.org) claims the frameset tag doesnt
have a border tag whereas the html tidy script
(http://infohound.net/tidy/tidy.pl) claims everything is ok..



The version of Tidy that this online interface uses is probably outdated
as the current Tidy correctly reports

* % get http://www.kpc.nl/home.html | tidy -e
* line 9 column 1 - Warning: <frameset> proprietary attribute "border"
* line 9 column 1 - Warning: <frameset> proprietary attribute "frameborder"
* line 11 column 9 - Warning: <frameset> proprietary attribute "border"
* Info: Doctype given is "-//W3C//DTD HTML 4.01 Frameset//EN"
* Info: Document content looks like HTML Proprietary
--
Bj?rn H?hrmann · mailto:bj****@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/


Bjoern Hoehrmann wrote:

line 9 column 1 - Warning: <frameset> proprietary attribute "border"



The question is : what is the equivalent for this attribute ? I tried
few CSS stuffs but can''t manage to get the same result.
Maybe the best thing is to use HTML 3.2 ?


Pierre Goiffon wrote:

Bjoern Hoehrmann wrote:

line 9 column 1 - Warning: <frameset> proprietary attribute "border"

The question is : what is the equivalent for this attribute ?
http://w3.org/TR/html4/present/frames.html#h-16.2.2

<frame ... frameborder="...">

IIRC, browser support is close to non-existent.
I tried few CSS stuffs but can''t manage to get the same result.
CSS doesn''t touch on frames.
Maybe the best thing is to use HTML 3.2 ?



HTML 3.2 doesn''t have frames in it at all.

http://w3.org/TR/html4/appendix/changes.html#h-A.3 - FRAME and FRAMESET are
listed under the new elements.

Frames come loaded with accessibility problems, and are almost always best
avoided. You appear to be using them as a means to include common content
on multiple pages. Better techniques for that are described at
http://www.allmyfaqs.com/faq.pl?Incl...ile_in_another
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is


这篇关于框架集的有效html的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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