It is currently Sat Dec 02, 2017 4:06 pm Advanced search
Why would that make a difference?wgabrie wrote:The object tag could be fixed if all of its attributes were inside quotation marks (" ").
The start tag too.wgabrie wrote:The closing </embed> tag will always show up as invalid in html 3-4 validators.
HTML5 allows any attribute in no namespace to be declared on <embed>.wgabrie wrote:Inside the <embed> tag, the "quality=high" attribute is not part of any html spec and is only used to set up the Flash player.
Why?wgabrie wrote:A better tool for custom tags is xml.
Actually, as I understand it, HTML5 started from a clean slate and then added features based on use-cases, and what is already implemented in UAs, rather than starting with looking at what is present in HTML4 strict.wgabrie wrote:HTML 5 is expanded from the HTML 4.01/XHTML 1.0 strict spec.
I don't expect browsers to drop support for legacy tags at all.wgabrie wrote:It isn't transitional so you can't use some of the HTML 3.2 attributs such as: <p align="right">.
Don't be so sure that legacy tags are the best way to go. It is only a matter of time before browser support for legacy tags withers.
Works for me. <embed> is not part of HTML3.wgabrie wrote:When I upgraded to Opera version 9.21, this HTML 3 embed tag no longer looped a sound clip:
<EMBED SRC="../midimusic/grandfather.mid" width=0 height=5 loop=true autostart=true>
(Taken from the Contemplator's Folk music site.)
It wouldn't. The "" are optional in HTML. It doesn't validate as HTML4 because of the <embed> tag -- not because of the lack of "" around attribute values.wgabrie wrote:The object tag will validate as proper HMTL code if all the attributes are inside "", If that was the concern in post #1.
wgabrie wrote:The only reason to leave attributes open is as a hack to fix an early Internet Explorer version (3 or something) that ignored enclosed attributes.
Althogh I haven't been testing the idea, an attribute may confuse a web browser if its open property contains spaces.
Why [use xml for cutom tags]?
Thank you for reminding me. HTML does allow the creation of any tag. But for a tag to do something special up to three things must happen:
1) The tag was already recognised by the web browser or associated plug-in.
2) Making a custom DTD, a doctype with a tag list, or an XML namespace.
3) Use stylesheets to change the tag's appearance.
Was there something else?
Browsers may always have a quirks mode, but, as I understand this creates problems such as loosing fine control over layout with stylesheets.
I'd like to clearify that when I refer to embed as an HTML 3 tag, I refer to the lack of enclosed tag attributes. -- A cronic problem of the HTML 3 era thanks to early Internet Explorer versions.
fprog wrote:Quotes are not necessary in HTML.
<img scr=city_bridge.png alt=Photograph of the city bridge at sunset in July 2007 border=0 />
<img scr="city_bridge.png" alt="Photograph of the city bridge at sunset in July 2007" border="0" />
fprog wrote:There's NO REASON to deprecate
<p align="right">
or <p><p> (not closed)
fprog wrote:There's also no reason why web browser would remove old tag...
it makes there product worst, not better, people still use these.
No.mskinner wrote:fprog wrote:Quotes are not necessary in HTML.
Incorrect.
It is not harder or slower, but it means something different. The above is equivalent to:mskinner wrote:Without using quotes, a sentence of several words is harder/slower for a browser to identify:
- Code: Select all
<img scr=city_bridge.png alt=Photograph of the city bridge at sunset in July 2007 border=0 />
<img scr="city_bridge.png" alt="Photograph" of="" the="" city="" bridge="" at="" sunset="" in="" july="" 2007="" border="0">
There's NO REASON to deprecate
<p align="right">
or <p><p> (not closed)
The first paragraph doesn't separate presentation from content (it is better to accomplish the same using a CSS class). The repeated paragraphs can be achieved using CSS margins or line breaks (<br />).
<img src=city_bridge.png alt=Photograph of the city bridge at sunset in July 2007 border=0 />
<img src=city_bridge.png alt='Photograph of the city bridge at sunset in July 2007' border=0 />
<html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>Google</title><style>...</style>
<script>...</script>
</head><body bgcolor=#ffffff text=#000000 link=#0000cc vlink=#551a8b alink=#ff0000 onload="sf();if(document.images){new Image().src='/images/nav_logo3.png'}" topmargin=3 marginheight=3><div align=right id=guser style="font-size:84%;padding:0 0 4px" width=100%>
....
<table cellpadding=0 cellspacing=0><tr valign=top><td width=25%> </td><td align=center nowrap><input name=hl type=hidden value=en><input maxlength=2048 name=q size=55 title="Google Search" value=""><br><input name=btnG type=submit value="Google Search"><input name=btnI type=submit value="I'm Feeling Lucky"></td><td nowrap width=25%><font size=-2> <a href=/advanced_search?hl=en>Advanced Search</a><br> <a href=/preferences?hl=en>Preferences</a><br> <a href=/language_tools?hl=en>Language Tools</a></font></td></tr><tr><td align=center colspan=3><font size=-1>Search: <input id=all type=radio name=meta value="" checked><label for=all> the web </label>....</body></html>
zcorpan wrote:mskinner wrote:fprog wrote:Quotes are not necessary in HTML.
Incorrect.
No.
zcorpan wrote:It is not harder or slower, but it means something different. The above is equivalent to:mskinner wrote:Without using quotes, a sentence of several words is harder/slower for a browser to identify:
- Code: Select all
<img scr=city_bridge.png alt=Photograph of the city bridge at sunset in July 2007 border=0 />
- Code: Select all
<img scr="city_bridge.png" alt="Photograph" of="" the="" city="" bridge="" at="" sunset="" in="" july="" 2007="" border="0">
fprog wrote:There's NO REASON to deprecate
<p align="right">
or <p><p> (not closed)The first paragraph doesn't separate presentation from content (it is better to accomplish the same using a CSS class). The repeated paragraphs can be achieved using CSS margins or line breaks (<br />).
So, what? It's legal and it should remain as such, this kind of non-sense deprecation means that YOU WANT to break existing web application, billions of web page, because you don't like the old tag.
fprog wrote:It also means that a legacy page or generated content cannot be inserted into a HTML5 page safely.
fprog wrote:Furthermore, maybe just maybe, I want to support old browsers that are not yet HTML5, while enhancing the display for HTML5 content?
fprog wrote:That was the goal behind some new tags
fprog wrote:Nobody ever wrote that, but this is PERFECTLY legal:
- Code: Select all
<img src=city_bridge.png alt='Photograph of the city bridge at sunset in July 2007' border=0 />
fprog wrote:I agree with you that putting quotes is a good thing,
but if you are http://www.google.com/
and let say you want to save few gigabytes of networking traffic...
by simply removing extra quotes, spaces, compress your identifier
and scripts to bare minimum.
You may want to write your welcome page like this, so it shows up in a blink of eye, notice the lack of quotes in some tag
Yes, and it might well be less error prone to always quote your attributes, but it doesn't mean that they are necessary (as in required by the spec).mskinner wrote:My example demonstrates a valid reason why attributes should be quoted.
HTML4 does not require quoted attributes.mskinner wrote:HTML 4.01 requires quoted attributes http://www.w3.org/TR/html401/intro/sgmltut.html so your "No" is neither accurate or helpful.
-- http://www.w3.org/TR/html401/intro/sgmltut.html#h-3.2.2HTML4 wrote:In certain cases, authors may specify the value of an attribute without any quotation marks.
Return to Feedback on the Specs
Users browsing this forum: No registered users and 1 guest