<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>Frank Seitz' Developer Logbuch - HTML+CSS</title>
    <link>http://fseitz.de/blog/</link>
    <description>Notizen aus der Welt der Web-, Datenbank- und Unix-Programmierung</description>
    <dc:language>de</dc:language>
    <generator>Serendipity 1.5.1 - http://www.s9y.org/</generator>
    <pubDate>Wed, 27 Jan 2010 07:49:18 GMT</pubDate>

    <image>
        <url>http://fseitz.de/blog/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: Frank Seitz' Developer Logbuch - HTML+CSS - Notizen aus der Welt der Web-, Datenbank- und Unix-Programmierung</title>
        <link>http://fseitz.de/blog/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Email-Adressen in HTML vor Spammern schützen</title>
    <link>http://fseitz.de/blog/index.php?/archives/23-Email-Adressen-in-HTML-vor-Spammern-schuetzen.html</link>
            <category>HTML+CSS</category>
    
    <comments>http://fseitz.de/blog/index.php?/archives/23-Email-Adressen-in-HTML-vor-Spammern-schuetzen.html#comments</comments>
    <wfw:comment>http://fseitz.de/blog/wfwcomment.php?cid=23</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://fseitz.de/blog/rss.php?version=2.0&amp;type=comments&amp;cid=23</wfw:commentRss>
    

    <author>nospam@example.com (Frank Seitz)</author>
    <content:encoded>
    &lt;h4 class=&quot;s-h4&quot;&gt;In Mailto-URLs&lt;/h4&gt;

&lt;p&gt;
Statt den Mailto-URL per href zu setzen, wird der mailto-URL zum Zeitpunkt
des Klicks via JavaScript generiert.
&lt;/p&gt;

&lt;p&gt;
Nicht gut:
&lt;/p&gt;

&lt;pre class=&quot;s-pre-box&quot;&gt;
&amp;lt;a href=&quot;&lt;b&gt;mailto:rudi.ratlos&lt;span style=&quot;color:#ff5a5a;&quot;&gt;@&lt;/span&gt;host.dom&lt;/b&gt;&quot;&amp;gt;...&amp;lt;/a&amp;gt;
&lt;/pre&gt;

&lt;p&gt;
Besser:
&lt;/p&gt;

&lt;pre class=&quot;s-pre-box&quot;&gt;
&amp;lt;a href=&quot;#&quot; onclick=&quot;this.href = &#039;&lt;b&gt;mailto:rudi.ratlos&lt;/b&gt;&#039;+&#039;&lt;b&gt;&lt;span style=&quot;color:#ff5a5a;&quot;&gt;&amp;amp;#64;&lt;/span&gt;&lt;/b&gt;&#039;+&#039;&lt;b&gt;host.dom&lt;/b&gt;&#039;&quot;&amp;gt;...&amp;lt;a/&amp;gt;
&lt;/pre&gt;

&lt;p&gt;
Dies setzt natürlich JavaScript voraus. Aber schreibt heutzutage noch jemand
Web-Anwendungen ohne JavaScript?
&lt;/p&gt;

&lt;h4 class=&quot;s-h4&quot;&gt;Im Text&lt;/h4&gt;

&lt;p&gt;
Statt die Email-Adresse im Klartext hinzuschreiben, wird das &lt;code&gt;@&lt;/code&gt;-Zeichen ausgetauscht:
entweder durch ein HTML-Entity, eine Zeichenkette wie &quot;&lt;code&gt;&amp;lt;AT&amp;gt;&lt;/code&gt;&quot;
oder eine Grafik:
&lt;/p&gt;

&lt;p&gt;
Nicht gut:
&lt;/p&gt;

&lt;pre class=&quot;s-pre-box&quot;&gt;
&lt;b&gt;rudi.ratlos&lt;span style=&quot;color:#ff5a5a;&quot;&gt;@&lt;/span&gt;host.dom&lt;/b&gt;
&lt;/pre&gt;

&lt;p&gt;
Besser:
&lt;/p&gt;

&lt;pre class=&quot;s-pre-box&quot;&gt;
&lt;b&gt;rudi.ratlos&lt;span style=&quot;color:#ff5a5a;&quot;&gt;&amp;amp;#64;&lt;/span&gt;host.dom&lt;/b&gt;
&lt;/pre&gt;

&lt;p&gt;
Noch besser, mit Text:
&lt;/p&gt;

&lt;pre class=&quot;s-pre-box&quot;&gt;
&lt;b&gt;rudi.ratlos&lt;span style=&quot;color:#ff5a5a;&quot;&gt;&amp;amp;lt;AT&amp;amp;gt;&lt;/span&gt;host.dom&lt;/b&gt;
&lt;/pre&gt;

&lt;p&gt;
Mit Grafik:
&lt;/p&gt;

&lt;pre class=&quot;s-pre-box&quot;&gt;
&lt;b&gt;rudi.ratlos&lt;span style=&quot;color:#ff5a5a;&quot;&gt;&amp;lt;img src=&quot;at.png&quot; alt=&quot;AT&quot; ... /&amp;gt;&lt;/span&gt;host.dom&lt;/b&gt;
&lt;/pre&gt;

&lt;p&gt;
Bei einer Grafik besteht das Problem, dass diese vom Aussehen statisch ist, das Aussehen des
umgebenden Textes u.U. nicht immer gleich ist, z.B. in unterschiedlichen Browsern oder
durch Farbänderung beim Überfahren eines Links.
&lt;/p&gt;
 
    </content:encoded>

    <pubDate>Tue, 26 Jan 2010 12:09:37 +0100</pubDate>
    <guid isPermaLink="false">http://fseitz.de/blog/index.php?/archives/23-guid.html</guid>
    
</item>
<item>
    <title>HTML: String in Entity-Schreibweise wandeln</title>
    <link>http://fseitz.de/blog/index.php?/archives/22-HTML-String-in-Entity-Schreibweise-wandeln.html</link>
            <category>HTML+CSS</category>
    
    <comments>http://fseitz.de/blog/index.php?/archives/22-HTML-String-in-Entity-Schreibweise-wandeln.html#comments</comments>
    <wfw:comment>http://fseitz.de/blog/wfwcomment.php?cid=22</wfw:comment>

    <slash:comments>4</slash:comments>
    <wfw:commentRss>http://fseitz.de/blog/rss.php?version=2.0&amp;type=comments&amp;cid=22</wfw:commentRss>
    

    <author>nospam@example.com (Frank Seitz)</author>
    <content:encoded>
    &lt;p class=&quot;sdoc-para-p&quot;&gt;
  Eine einfache (eventuell nicht besonders wirksame) Methode, um
  Email-Adressen in HTML-Seiten unkenntlich zu machen, um sie vor
  Spammern zu verbergen, ist, sie in Entity-Schreibweise zu wandeln. Das
  folgende Perl-Skript wandelt einen beliebigen String in
  Entity-Schreibweise:
&lt;/p&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;sdoc-code-table&quot;&gt;
&lt;tr class=&quot;sdoc-code-tr-odd&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 1&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;&lt;span class=&quot;pt-k&quot;&gt;while&lt;/span&gt; &lt;span class=&quot;pt-s&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pt-i&quot;&gt;$str&lt;/span&gt; =~ &lt;span class=&quot;pt-q&quot;&gt;/(.)/g&lt;/span&gt;&lt;span class=&quot;pt-s&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;pt-s&quot;&gt;{&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;sdoc-code-tr-even&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 2&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;    &lt;span class=&quot;pt-k&quot;&gt;printf&lt;/span&gt; &lt;span class=&quot;pt-q&quot;&gt;&amp;#39;&amp;amp;#%d;&amp;#39;&lt;/span&gt;&lt;span class=&quot;pt-cm&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pt-k&quot;&gt;ord&lt;/span&gt; &lt;span class=&quot;pt-i&quot;&gt;$1&lt;/span&gt;&lt;span class=&quot;pt-sc&quot;&gt;;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr class=&quot;sdoc-code-tr-odd&quot;&gt;
  &lt;td class=&quot;sdoc-code-td-ln&quot;&gt; 3&lt;/td&gt;
  &lt;td class=&quot;sdoc-code-td-line&quot;&gt;&lt;span class=&quot;pt-s&quot;&gt;}&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;p class=&quot;sdoc-para-p&quot;&gt;
  Beispiel:
&lt;/p&gt;
&lt;div class=&quot;sdoc-code-div&quot;&gt;
  &lt;pre class=&quot;sdoc-code-pre&quot;&gt;$ ./str-to-entity &#039;rudi.ratlos@...&#039;&amp;#10;&amp;amp;#114;&amp;amp;#117;&amp;amp;#100;&amp;amp;#105;&amp;amp;#46;&amp;amp;#114;&amp;amp;#97;&amp;amp;#116;&amp;amp;#108;&amp;amp;#111;&amp;amp;#115;&amp;amp;#64;&amp;amp;#46;&amp;amp;#46;&amp;amp;#46;&lt;/pre&gt;
&lt;/div&gt; 
    </content:encoded>

    <pubDate>Tue, 26 Jan 2010 10:13:55 +0100</pubDate>
    <guid isPermaLink="false">http://fseitz.de/blog/index.php?/archives/22-guid.html</guid>
    
</item>
<item>
    <title>Text-Eingabefelder per CSS gestalten</title>
    <link>http://fseitz.de/blog/index.php?/archives/10-Text-Eingabefelder-per-CSS-gestalten.html</link>
            <category>HTML+CSS</category>
    
    <comments>http://fseitz.de/blog/index.php?/archives/10-Text-Eingabefelder-per-CSS-gestalten.html#comments</comments>
    <wfw:comment>http://fseitz.de/blog/wfwcomment.php?cid=10</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://fseitz.de/blog/rss.php?version=2.0&amp;type=comments&amp;cid=10</wfw:commentRss>
    

    <author>nospam@example.com (Frank Seitz)</author>
    <content:encoded>
    &lt;pre class=&quot;s-pre-box&quot;&gt;
&amp;lt;input type=&quot;text&quot;  id=&quot;e&quot; name=&quot;text&quot; size=&quot;20&quot; /&amp;gt;
&lt;/pre&gt;

&lt;p class=&quot;s-p-ind&quot;&gt;
Text: &lt;input type=&quot;text&quot;  id=&quot;x-text&quot; name=&quot;text&quot; size=&quot;20&quot; /&gt;
&lt;/p&gt;

&lt;h3 class=&quot;s-h3&quot;&gt;Umrahmung&lt;/h3&gt;

&lt;p&gt;
  Rahmen von 1px Breite statt der normalen Dekoration.
&lt;/p&gt;

&lt;pre class=&quot;s-pre-box&quot;&gt;
#e {
  border: 1px #999 solid;
}
&lt;/pre&gt;

&lt;h3 class=&quot;s-h3&quot;&gt;Hintergrundfarbe&lt;/h3&gt;

&lt;p&gt;
Die Hintergrundfarbe des Eingabefeldes ändern, wenn es mit der Maus überfahren wird
(&lt;code&gt;:hover&lt;/code&gt;) oder den Fokus bekommt (&lt;code&gt;:focus&lt;/code&gt;).
Besitzt das Feld weder den Fokus noch befindet sich die Maus darüber, wird die ursprüngliche Hintergrundfarbe
automatisch wieder hergestellt. Dies braucht nicht vereinbart werden.
&lt;/p&gt;

&lt;pre class=&quot;s-pre-box&quot;&gt;
#e:hover, #e:focus {
  background-color: #eee;
}
&lt;/pre&gt;

&lt;h3 class=&quot;s-h3&quot;&gt;Font&lt;/h3&gt;

&lt;p&gt;
Ein Text-Eingabefeld sollte m.E. normalerweise einen monospaced Font eingestellt haben,
nur dann entspricht die optische Feldbreite exakt der Anzahl der Zeichen, die
in das Feld passen.
&lt;/p&gt;

&lt;pre class=&quot;s-pre-box&quot;&gt;
#e {
  font-family: monospace;
}
&lt;/pre&gt;
 
    </content:encoded>

    <pubDate>Mon, 11 Jan 2010 18:34:00 +0100</pubDate>
    <guid isPermaLink="false">http://fseitz.de/blog/index.php?/archives/10-guid.html</guid>
    
