Shlomi Fish  committed e51beba

Add the item about non-valid markup.

  • Participants
  • Parent commits 7a69bf1
  • Branches default

Comments (0)

Files changed (2)

     - Bad elements page:
         - Packaging as a CPAN distribution.
-        - Generating Invalid markup (HTML, etc.)
         - Unrelated packages (e.g: OtherModule) inside MyModule.
             - Preferably every package should be inside one module (except for
             private ones).
         @ DONE [Fri 2013-05-03]
     - Bad elems: Generally - don't use punctuation variables.
         @ DONE [Fri 2013-05-03]
+    - Bad elems: Generating Invalid markup (HTML, etc.)
+        @ DONE [Sat 2013-05-04]
 # vim:ft=quicktask:sw=4:ts=4:et

File src/tutorials/bad-elements/perl-elements-to-avoid.xml-grammar-vered.xml

+<item xml:id="generating_non_valid_markup">
+<title>Generating non-validing Markup (of HTML/etc.)</title>
+You should make sure that the HTML markup you generate is
+<a xlink:href="">valid
+HTML</a> and that it validates as XHTML 1.0, HTML 4.01, HTML 5.0, or a
+different modern standard. For more information, see
+<a xlink:href="">the
+“Designing for Compatibility” section</a> in a previous talk.
+Some bad code is:
+<bad_code syntax="perl">
+print &lt;&lt;'EOF';
+&lt;FONT COLOR="red"&gt;Hello.
+&lt;FONT COLOR="green"&gt;Mr. Smith
+A better code would be:
+<code_blk syntax="perl">
+print &lt;&lt;'EOF';
+&lt;p class="greeting"&gt;
+&lt;p class="name"&gt;
+My. Smith
 <section xml:id="sources_of_advice">