473,805 Members | 2,027 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

<a name=foo> close?

This seems too simple by I can't find the answer.

Must <a name="foo"> be closed with </a> ?
Must it have content?

W3C says the content cannot be block so what if :

<a name="foo">
<h2>Foo Is Good</h2> ( a likely location )

Where does the closer </a> go?

<a name="foo">&nbs p;</a> is ok but uses a line
<h2>Foo Is Good</h2>

Mason C
Jul 24 '05
30 2849
On Fri, 8 Jul 2005 20:34:50 +0000 (UTC), Darin McGrew
<mc****@stanfor dalumni.org> wrote:
David Ross <no****@nowhere .not> wrote:
When I use the NAME attribute, I use a blank content:
<a name="foo"> </a>


Mason A. Clark <ma*******@THIS ix.netcom.comQQ Q> wrote:
Opera does *not* recognize this. I tested it just now.


After reading all this "discussion ", I had to try it myself. Here's the
test setup I used.

In foo.html:

<!-- Several screenfuls of Lorem Ipsum -->

<a name="foo"> </a>
<h2>foo</h2>

<p><a href="bar.html# bar">go to bar</a>
<p><a href="foo.html# baz">go to baz</a>

<!-- Several screenfuls of Lorem Ipsum -->

<a name="baz"> </a>
<h2>baz</h2>

<p><a href="#foo">go to foo</a>

<!-- Several screenfuls of Lorem Ipsum -->

In bar.html:

<!-- Several screenfuls of Lorem Ipsum -->

<a name="bar"> </a>
<h2>bar</h2>

<p><a href="foo.html# foo">go to foo</a>

<!-- Several screenfuls of Lorem Ipsum -->

Opera 8.01 on MS Windows worked just fine with all 3 types of links:
href="#tag", href="thisdoc#t ag", and href="otherdoc# tag", with local files
and with documents from an HTTP server, with no DOCTYPE and with HTML 4.01
Strict, with <a name=...></a> and with <a name=...> </a>.

In what situation did Opera not recognize this type of anchor? And what
version of Opera?


See Els post 7/8/2005 2:43 AM Els found a special situation
in my demo url and opined it was a bug in Opera.

The demo is sitting at:

http://masonc.home.netcom.com/1template-1.html

It has <a name="top"></a> and <a href="#top"> and
does not work. Look for href near the bottom and
<a name right below <body

