Hi,
I have routinely added anchors to pages using both name and id:
<a name="example" id="example"></a>
under the possibly mistaken assumption that at some stage "name" might
be deprecated but "id" was unlikely to be.
Can I ask what is accepted practice currently?
Thanks for your trouble,
Andrew
--
Andrew's Corner http://people.aapt.net.au/~adjlstrong/ubuntu_cli.html 4 2724
André Gillibert wrote:
Put the value in upper case letters.
<a name="EXAMPLE" id="EXAMPLE" href="URI">anch or text</a>
This is because the ID element type has a declared value of ID, while
the NAME element type has a declared value CDATA.
Values of attributes of declared value ID are case folded as specified
by the HTML SGML declaration which contains "NAMECASE GENERAL NO", but
CDATA values are never case folded.
But what about this?:
<http://www.w3.org/TR/html4/struct/global.html#ade f-id>
id = name [CS]
i.e. ids are case-sensitive. Is it an error, or am I misinterpreting it?
For an extensive description of the issue, read: https://www.cs.tcd.ie/15445/UG.HTML#FOLDING
--
ss at comp dot lancs dot ac dot uk |
In article <sl************ *******@debrand ed.larseighner. com>,
Lars Eighner <us****@larseig hner.comwrote:
In our last episode, <sl************ *******@ilium.i nvalid>, the lovely and
talented andrew broadcast on comp.infosystem s.www.authoring.html:
Hi,
I have routinely added anchors to pages using both name and id:
<a name="example" id="example"></a>
under the possibly mistaken assumption that at some stage "name" might
be deprecated but "id" was unlikely to be.
That name would be deprecated was announced with XHTML 1.0 and name
was deprecated for A and MAP in XHTML 1.1. Of course it is going to be in
HTML 4.x forever and XHTML is pretty much neither fish nor fowl so let's not
feed into that can of worms.
But not html 5... http://www.w3.org/html/wg/html5/diff/#absent-attributes
"name attribute on map, img, object, form, iframe, a (use id instead)."
In our last episode,
<no************ *************** *@news1.chem.ut oronto.ca>,
the lovely and talented David Stone
broadcast on comp.infosystem s. www.authoring.html:
In article <sl************ *******@debrand ed.larseighner. com>,
Lars Eighner <us****@larseig hner.comwrote:
>In our last episode, <sl************ *******@ilium.i nvalid>, the lovely and talented andrew broadcast on comp.infosystem s.www.authoring.html:
Hi,
I have routinely added anchors to pages using both name and id:
><a name="example" id="example"></a>
under the possibly mistaken assumption that at some stage "name" might
be deprecated but "id" was unlikely to be.
That name would be deprecated was announced with XHTML 1.0 and name was deprecated for A and MAP in XHTML 1.1. Of course it is going to be in HTML 4.x forever and XHTML is pretty much neither fish nor fowl so let's not feed into that can of worms.
But not html 5...
http://www.w3.org/html/wg/html5/diff/#absent-attributes
"name attribute on map, img, object, form, iframe, a (use id instead)."
Where is the DTD?
--
Lars Eighner <http://larseighner.com/ <http://myspace.com/larseighner>
Countdown: 495 days to go.
What do you do when you're debranded?
Hello,
Harlan Messinger wrote:
André Gillibert wrote:
>andrew wrote:
>>Hi,
I have routinely added anchors to pages using both name and id:
<a name="example" id="example"></a>
under the possibly mistaken assumption that at some stage "name" might be deprecated but "id" was unlikely to be. Put the value in upper case letters.
<a name="EXAMPLE" id="EXAMPLE" href="URI">anch or text</a>
This is because the ID element type has a declared value of ID,
It does not. First, you mean "type", not "value",
André is right: it is called "declared value". This may be confusing,
because it is similar to the "type" in programming languages, but the SGML
spec uses "declared value".
and second, the type
of the id attribute is "name".
http://www.w3.org/TR/html4/struct/global.html#h-7.5.2
André refers to the HTML DTD. The HTML spec uses 'type' scheme on top of the
SGML rules, but a real SGML parser does not know about that.
>while the NAME element type has a declared value CDATA.
Values of attributes of declared value ID are case folded as specified by the HTML SGML declaration which contains "NAMECASE GENERAL NO", but CDATA values are never case folded.
Semantically , id="example" is strictly equivalent to id="EXAMPLE" and an HTML filter may apply such a case folding. However, name="example" isn't equivalent to name="EXAMPLE".
http://www.w3.org/TR/html4/types.html#h-6.1
This is untrue. Both attributes are marked "[CS]" (case sensitive), and
id="EXAMPLE" is not the same as id="example".
It is case sensitive on the 'HTML level', which is one step above SGML. A
SGML parser *does* fold id="example" into id="EXAMPLE" - HTML rules cannot
change that. HTML will then treat this uppercased string case sensitive.
--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://pink.odahoda.de/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Ben Wilson |
last post by:
To anyone who can help me, you have my thanks in advance.
I am implementing a "301 Moved Permanently" redirect in my website due to a
change of our domain names. Unfortunately, I am having a problem with
reconstructing the target "Location" http header because I'm missing just
one thing.
My links look as follows:
http://www.oldurl.com/beanie.php#three?register=false&demt=43
|
by: mlv2312 |
last post by:
Hi,
I have experienced problems when dealing with nested anchors.
I implemented some code to perform highlighting and specific anchors
are used for the searched words. The problem is when the searched words
are inside <a href> tags, the links are lost after putting my anchors.
For example:
<a class="Programa" href="#" OnClick="window.open('/something.tif');"
|
by: mlv2312 |
last post by:
Hi,
I have experienced problems when dealing with nested anchors.
I implemented some code to perform highlighting and specific anchors
are used for the searched words. The problem is when the searched words
are inside <a href> tags, the links are lost after putting my anchors.
For example:
<a class="Programa" href="#" OnClick="window.open('/something.tif');"
|
by: learner |
last post by:
Hi,
A document has many Anchors.
I want to take a particular action only if some particular anchors
are clicked.
I mean if some anchors are clicked, i want an alert box to pop up
with ok and cancel. and if ok is clicked i have to view that link, if
cancel, then it should not open that link.
How to do this?
|
by: adrian suri |
last post by:
Hi
just started to experement with styleshhets, and have defined hover
a:hover
{
Color : red;
Text-decoration : none;
Border-top-width : medium;
Border-right-width : medium;
| |
by: Rich |
last post by:
Strangely, on-page anchors will work on MSIE, but not on Netscape7.2
or Firefox1.5. All anchors are numbers e.g. <a href="#21">TOPIC</a>
supposed to connect down to <a name="#21>beginning of text</a> .
Could be further complicated by the ASP and SQL designation of URL.
like: http://sampleURL.org/FAQs.asp?FAQMID=11&NumFaq=10&bmode=Main
W3C validator said 91 errors, mostly on tables, fonts and graphics,
but didn't seem to complain about...
|
by: Crimperman |
last post by:
Hi,
need some advice on URIs
In a dynamic page (perl driven) we list a number of items presented in
an hierarchical tree structure. Within that page is a form which allows
you to search for items containing various strings (trying to get the
users to *remember* CTRL+F was proving fruitless). The results are then
presented at the top of the page with links to the relative anchor
references (<a href="#foo">) . When clicked these would...
|
by: Alec MacLean |
last post by:
Hi.
I'm using VS2005 Pro to work on a website project for my company.
The site has several navigation elements, all based on the standard VS2005
navigation components.
I have high-level section navigation provided via a horizontal menu, a
SiteMapPath to provide a breadcrumb and a vertical menu component on the
left edge.
|
by: windandwaves |
last post by:
does it matter if I write
var anchors = document.getElementsByTagName("A");
or
var anchors = document.getElementsByTagName("a");
Or is there a better way to catch both <a hrefs and <A HREFS
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |