W3C home > Mailing lists > Public > public-html@w3.org > June 2007

Re: HTML5 differences from HTML4 editor's draft

From: Martijn <martijn.martijn@gmail.com>
Date: Sun, 24 Jun 2007 19:15:55 +0200
Message-ID: <6c97b8b10706241015m6d501a9fs1cd8bc5360e30ec7@mail.gmail.com>
To: "Lachlan Hunt" <lachlan.hunt@lachy.id.au>
Cc: "Johannes Lichtenberger" <jl@nabooisland.com>, "HTML WG" <public-html@w3.org>

2007/6/24, Lachlan Hunt <lachlan.hunt@lachy.id.au>:
>
> Johannes Lichtenberger wrote:
> >> http://dev.w3.org/cvsweb/~checkout~/html5/html4-differences/Overview.html
> >
> > I don't really understand what "The a element without an href attribute now
> > represents a "placeholder link"." means, I can't really imagine what a
> > placeholder link should be or what it's used for.
>
> It just means that it's where a link would ordinarily be, but currently
> isn't.  For example:
>
> <menu>
>    <li><a href="/">Home</a>
>    <li><a>Products</a>
>    <li><a href="/services">Services</a>
>    <li><a href="/about">About</a>
> </menu>
>
> In this example, Products is a place holder link to the current page.
> It's a way keep the menu the same, without actually linking to the
> current page.
>
> One advantage is that allows to you easily style it differently from the
> other links, to indicate that it is the current page, without requiring
> an additional class.  e.g.
>
> menu a { /* Styles for current page */ }
> menu a:link { /* Styles for other links */ }

So a placeholder link isn't really a link?
Then why use the term link?

Regards,
Martijn
Received on Sunday, 24 June 2007 17:15:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:01 GMT