/    Sign up×
Community /Pin to ProfileBookmark

Attributes in HTML 4.01 Strict

Am I correct in thinking there are no [I]fixed[/I] attributes in HTML 4.01 Strict?

to post a comment
HTML

7 Comments(s)

Copy linkTweet thisAlerts:
@Mr_Initial_ManauthorFeb 13.2009 — Thank you for the link, but that doesn't answer my question.
Copy linkTweet thisAlerts:
@rpgfan3233Feb 13.2009 — No, there are no fixed attributes in HTML 4.01 Strict. There are attributes with default values of course, like @ismap, but there are no fixed attributes in the DTD at all. In HTML 4.01 Transitional, @version on the HTML element is "-//W3C//DTD HTML 4.01 Transitional//EN".

This information is coming straight from the SGML DTDs for those doctypes.
Copy linkTweet thisAlerts:
@Mr_Initial_ManauthorFeb 13.2009 — No, there are no fixed attributes in HTML 4.01 Strict. There are attributes with default values of course, like @ismap, but there are no fixed attributes in the DTD at all. In HTML 4.01 Transitional, @version on the HTML element is "-//W3C//DTD HTML 4.01 Transitional//EN".

This information is coming straight from the SGML DTDs for those doctypes.[/QUOTE]


Thanks. ? I was trying to think of any fixed attributes, but I couldn't remember any!

The only ones I could remember are attributes I should have never used in the first place.
Copy linkTweet thisAlerts:
@FangFeb 13.2009 — fixed attributes ?
Copy linkTweet thisAlerts:
@rpgfan3233Feb 13.2009 — fixed attributes ?[/QUOTE]

From the HTML 4.01 Transitional/Loose DTD:
<!ENTITY % HTML.Version "-//W3C//DTD HTML 4.01 Transitional//EN"
-- snip -->
<!ENTITY % version "version CDATA #FIXED '%HTML.Version;'"
-- snip -->
<!ATTLIST HTML
%i18n; -- lang, dir --
%version;
<i> &gt;</i>


All of that basically becomes the following (only @version is expanded):
&lt;!ATTLIST HTML
%i18n; -- lang, dir --
version CDATA #FIXED "-//W3C//DTD HTML 4.01 Transitional//EN"
<i> &gt;</i>


The same thing is possible in XML DTDs as well, and the XHTML 1.0 DTDs do, in fact, use it for @xml:space for elements like style, script, etc. ^_^
Copy linkTweet thisAlerts:
@CharlesFeb 13.2009 — fixed attributes ?[/QUOTE]The idea is that when the document is properly parsed a fixed attribute will always show up and you can't change it.
×

Success!

Help @Mr_Initial_Man spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.27,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...