- From: Roger Hågensen <rescator@emsai.net>
- Date: Fri, 19 Mar 2010 14:45:18 +0100
I forgot to mention that in addition to <meta name="description" href="#desc" /> it could also be possible to implement it for <meta name="keywords" href="#keyw" /> etc. Full example: <!doctype html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="description" href="#description" /> <meta name="author" href="#author" /> <meta name="date" href="#date" /> <meta name="copyright" href="#copyright" /> <meta name="keywords" href="#keywords" /> <title>href extending the meta tags.</title> </head> <body> <article> <header>Section header.</header> <p id="#description">This is the first paragraph in the document or an aside or some other content perhaps.</p> <p>More content here.</p> <footer>Author: <a href="example.com/author/url/" id="#author">Roger H?gensen</a> on <time datetime="2010-03-18T08:00:00" id="#date">18th March 2010 at 8 o'clock.</time><br /> <span id="#copyright">? Roger H?gensen 2010</span><br /> Keywords: <span id="#keywords"><a href="http://example.com/tag/Example/">Example</a>, <a href="http://example.com/tag/Meta/">Meta</a>, <a href="http://example.com/tag/HTML5/">HTML5</a></span></footer> </article> </body> </html> The date example is a minor issue though, but I guess a parser could just check for a datetime attribute if the id is for a <time> tag? Roger. -- Roger "Rescator" H?gensen. Freelancer - http://EmSai.net/
Received on Friday, 19 March 2010 06:45:18 UTC