In view of this experience I would not depend on Opera 8.01 to
find an empty <a name="foo"> </a> (spaces don't count)

I'm using <a name="foo">&nbs p;</a> until I find something better.

Mason C why does no one believe in me?

=========the end===fini====c aput====
Jul 24 '05 #21
I wrote:
Opera 8.01 on MS Windows worked just fine with all 3 types of links:
href="#tag", href="thisdoc#t ag", and href="otherdoc# tag", with local files
and with documents from an HTTP server, with no DOCTYPE and with HTML 4.01
Strict, with <a name=...></a> and with <a name=...> </a>.

In what situation did Opera not recognize this type of anchor? And what
version of Opera?

Mason A. Clark <ma*******@THIS ix.netcom.comQQ Q> wrote: The demo is sitting at:

http://masonc.home.netcom.com/1template-1.html


It's an interaction between the link to the named anchor and your use of
"POSITION: fixed" in your style sheet. The problem goes away when I comment
out that property.

Actually, even with that property, Opera tries to do something; the page
scrolls up a few pixels each time I click on the "Return to the top of this
page" link.

Of course, I find "Return to the top of this page" links amusingly
pointless anyway, but that's another discussion.
--
Darin McGrew, mc****@stanford alumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp. com, http://www.HTMLHelp.com/

"Good teachers are costly. Bad teachers cost more." - Bob Talbert
Jul 24 '05 #22
On Sat, 9 Jul 2005 07:19:46 +0000 (UTC), Darin McGrew
<mc****@stanfor dalumni.org> wrote:

Of course, I find "Return to the top of this page" links amusingly
pointless anyway, but that's another discussion.


I've been accused of trolling. Isn't this a troll?

If a page must be scrolled. Surely an easy flip to the top is a
convenience to the viewer.

Mason C but..... enough of this thread it's done !
Jul 24 '05 #23
Mason A. Clark <ma************ *@ix.netcom.com > wrote:
On Sat, 9 Jul 2005 07:19:46 +0000 (UTC), Darin McGrew
<mc****@stanfor dalumni.org> wrote:

Of course, I find "Return to the top of this page" links amusingly
pointless anyway, but that's another discussion.
I've been accused of trolling. Isn't this a troll?


Depends on what "this" refers to.
If a page must be scrolled. Surely an easy flip to the top is a
convenience to the viewer.
Do you mean that you find it more comfortable to scroll down to a
"Return to the top of this page", carefully position the pointer over
it and click on it than to press the keyboard key "Home", for example?

Did you even print a page containing "Return to the top of this page"
links and think how manifestly foolish they look like on paper?
Mason C but..... enough of this thread it's done !


Who died and made you the czar of Usenet?

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 24 '05 #24
I wrote:
Of course, I find "Return to the top of this page" links amusingly
pointless anyway, but that's another discussion.

Mason A. Clark <ma*******@THIS ix.netcom.comQQ Q> wrote: If a page must be scrolled. Surely an easy flip to the top is a
convenience to the viewer.


Absolutely. And every browser I've used has had at least one built-in
mechanism for returning to the top of the current page quickly. There's no
need for such links on web pages.

Of course, browsers also have built-in mechanisms for navigating the
browser history (forward, back, etc.), printing pages, bookmarking pages,
opening links in new windows, closing windows, setting font sizes, etc.
--
Darin McGrew, mc****@stanford alumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp. com, http://www.HTMLHelp.com/

"Good teachers are costly. Bad teachers cost more." - Bob Talbert
Jul 24 '05 #25
Mason A. Clark <ma************ *@ix.netcom.com > wrote:
On Sat, 9 Jul 2005 07:19:46 +0000 (UTC), Darin McGrew
<mc****@stanfo rdalumni.org> wrote:

Of course, I find "Return to the top of this page" links amusingly
pointless anyway, but that's another discussion.


I've been accused of trolling. Isn't this a troll?

If a page must be scrolled. Surely an easy flip to the top is a
convenience to the viewer.


Yes, that's why the user has the Home key on their keyboard. It
returns them to the top of the page on every single page. Compare with
links that may or may not have been included on particular pages and
which if they are included will be in different places and styled
differently on every page. So which is easier for the user?

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net > <http://steve.pugh.net/>
Jul 24 '05 #26
Els <el*********@ti scali.nl> wrote in
news:84******** *************** *****@40tude.ne t:
Mason A. Clark wrote:
<H2 id="fooname" .. has been suggested.

But the W3C site says:

"However, browser support for ID link destinations is very poor,
so A NAME will be needed for quite awhile. "
Can't say I've found a user agent yet that fails to find <a
id="foo" name="foo"></a>. Anyone know which one would fail that?


IIRC, Netscape 4. I didn't find the quoted page at W3C, but a similar
page at <http://www.htmlhelp.co m/reference/html40/special/a.html> is
dated from 1998, when NS4's various incompetencies would have merited a
warning like this.

--
Thomas Dowling
Ohio Library and Information Network
Jul 24 '05 #27
On Sat, 09 Jul 2005 08:05:41 GMT, Mason A. Clark <ma************ *@ix.netcom.com >
wrote:
On Sat, 9 Jul 2005 07:19:46 +0000 (UTC), Darin McGrew
<mc****@stanfo rdalumni.org> wrote:

Of course, I find "Return to the top of this page" links amusingly
pointless anyway, but that's another discussion.


I've been accused of trolling. Isn't this a troll?

If a page must be scrolled. Surely an easy flip to the top is a
convenience to the viewer.

Mason C but..... enough of this thread it's done !


In the *real world* there are users who do not know their
keys will do something -- home for example.

And users like me whose lazy hand rests on the mouse.

btw, why would one have a css allowing printing of
useless stuff on paper?

Start your own thread. This is mine. End it.

Mason C usenet czar, pompous ass, stuffed shirt
Jul 24 '05 #28
Mason A. Clark wrote:
On Sat, 09 Jul 2005 08:05:41 GMT, Mason A. Clark <ma************ *@ix.netcom.com >
wrote:

In the *real world* there are users who do not know their
keys will do something -- home for example.
Except in rather unusual circumstances, it's *their* responsibility to
learn how to use their chosen browser.
And users like me whose lazy hand rests on the mouse.
"Improving the experience" for the clueless or lazy at the expense of
degrading it for those who've achieved at least minimal competence is
almost always a bad idea.
Start your own thread. This is mine. End it.

Mason C usenet czar, pompous ass, stuffed shirt


Well, two out of three ain't bad...

Dave

Jul 24 '05 #29
I wrote:
Of course, I find "Return to the top of this page" links amusingly
pointless anyway, but that's another discussion.

Mason A. Clark <ma*******@THIS ix.netcom.comQQ Q> wrote: In the *real world* there are users who do not know their
keys will do something -- home for example.

And users like me whose lazy hand rests on the mouse.
The browsers I'm familiar with have mouse-based ways to get to the top of
the page quickly, too.

The built-in mechanisms of the browser work reliably on every page. Web
authors' attempts to replicate browser functionality are less reliable.
And users who don't know how to use basic functions of their browsers will
only be confused when various pages imitate those functions inconsistently.
Start your own thread. This is mine. End it.


What makes you think that the original poster owns the thread? What makes
you think that anyone owns a thread? If you're tired of it, then stop
reading it. Killfiles are your friend.
--
Darin McGrew, mc****@stanford alumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp. com, http://www.HTMLHelp.com/

"Shin: a device for finding furniture in the dark." - Steven Wright
Jul 24 '05 #30

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2315
by: Fredrik Melin | last post by:
Hi, I have a vendor that requires me to send empty value, e.g. <OrderIDInfo /> problem is that my xslt need to add attributes, doing this <OrderIDInfo> <xsl:attribute name="orderID"> <xsl:value-of select="Root_Element/InvoiceHeader/Customer_PO_No" /> </xsl:attribute>
18
3132
by: lchian | last post by:
Hi, I have a vector of class Foo. When I do a push_back(), I expect stl to call the default constructor I wrote for Foo. But instead, stl makes up its own default that is initialized with garbage. Is there a way to force stl to use MY default constructor?
8
4892
by: Joseph Turian | last post by:
Some function requires a vector<const foo*> argument. How can I cast a vector<foo*> to vector<const foo*>? Thanks! Joseph
0
9716
marktang
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...
0
9596
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,...
0
10356
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10361
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,...
0
10103
tracyyun
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...
0
9179
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5536
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...
0
5676
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4316
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.