X-Git-Url: https://git.ao2.it/xhtml11_quickref.git/blobdiff_plain/4ecba9b15f40ec5872db7be7e3fa400dfe2d0130..b5b96b795393e36ef91b7429371e9a71f35b97a4:/xhtml11_quick_reference_by_examples.html diff --git a/xhtml11_quick_reference_by_examples.html b/xhtml11_quick_reference_by_examples.html index d8d1855..20072b5 100644 --- a/xhtml11_quick_reference_by_examples.html +++ b/xhtml11_quick_reference_by_examples.html @@ -6,7 +6,7 @@ xsi:schemaLocation="http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd" xml:lang="en"> <head> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> <title>XHTML 1.1 Quick Reference by examples</title> @@ -22,6 +22,7 @@ --> <style type="text/css"> + /*<![CDATA[*/ .red { color: red; @@ -136,15 +137,16 @@ noscript {} script {} */ + /*]]>*/ </style> </head> <body> <h1>XHTML 1.1 Quick Reference by examples</h1> -<a id="top" /> -<p>This page offers a quick reference by examples of all the elements specified by the <a title="eXtensible +<p><a id="top" /> +This page offers a quick reference by examples of all the elements specified by the <a title="eXtensible Hypertext Markup language 1.1" href="http://www.w3.org/TR/xhtml11/">XHTML 1.1</a> W3C standard.</p> @@ -360,16 +362,20 @@ of the <strong>Text Module</strong>. <h3>Structure Module</h3> +<p> We don't show explicit examples for elements in the Structure module because they are Singleton elements, already used for the structure of this very page. Although you can style the <code>body</code> and <code>html</code> elements. +</p> <h3>Text module</h3> +<p> The Text module elements can be used inside a text to enrich it semantically. They are all style-able. +</p> <dl class="examples"> <dt>abbr</dt> @@ -386,15 +392,19 @@ They are all style-able. <dt>address</dt> <dd> - Antonio is from - <address>Naples, Italy</address> - a strange, still beautiful, city. + <address> + Antonio is from<br/> + <a title="Naples, Italy" + href="http://maps.google.com/maps?f=q&source=s_q&hl=it&geocode=&q=naples,+IT&sll=26.160677,-81.795616&sspn=0.137744,0.265045&ie=UTF8&ll=40.869911,14.252701&spn=0.232099,0.53009&z=11&iwloc=A">Naples, Italy</a>, + a strange, still beautiful, city.<br/> + His website is at <a title="ao2: attacchi teoristici" href="http://ao2.it">ao2.it</a> + </address> </dd> <dt>blockquote</dt> <dd> I usually say: - <blockquote cite="myself">Better looser than poser!</blockquote> + <blockquote cite="myself"><p>Better looser than poser!</p></blockquote> Not very widespread these days. </dd> @@ -411,10 +421,10 @@ They are all style-able. <dt>dfn</dt> <dd>I wonder how much my silly definition of happiness: - <dfn> - Happiness is the limit of our mood function when âhow I currently feelâ approaches + <blockquote> + <dfn>Happiness</dfn> is the limit of our mood function when âhow I currently feelâ approaches to âhow I want to feelâ - </dfn> + </blockquote> is flawed... </dd> @@ -498,8 +508,9 @@ They are all style-able. <dt>samp</dt> <dd> Let's clean up this file: + <pre>$ tidy -xml -access 3 -utf8 -i -m $THIS_FILE</pre> <samp> - tidy -xml -access 3 -utf-8 -i -m $THIS_FILE + No warnings or errors were found. </samp> </dd> @@ -515,8 +526,8 @@ They are all style-able. <dt>var</dt> <dd> - This file name is in <var>$THIS_FILE</var>... this is just an example, you - know. + Save this file to <var>xhtml11_quickref.html</var>... this is just an example value, + you can choose the name you like more. </dd> </dl> @@ -539,8 +550,10 @@ They are all style-able. <h3>List module</h3> +<p> For the list modules we show grouped examples, a <code>dd</code> or a <code>li</code> element alone does not have much sense. +</p> <dl> <dt>dl, dt, dd</dt> @@ -659,7 +672,9 @@ For the list modules we show grouped examples, a <code>dd</code> or a <h3>Forms module</h3> +<p> For the Forms module a grouped example is provided: +</p> <dl> <dt>button, fieldset, form, input, label, legend, select, optgroup, option, textarea</dt> @@ -732,7 +747,7 @@ function checksubmit() <p> <label for="user_info">User Info:</label><br /> - <textarea id="user_info" name="user_info"> + <textarea id="user_info" name="user_info" rows="4" cols="80"> Some info like favourite dishes and so on... </textarea> </p> @@ -742,8 +757,8 @@ Some info like favourite dishes and so on... <p> <input id="agree" name="agree" type="checkbox"/> <label for="agree">I have read and understood the code</label> + <button id="send_button" type="submit" onclick="checksubmit();">Submit?</button> </p> - <button id="send_button" type="submit" onclick="checksubmit();">Submit?</button> </form> </dd> @@ -751,7 +766,9 @@ Some info like favourite dishes and so on... <h3>Table module</h3> +<p> For the Table module a grouped example is provided: +</p> <dl> <dt>caption, col, colgroup, table, tbody, td, tfoot, th, thead, tr</dt> @@ -773,6 +790,13 @@ For the Table module a grouped example is provided: <th>Void</th> </tr> </thead> + <tfoot> + <tr> + <td>Sum</td> + <td>$280</td> + <td colspan="2">0</td> + </tr> + </tfoot> <tbody> <tr> <td rowspan="2">January</td> @@ -792,14 +816,6 @@ For the Table module a grouped example is provided: <td>0</td> </tr> </tbody> - <tfoot> - <tr> - <td>Sum</td> - <td>$280</td> - <td colspan="2">0</td> - </tr> - </tfoot> - </table> </dd> @@ -823,7 +839,7 @@ src="http://www.w3.org/Icons/w3c_main" style="vertical-align: middle;"/> centere <dt>map, area</dt> <dd> - <map id="map1" name="map1"> + <map id="map1"> <area nohref="nohref" alt="Vesuvio" title="Vesuvio" shape="poly" coords="156,183, 180,177, 203,167, 213,162, 225,160, 244,163, 266,155, 278,157, 286,163, 309,170, 331,175, 353,179, 372,184, 325,183, 287,179, 256,182, 232,184, 196,183, 156,183, 156,183, 156,183" /> <area href="http://en.wikipedia.org/wiki/Napoli" alt="Napoli" title="Napoli" shape="poly" @@ -831,7 +847,7 @@ src="http://www.w3.org/Icons/w3c_main" style="vertical-align: middle;"/> centere <area nohref="nohref" alt="Moon" title="Moon" shape="circle" coords="442,128,10" /> </map> - <img src="http://silvioirio.files.wordpress.com/2008/01/napoli2.jpg" alt="Napoli" usemap="#map1" /> + <img src="http://silvioirio.files.wordpress.com/2008/01/napoli2.jpg" alt="Napoli" usemap="map1" /> </dd> </dl>