- From: David Bailey <d.bailey@bathspa.ac.uk>
- Date: Mon, 18 Feb 2008 10:10:24 -0000
- To: <public-html-comments@w3.org>
This sounds like an good idea and I can see a number of uses, not least the example you gave. My only issue is that this functionality could be reproduced with <span>, or the <ul><li> combo and a CSS rule to remove list-style formatting, or by separating lines into individual paragraphs: http://users.bathspa.ac.uk/baid1/personal/clean-css-form.html ... the question is, which method has the most semantic meaning? Would a screen reader client differentiate <l> from <span>, <p> or <ul><li> when annunciating/pronouncing the text? How does this add meaning to the page when analysed by a search engine? Regards, -- David Bailey, Bath Spa University - Web Manager. -----Original Message----- From: public-html-comments-request@w3.org [mailto:public-html-comments-request@w3.org] On Behalf Of Dave Hodder Sent: 17 February 2008 21:07 To: public-html-comments@w3.org Subject: HTML 5: The l (line) element Please consider adding the 'l' element (as found in XHTML 2). The 'l' element can be used to break up text into separate lines, in a similar manner to the existing 'br' element. Unlike 'br', it is a container element; instead of "<p>Line 1<br>Line 2</p>", one would type "<p><l>Line 1</l><l>Line 2</l></p>". The main advantage of 'l' is presentational -- it becomes much easier to colour lines differently, to add automatic line numbers, etc. Example: <!DOCTYPE html> <html lang="en-GB"> <head> <title><l> Demonstration</title> <style type="text/css"> label { float: left; width: 8em } l { display: block } l :nth-child(odd) { color: #000; background: #EFF } l :nth-child(even) { color: #000; background: #FEE } </style> </head> <body> <form method="post" action="/profiles"> <p> <l><label for="forename">Forename:</label> <input type="text" id="forename" name="forename" size="50" maxlength="50" /></l> <l><label for="surname">Surname:</label> <input type="text" id="surname" name="surname" size="50" maxlength="50" /></l> <l><label for="foo">Foo:</label> <select id="foo" name="foo"> <option value="bar">Bar</option> <option value="baz">Baz</option> <option value="qux">Qux</option> </select></l> <l><label for="arfle">Arfle:</label> <select id="arfle" name="arfle"> <option value="barfle">Barfle</option> <option value="gloop">Gloop</option> <option value="glorp">Glorp</option> </select></l> </p> </form> </body> </html> As far as the web developer community is concerned, I don't believe adapting to use <l> would prove any more challenging than, for example, adapting to use <section>. Thank you, Dave P.S. One line of JScript is required to coax current versions of Internet Explorer into parsing the tag: <!--[if lt IE 8]><script type="text/javascript"> document.createElement('l'); // Register 'l' element within IE </script><![endif]-->
Received on Monday, 18 February 2008 10:10:35 UTC