</item>
<item>
    <title>Validierung von HTML- und CSS-Code</title>
    <link>http://fseitz.de/blog/index.php?/archives/9-Validierung-von-HTML-und-CSS-Code.html</link>
            <category>HTML+CSS</category>
    
    <comments>http://fseitz.de/blog/index.php?/archives/9-Validierung-von-HTML-und-CSS-Code.html#comments</comments>
    <wfw:comment>http://fseitz.de/blog/wfwcomment.php?cid=9</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://fseitz.de/blog/rss.php?version=2.0&amp;type=comments&amp;cid=9</wfw:commentRss>
    

    <author>nospam@example.com (Frank Seitz)</author>
    <content:encoded>
    &lt;p&gt;
  Das W3C stellt zwei Services zur Validierung von HTML- und CSS-Code zur Verfügung:
&lt;/p&gt;

&lt;p&gt;
  HTML-Validator: &lt;a  href=&quot;http://validator.w3.org/&quot;&gt;http://validator.w3.org/&lt;/a&gt;&lt;br /&gt;
  CSS-Validator: &lt;a  href=&quot;http://jigsaw.w3.org/css-validator/&quot;&gt;http://jigsaw.w3.org/css-validator/&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
  Um den HTML- bzw. CSS-Code einer Seite direkt zu validieren,
  können folgende Links in die Seite eingebaut werden. Aus dem Referer-Header ermittelt
  der Validator die Ausgangsseite und ruft diese ab. Das geht natürlich nur,
  wenn die Seite öffentlich zugreifbar ist.
&lt;/p&gt;

&lt;h3 class=&quot;s-h3&quot;&gt;Validierung von XHTML-Code&lt;/h3&gt;

&lt;p&gt;
    &lt;a  style=&quot;margin-left: 1.6em;&quot; href=&quot;http://validator.w3.org/check/referer?ss=1&quot;&gt;
      &lt;img src=&quot;uploads/valid-xhtml10.png&quot; width=&quot;88&quot; height=&quot;31&quot; alt=&quot;Valid XHTML 1.0!&quot; /&gt;
    &lt;/a&gt;
&lt;/p&gt;

&lt;pre class=&quot;s-pre-box&quot;&gt;
&amp;lt;a href=&quot;http://validator.w3.org/check/referer?ss=1&quot;&amp;gt;
  &amp;lt;img src=&quot;valid-xhtml10.png&quot; width=&quot;88&quot; height=&quot;31&quot; alt=&quot;Valid XHTML 1.0!&quot; /&amp;gt;
&amp;lt;/a&amp;gt;
&lt;/pre&gt;

&lt;p&gt;
  Der URL-Parameter &lt;code&gt;ss=1&lt;/code&gt; sorgt dafür, dass der Validator
  ein Source-Listing erzeugt. Dies ist sehr sinnvoll, da dann von einem Fehler aus
  direkt an die beanstandete Stelle gesprungen werden kann.
&lt;/p&gt;

&lt;h3 class=&quot;s-h3&quot;&gt;Validierung von CSS2-Code&lt;/h3&gt;

&lt;p&gt;
    &lt;a style=&quot;margin-left: 1.6em;&quot; href=&quot;http://jigsaw.w3.org/css-validator/check/referer&quot;&gt;
      &lt;img src=&quot;uploads/valid-css2.png&quot; width=&quot;88&quot; height=&quot;31&quot; alt=&quot;Valid CSS!&quot; /&gt;
    &lt;/a&gt;
&lt;/p&gt;

&lt;pre class=&quot;s-pre-box&quot;&gt;
  &amp;lt;a href=&quot;http://jigsaw.w3.org/css-validator/check/referer&quot;&amp;gt;
    &amp;lt;img src=&quot;valid-css2.png&quot; width=&quot;88&quot; height=&quot;31&quot; alt=&quot;Valid CSS!&quot; /&amp;gt;
  &amp;lt;/a&amp;gt;
&lt;/pre&gt;
 
    </content:encoded>

    <pubDate>Sat, 09 Jan 2010 10:00:00 +0100</pubDate>
    <guid isPermaLink="false">http://fseitz.de/blog/index.php?/archives/9-guid.html</guid>
    
</item>

</channel>
</rss>