<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>webmatze.de &#187; HTML / XHTML</title>
	<atom:link href="http://webmatze.de/category/webseiten-erstellen/html-xhtml/feed/" rel="self" type="application/rss+xml" />
	<link>http://webmatze.de</link>
	<description>Profi Tipps für einen erfolgreichen Internetauftritt</description>
	<lastBuildDate>Fri, 30 Jul 2010 11:50:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Wie erstelle ich eine Webseite?</title>
		<link>http://webmatze.de/wie-erstelle-ich-eine-webseite/</link>
		<comments>http://webmatze.de/wie-erstelle-ich-eine-webseite/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 12:28:56 +0000</pubDate>
		<dc:creator>webmatze</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML / XHTML]]></category>
		<category><![CDATA[Planung]]></category>
		<category><![CDATA[Programmierung]]></category>
		<category><![CDATA[Webseiten erstellen]]></category>
		<category><![CDATA[homepage]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[webhoster]]></category>
		<category><![CDATA[webspace]]></category>

		<guid isPermaLink="false">http://webmatze.de/?p=478</guid>
		<description><![CDATA[An diesem Punkt hat jeder schon einmal gestanden. Man hat so viele verschiedene gute oder auch weniger gute Webseiten im Internet besucht und die eine oder andere gute Information für sich aus diesen Seiten gezogen. Doch wenn man Anderen sein eigenes Wissen oder die eigenen Ansichten und Gedanken mitteilen möchte, wird man nicht drum herum [...]]]></description>
			<content:encoded><![CDATA[<p>An diesem Punkt hat jeder schon einmal gestanden. Man hat so viele verschiedene gute oder auch weniger gute Webseiten im Internet besucht und die eine oder andere gute Information für sich aus diesen Seiten gezogen. Doch wenn man Anderen sein eigenes Wissen oder die eigenen Ansichten und Gedanken mitteilen möchte, wird man nicht drum herum kommen, sich eine eigene Homepage zu erstellen.</p>
<p>Doch wie genau funktioniert das? Und welche Tools brauche ich dafür? Genau diesen Fragen möchte ich in diesem und in kommenden Artikeln auf den Grund gehen.<br />
<span id="more-478"></span></p>
<h3>Was brauche ich für meine eigene Webseite?</h3>
<p>Um zu starten braucht es eigentlich nicht viel. Die wenigen Dinge, die man wirklich benötigt, habe ich hier mal in einer Liste näher beschrieben.</p>
<ul>
<li><strong>Etwas Zeit</strong><br />
Eine gute Homepage lässt sich nicht einfach in wenigen Minuten erstellen, darum sollte man sich auch die entsprechende Zeit nehmen.</li>
<li><strong>Einen Plan</strong><br />
Man kann keine eigene Webseite erstellen, ohne vorher zu wissen, welches Ziel man eigentlich mit dieser Seite verfolgen will. Möchte man ein Tagebuch schreiben? Will man Informationen zu einem bestimmten Thema zusammentragen und aufbereiten? Will man sich selbst und die eigenen Projekte vorstellen? Oder möchte man eine Plattform für sich und seine Freunde schaffen? Die Möglichkeiten sind grenzenlos, aber man sollte zumindest grob das Thema der Webseite festlegen.</li>
<li><strong>Kenntnisse im Umgang mit HTML, CSS und JavaScript</strong><br />
Man kann keine Homepage erstellen, ohne nicht zumindest die grundlegendsten Bausteine einer Webseite zu kennen. Mit <a href="http://webmatze.de/category/webseiten-erstellen/html-xhtml/">HTML</a> legt man die Struktur und den Inhalt einer Webseite fest. Mit <a href="http://webmatze.de/category/webseiten-erstellen/css/">CSS</a> kann man das Aussehen der einzelnen Elemente einer Webseite kontrollieren und mit <a href="http://webmatze.de/category/webseiten-erstellen/javascript/">JavaScript</a> kann man die Funktionalität der eigenen Seite erweitern. Aber erst die Kombination aus allen Zutaten ergibt eine gute Webseite.</li>
<li><strong>Eine eigene Internetadresse</strong><br />
Ohne eine eigene Domain kann niemand auf die liebevoll erstellten Inhalte zugreifen. Der Domainname ist die Adresse einer Seite im Internet. Daher sollte man sich einen sprechenden Namen für die eigene Homepage ausdenken. Ob nun <em>www.willies-kochrezepte.de</em> oder <em>www.webmatze.de</em> - solange der Name noch nicht vergeben ist, kann man fast jeden Domainnamen registrieren lassen.</li>
<li><strong>Webspeicherplatz</strong><br />
Damit man die erstellen HTML Seiten auch für Jeden zugänglich im Internet ablegen kann, benötigt man etwas Speicherplatz. Diesen Webspeicherplatz oder auch <a href="http://www.prosite.de">Webspace</a> genannt, wird man sich meistens bei professionellen Webhostern anmieten. Die Kosten dafür sind überwiegend sehr niedrig. Es ist auch möglich, eigene Webserver zu verwenden, doch für eine kleine Homepage reicht meistens weniger aus.</li>
</ul>
<p>Das waren auch schon die wichtigsten Zutaten für die eigene Homepage. Wie man sehen kann, braucht es nicht wirklich viel, um eine eigenen Webseite zu erstellen. Doch für jemanden, der bisher noch nie eine Homepage erstellt hat, können einige der Punkte trotzdem eine Hürde darstellen.</p>
<h3>Schritt für Schritt zur eigenen Webseite</h3>
<p>Gerade für diese Anfänger - und dass meine ich nicht abwertend, denn jeder hat einmal an diesem Punkt begonnen - werde ich in den nächsten Tagen und Wochen in verschiedenen Beiträgen auf die einzelnen oben angesprochenen Punkte näher eingehen. Am Ende wird dann jeder eine Schritt für Schritt Anleitung für die erste eigene Homepage zur freien Verfügung haben.</p>
<p>Auf folgende Punkte werde ich dabei detaillierter eingeben:</p>
<ul>
<li>Wie man das richtige Thema für die eigene Homepage wählt</li>
<li>HTML, CSS und JavaScript - Das Grundgerüst einer Webseite beherrschen</li>
<li>So findet man den passenden Domainnamen für die eigene Webseite</li>
<li>Wie wähle ich den richtigen Webhoster für meine Homepage aus?</li>
<li>Wie bekomme ich mehr Besucher für meine eigenen Webseite?</li>
</ul>
<p>Ich freue mich schon darauf und hoffe, dass der Eine oder Andere von Euch mit Hilfe dieser Anleitungen seine erste eigene Homepage erstellen können wird.</p>
Similar Posts:<ul><li><a href="http://webmatze.de/schritt-fur-schritt-zum-eigenen-blog/" rel="bookmark" title="16. 04. 2008">Schritt für Schritt zum eigenen Blog</a></li>

<li><a href="http://webmatze.de/surfino-bietet-exklusiv-paket/" rel="bookmark" title="18. 06. 2008">Surfino bietet Exklusiv-Paket</a></li>

<li><a href="http://webmatze.de/genial/" rel="bookmark" title="15. 06. 2002">Genial</a></li>

<li><a href="http://webmatze.de/google-gadgets-auf-der-eigenen-homepage/" rel="bookmark" title="4. 10. 2006">Google Gadgets auf der eigenen Homepage</a></li>

<li><a href="http://webmatze.de/fallstudie-von-0-auf-100-euro-in-12-monaten/" rel="bookmark" title="24. 04. 2008">Fallstudie: Von 0 auf 100 Euro in 12 Monaten</a></li>
</ul><!-- Similar Posts took 4.535 ms -->]]></content:encoded>
			<wfw:commentRss>http://webmatze.de/wie-erstelle-ich-eine-webseite/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Hierarchische Menüs mit CSS erstellen</title>
		<link>http://webmatze.de/hierarchische-menus-mit-css-erstellen/</link>
		<comments>http://webmatze.de/hierarchische-menus-mit-css-erstellen/#comments</comments>
		<pubDate>Thu, 04 Sep 2008 16:38:53 +0000</pubDate>
		<dc:creator>webmatze</dc:creator>
				<category><![CDATA[Browser]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML / XHTML]]></category>
		<category><![CDATA[webmatze]]></category>

		<guid isPermaLink="false">http://webmatze.de/?p=337</guid>
		<description><![CDATA[Eines der wichtigsten Elemente eines Webauftritts ist das Menü. Das Menü hilft dem Nutzer dabei, sich in komplizierten Seitenstrukturen zurechtzufinden und um schnell an jeden gewünschten Punkt in dieser Hierarchie springen zu können. 
Auf vielen Seiten werden immer noch Navigationsmenüs verwendet, welche vollständig auf JavaScript aufbauen und bei ausgeschaltetem JavaScript nicht mehr funktionieren. Solche Seiten [...]]]></description>
			<content:encoded><![CDATA[<p>Eines der wichtigsten Elemente eines Webauftritts ist <a href="http://de.wikipedia.org/wiki/Menü_(Computer)">das Menü</a>. Das Menü hilft dem Nutzer dabei, sich in komplizierten Seitenstrukturen zurechtzufinden und um schnell an jeden gewünschten Punkt in dieser Hierarchie springen zu können. </p>
<p>Auf vielen Seiten werden immer noch Navigationsmenüs verwendet, welche vollständig auf JavaScript aufbauen und bei ausgeschaltetem JavaScript nicht mehr funktionieren. Solche Seiten sind dann für Nutzer mit Behinderungen meistens nicht mehr bedienbar.</p>
<div style="text-align:center"><img src="http://webmatze.de/wp-content/uploads/2008/09/css_menu.png" alt="" title="CSS Menü" width="500" height="240" class="alignnone size-full wp-image-377" /></div>
<h3>Das barrierefreie <abbr title="Cascading Style Sheets">CSS</abbr> Menü</h3>
<p>In diesem Beitrag möchte ich euch zeigen, dass man Menüs auch auf <a href="http://www.einfach-fuer-alle.de/blog/">behindertengerechte</a> und <a href="http://blog.techdivision.com/barrierefreie-webseiten/">barrierefreie Weise</a> erstellen kann. Ziel ist es ein Menü zu bauen, dass nur auf aktuellen Standards wie <abbr title="Hypertext Markup Language">HTML</abbr> und <bbr>CSS</abbr> beruht und keine Verwendung von JavaScript macht. So soll es möglich sein, dass Menü auch dann noch bedienen zu können, wenn der Nutzer JavaScript oder gar <a href="http://forum.de.selfhtml.org/archiv/2005/3/t102578/"><abbr>CSS</abbr> im Browser ausgeschaltet</a> hat.</p>
<h3>So sieht das fertige Menü aus</h3>
<p>Hier könnt Ihr schon einmal sehen, wie das Menü aussehen wird. (Wird im IE6 als vertikales Menü angezeigt, während es alle modernen Browser als Drop Down Menü angezeigen.)<br />
<span id="more-337"></span>
<ul class="cssmenu">
<li><a href="http://webmatze.de/">Start</a></li>
<li><a href="http://webmatze.de/">Informationen</a>
<ul>
<li><a href="#">Webseiten erstellen</a>
<ul>
<li><a href="http://webmatze.de/category/webseiten-erstellen/html-xhtml/">HTML</a></li>
<li><a href="http://webmatze.de/category/webseiten-erstellen/css/">CSS</a></li>
<li><a href="#">Programmieren</a>
<ul>
<li><a href="http://webmatze.de/category/webseiten-erstellen/javascript/">JavaScript</a></li>
<li><a href="http://webmatze.de/category/webseiten-erstellen/php/">PHP</a></li>
<li><a href="http://java.net">Java</a></li>
<li><a href="http://webmatze.de/category/webseiten-erstellen/flash/">ActionScript</a></li>
<li><a href="http://ruby.org">Ruby</a></li>
</ul>
</li>
<li><a href="http://webmatze.de/category/webseiten-erstellen/flash/">Flash</a></li>
</ul>
</li>
<li><a href="#">Multimedia</a>
<ul>
<li><a href="http://flickr.com">Grafiken</a></li>
<li><a href="http://youtube.com">Videos</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#">Suchen</a>
<ul>
<li><a href="http://google.de">Google</a></li>
<li><a href="http://yahoo.de">Yahoo</a></li>
<li><a href="http://msn.de">MSN</a></li>
</ul>
</li>
<li><a href="http://webmatze.de/about/">Über</a></li>
</ul>
<p style="clear:both"> </p>
<p>Dieses Beispiel hat insgesamt vier Ebenden, wobei jede einzelne Ebene auch noch unterschiedlich per <bbr>CSS</abbr> angepasst werden kann.</p>
<h3>Der HTML Code</h3>
<p>Der Aufbau dieses Menüs per <abbr>HTML</abbr> erfolgt über verschachtelte unsortierte Listen <code>&lt;ul&gt;</code>. Zur besseren Veranschaulichung könnt Ihr hier den <abbr>HTML</abbr> Code betrachten:</p>
<pre class="html">&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ul</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;cssmenu&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://webmatze.de/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Start<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://webmatze.de/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Informationen<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ul&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://webmatze.de/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Webseiten erstellen<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ul&gt;</span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://webmatze.de/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>HTML<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://webmatze.de/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>CSS<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://webmatze.de/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Programmieren<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ul&gt;</span></span>
              <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://webmatze.de/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>JavaScript<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
              <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://webmatze.de/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>PHP<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
              <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://webmatze.de/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Java<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
              <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://webmatze.de/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>ActionScript<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
              <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://webmatze.de/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Ruby<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul&gt;</span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://webmatze.de/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Flash<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://webmatze.de/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Multimedia<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ul&gt;</span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://webmatze.de/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Grafiken<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://webmatze.de/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Videos<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://webmatze.de/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Suchen<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ul&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://webmatze.de/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Google<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://webmatze.de/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Yahoo<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://webmatze.de/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>MSN<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://webmatze.de/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Über<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul&gt;</span></span>
&nbsp;</pre>
<p>Wie man sehen kann, gibt es keine besonderen Tricks. Es handelt sich einfach um ganz normalen standardkonformen <abbr>HTML</abbr> Code. Auch ohne <abbr>CSS</abbr> kann man dieses Menü bedienen und alle einzelnen Links aufrufen. </p>
<p>Um das Menü aber etwas ansprechender zu gestalten, wird es durch die folgenden <abbr>CSS</abbr> Anweisungen in die richtige Form gebracht.</p>
<h3>Der CSS Code</h3>
<p>Ich werde jetzt nicht ins Detail gehen, wie genau die einzelnen Anweisungen sich auf die Darstellung des Menüs auswirken. Zum besseren Verständnis habe ich ein paar Kommentare in den <abbr>CSS</abbr> Code mit aufgenommen. Anmerken möchte ich jedoch, dass ich den letzten Teil nur mit aufnehmen musste, weil sich der <abbr title="Internet Explorer Version 6">IE 6</abbr> hier etwas quer stellt und sich nur durch spezielle <abbr>CSS</abbr> Anweisungen dazu bringen lässt, das Menü ebenfalls richtig darzustellen. (Wer möchte, kann den <abbr>IE 6</abbr> speziellen Teil natürlich weglassen.)</p>
<pre class="css">ul<span style="color: #6666ff;">.cssmenu</span> <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">position</span>: <span style="color: #993333;">relative</span>;
  <span style="color: #000000; font-weight: bold;">display</span>: <span style="color: #993333;">block</span>;
  <span style="color: #000000; font-weight: bold;">margin</span>: <span style="color: #933;">0px</span>;
  <span style="color: #000000; font-weight: bold;">padding</span>: <span style="color: #933;">0px</span>;
<span style="color: #66cc66;">&#125;</span>
ul<span style="color: #6666ff;">.cssmenu</span> ul <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">position</span>: <span style="color: #993333;">relative</span>;
  <span style="color: #000000; font-weight: bold;">display</span>: <span style="color: #993333;">none</span>;
<span style="color: #66cc66;">&#125;</span>
ul<span style="color: #6666ff;">.cssmenu</span> li <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">position</span>: <span style="color: #993333;">relative</span>;
  <span style="color: #000000; font-weight: bold;">display</span>: <span style="color: #993333;">inline</span>;
  <span style="color: #000000; font-weight: bold;">float</span>: <span style="color: #000000; font-weight: bold;">left</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #808080; font-style: italic;">/* Menupunkt stylen */</span>
ul<span style="color: #6666ff;">.cssmenu</span> li a <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">font-family</span>: arial, <span style="color: #993333;">sans-serif</span>;
  <span style="color: #000000; font-weight: bold;">font-size</span>: <span style="color: #933;">12px</span>;
  <span style="color: #000000; font-weight: bold;">line-height</span>: <span style="color: #933;">20px</span>;
  <span style="color: #000000; font-weight: bold;">text-decoration</span>: <span style="color: #993333;">none</span>;
  <span style="color: #000000; font-weight: bold;">text-align</span>: <span style="color: #993333;">center</span>;
  <span style="color: #000000; font-weight: bold;">display</span>: <span style="color: #993333;">block</span>;
  <span style="color: #000000; font-weight: bold;">width</span>: <span style="color: #933;">100px</span>;
  <span style="color: #000000; font-weight: bold;">height</span>: <span style="color: #933;">20px</span>;
<span style="color: #66cc66;">&#125;</span>
ul<span style="color: #6666ff;">.cssmenu</span> li<span style="color: #3333ff;">:hover</span> &gt; a <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">background-color</span>: <span style="color: #cc00cc;">#<span style="color: #933;">666666</span></span>;
  <span style="color: #000000; font-weight: bold;">color</span>: <span style="color: #cc00cc;">#FFFFFF</span>;
  <span style="color: #000000; font-weight: bold;">font-weight</span>: <span style="color: #993333;">bold</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #808080; font-style: italic;">/* Untermenüpunkt einblenden */</span>
ul<span style="color: #6666ff;">.cssmenu</span> li<span style="color: #3333ff;">:hover</span> &gt; ul <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">position</span>: <span style="color: #993333;">absolute</span>;
  <span style="color: #000000; font-weight: bold;">top</span>: <span style="color: #933;">20px</span>;
  <span style="color: #000000; font-weight: bold;">left</span>: -<span style="color: #933;">40px</span>;
  <span style="color: #000000; font-weight: bold;">display</span>: <span style="color: #993333;">inline</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #808080; font-style: italic;">/* ab zweite Ebene */</span>
ul<span style="color: #6666ff;">.cssmenu</span> li li<span style="color: #3333ff;">:hover</span> &gt; ul <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">top</span>: <span style="color: #933;">0px</span>;
  <span style="color: #000000; font-weight: bold;">left</span>: <span style="color: #933;">110px</span>;
<span style="color: #66cc66;">&#125;</span>
ul<span style="color: #6666ff;">.cssmenu</span> li li a <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">width</span>: <span style="color: #933;">150px</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #808080; font-style: italic;">/* Farben der einzelnen Ebenen (werden vererbt)*/</span>
ul<span style="color: #6666ff;">.cssmenu</span> a <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">color</span>: <span style="color: #cc00cc;">#<span style="color: #933;">000000</span></span>;
  <span style="color: #000000; font-weight: bold;">background-color</span>: <span style="color: #cc00cc;">#e4e4e4</span>;
<span style="color: #66cc66;">&#125;</span>
ul<span style="color: #6666ff;">.cssmenu</span> ul a <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">background-color</span>: <span style="color: #cc00cc;">#d4d4d4</span>;
<span style="color: #66cc66;">&#125;</span>
ul<span style="color: #6666ff;">.cssmenu</span> ul ul a<span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">background-color</span>: <span style="color: #cc00cc;">#c4c4c4</span>;
<span style="color: #66cc66;">&#125;</span>
ul<span style="color: #6666ff;">.cssmenu</span> ul ul ul a<span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">background-color</span>: <span style="color: #cc00cc;">#b4b4b4</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* zusätzliche Styleangaben für IE 6 */</span>
<span style="color: #808080; font-style: italic;">/* das Menü wird dort untereinander dargestellt */</span>
ul<span style="color: #6666ff;">.cssmenu</span> <span style="color: #66cc66;">&#123;</span>
  _text-indent: <span style="color: #933;">10px</span>;
<span style="color: #66cc66;">&#125;</span>
ul<span style="color: #6666ff;">.cssmenu</span> ul <span style="color: #66cc66;">&#123;</span>
  _display: <span style="color: #993333;">inline</span>;
  _margin-<span style="color: #000000; font-weight: bold;">left</span>: <span style="color: #933;">0px</span>;
  _text-indent: <span style="color: #933;">20px</span>;
<span style="color: #66cc66;">&#125;</span>
ul<span style="color: #6666ff;">.cssmenu</span> ul ul <span style="color: #66cc66;">&#123;</span>
  _text-indent: <span style="color: #933;">30px</span>;
<span style="color: #66cc66;">&#125;</span>
ul<span style="color: #6666ff;">.cssmenu</span> ul ul ul <span style="color: #66cc66;">&#123;</span>
  _text-indent: <span style="color: #933;">40px</span>;
<span style="color: #66cc66;">&#125;</span>
ul<span style="color: #6666ff;">.cssmenu</span> li <span style="color: #66cc66;">&#123;</span>
  _float: <span style="color: #993333;">none</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #808080; font-style: italic;">/* Menupunkt stylen */</span>
ul<span style="color: #6666ff;">.cssmenu</span> li a <span style="color: #66cc66;">&#123;</span>
  _text-align: <span style="color: #000000; font-weight: bold;">left</span>;
  _width: <span style="color: #933;">150px</span>;
<span style="color: #66cc66;">&#125;</span>
ul<span style="color: #6666ff;">.cssmenu</span> a<span style="color: #3333ff;">:hover</span> <span style="color: #66cc66;">&#123;</span>
  _font-weight: <span style="color: #993333;">bold</span>;
  _background-<span style="color: #000000; font-weight: bold;">color</span>: <span style="color: #cc00cc;">#<span style="color: #933;">666666</span></span>;
<span style="color: #66cc66;">&#125;</span></pre>
<h3>Fazit</h3>
<p>Wie Ihr sehen könnt ist es gar nicht so schwer auch ohne JavaScript ein ansprechendes Menü zu gestalten. Das hier gezeigte Beispiel lässt sich natürlich leicht durch andere Farben oder Hintergrundgrafiken per <abbr>CSS</abbr> noch weiter verschönern und an die eigenen Bedürfnisse anpassen. Alle modernen Browser sollten damit zurecht kommen - selbstverständlich auch <a href="http://webmatze.de/google-chrome-der-neue-browser/">Googles neuer Chrome Browser</a>.</p>
Similar Posts:<ul><li><a href="http://webmatze.de/css-button-tricks/" rel="bookmark" title="23. 01. 2003">CSS Button Tricks</a></li>

<li><a href="http://webmatze.de/wie-man-wirklich-ansprechende-formulare-erstellt/" rel="bookmark" title="5. 08. 2008">Wie man wirklich ansprechende Formulare erstellt</a></li>

<li><a href="http://webmatze.de/wirklich-einfache-javascript-tooltips/" rel="bookmark" title="12. 01. 2006">Wirklich einfache JavaScript Tooltips</a></li>

<li><a href="http://webmatze.de/firebug-04-der-ultimative-web-debugger/" rel="bookmark" title="24. 05. 2006">FireBug 0.4 &#8211; Der ultimative Web Debugger</a></li>

<li><a href="http://webmatze.de/ist-display-none-jetzt-irrelevant/" rel="bookmark" title="12. 08. 2008">Ist display=&#8221;none&#8221; jetzt irrelevant?</a></li>
</ul><!-- Similar Posts took 4.677 ms -->]]></content:encoded>
			<wfw:commentRss>http://webmatze.de/hierarchische-menus-mit-css-erstellen/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Ist display=&#8221;none&#8221; jetzt irrelevant?</title>
		<link>http://webmatze.de/ist-display-none-jetzt-irrelevant/</link>
		<comments>http://webmatze.de/ist-display-none-jetzt-irrelevant/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 10:36:41 +0000</pubDate>
		<dc:creator>webmatze</dc:creator>
				<category><![CDATA[Browser]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML / XHTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Programmierung]]></category>

		<guid isPermaLink="false">http://webmatze.de/?p=370</guid>
		<description><![CDATA[Beim Studieren der aktuellen HTML5 Spezifikation, ist mir ein neues Attribut aufgefallen, welches möglicherweise bald eine große Bedeutung bekommen könnte. Ich spreche hier vom Attribut irrelevant, welches allen HTML Elementen zugewiesen werden darf.
Wofür steht irrelevant?
Das Attribut irrelevant darf die Werte "true" oder "false" enthalten und gibt an, ob ein so ausgezeichnetes HTML Element im aktuellen [...]]]></description>
			<content:encoded><![CDATA[<p>Beim Studieren der aktuellen <abbr title="Hypertext Markup Language Version 5">HTML5</abbr> Spezifikation, ist mir ein neues Attribut aufgefallen, welches möglicherweise bald eine große Bedeutung bekommen könnte. Ich spreche hier vom Attribut <code><a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/editing.html#irrelevant">irrelevant</a></code>, welches allen <abbr>HTML</abbr> Elementen zugewiesen werden darf.</p>
<h3>Wofür steht irrelevant?</h3>
<p>Das Attribut <code>irrelevant</code> darf die Werte <strong>"true"</strong> oder <strong>"false"</strong> enthalten und gibt an, ob ein so ausgezeichnetes <abbr>HTML</abbr> Element im aktuellen Kontext noch nicht oder nicht mehr relevant ist. So gekennzeichnete Elemente werden vom Browser weder gerendert, noch angezeigt. Das heißt, man kann damit beliebige Elemente ein- und ausblenden.</p>
<p style="text-align:center"><img src="http://webmatze.de/wp-content/uploads/2008/08/html5.png" alt="HTML 5 Draft Recommendation Screenshot" title="HTML 5 Draft Recommendation" width="500" height="240" class="alignnone size-full wp-image-371" /></p>
<p>Bisher konnte man diese Funktionalität nur durch das Setzen der <abbr title="Cascading Style Sheets">CSS</abbr> Eigenschaft <code><a href="http://www.w3.org/TR/REC-CSS2/visuren.html#display-prop">display</a></code> auf <strong>display: none</strong> erreichen. Damit werden die entsprechenden Elemente ebenfalls nicht gerendert und angezeigt.</p>
<p>Der Nachteil hier wäre allerdings, dass ein Gerät oder Browser, welcher keine Stylesheets versteht, solche Elemente dann trotzdem darstellen würde. Bei Verwendung von <code>irrelevant</code> würde der entsprechende Teil auch in diesem Fall nicht angezeigt werden. <em>(Vorausgesetzt das Gerät versteht HTML5.)</em><br />
<span id="more-370"></span></p>
<h3>irrelevant schon heute verwenden</h3>
<p>Damit man das neue Attribut in <abbr>HTML</abbr> Seiten verwenden kann, müsste man darauf warten, dass die aktuellen Browser <abbr>HTML 5</abbr> unterstützen. Doch bis es soweit ist, kann es noch eine Weile dauern, zumal <a href="http://www.whatwg.org/specs/web-apps/current-work/">die Spezifikation</a> noch nicht in der finalen Version vorliegt.</p>
<p>Um das Warten aber ein wenig zu verkürzen, kann man die entsprechende Funktionalität in allen aktuellen Browsern auch auf anderem Weg erreichen. Dazu muss man nur zwei einfache <abbr>CSS</abbr> Definitionen in das <abbr>HTML</abbr> Dokument einbinden, und schon wird das Attribut <code>irrelevant</code> richtig ausgewertet.</p>
<pre class="css">&nbsp;
&lt;style type=<span style="color: #ff0000;">&quot;text/css&quot;</span>&gt;
  *<span style="color: #66cc66;">&#91;</span>irrelevant<span style="color: #66cc66;">&#93;</span> <span style="color: #66cc66;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">display</span>: <span style="color: #993333;">none</span>;
  <span style="color: #66cc66;">&#125;</span>
  *<span style="color: #66cc66;">&#91;</span>irrelevant=<span style="color: #ff0000;">&quot;false&quot;</span><span style="color: #66cc66;">&#93;</span> <span style="color: #66cc66;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">display</span>: <span style="color: #993333;">inherit</span>;
  <span style="color: #66cc66;">&#125;</span>
&lt;/style&gt;
&nbsp;</pre>
<p><em>(Man sollte jedoch versuchen möglichst nicht <strong>irrelevant="false"</strong> zu verwenden, sondern statt dessen das Attribut ganz entfernen, da es unter Umständen bei einigen <abbr>HTML</abbr> Elementen zu Problemen in der Darstellung kommen kann.)</em></p>
<p>So kann man nun beliebige Elemente ausblenden lassen:</p>
<pre class="html">&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;p&gt;</span></span>Laut HTML 5  können nicht relevante Elemente
 ausgeblendet werden, indem ihnen das Attribut irrelevant
 zugewiesen wird. <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;span</span> irrelevant=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>HTML 5 wird noch
 nicht von allen aktuellen Browsern unterstützt.<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/span&gt;</span></span>
 Irrelevante Elemente sind solche, die noch nicht, oder nicht
 mehr relevant sind. Das Attribut sollte auf solche Abschnitte
 angewendet werden, die im aktuellen Kontext nicht relevant
 sind, es aber später durchaus wieder werden können.<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/p&gt;</span></span>
&nbsp;</pre>
<p>Wenn man dies mit einem aktuellen Browser wie Firefox 3, Safari 3 oder <abbr title="Internet Explorer">IE</abbr> 8 betrachtet, sollte der zweite Satz nicht mehr angezeigt werden:</p>
<p><em></p>
<p>Laut HTML 5 können nicht relevante Elemente<br />
 ausgeblendet werden, indem ihnen das Attribut irrelevant<br />
 zugewiesen wird. <span irrelevant="true">HTML 5 wird noch<br />
 nicht von allen aktuellen Browsern unterstützt.</span><br />
 Irrelevante Elemente sind solche, die noch nicht, oder nicht<br />
 mehr relevant sind. Das Attribut sollte auf solche Abschnitte<br />
 angewendet werden, die im aktuellen Kontext nicht relevant<br />
 sind, es aber später durchaus wieder werden können.</p>
<p></em></p>
<h3>Elemente per <abbr title="Document Object Model">DOM</abbr> ein- und ausblenden</h3>
<p>Jetzt, da wir mit <code>irrelevant</code> gekennzeichnete Elemente vom Browser ausblenden lassen können, fehlt nur noch der entsprechende JavaScript Code, um dies auch dynamisch per Mausklick durchführen zu können:</p>
<pre class="javascript">&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> hide<span style="color: #66cc66;">&#40;</span>elementId<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
  <span style="color: #003366; font-weight: bold;">var</span> el = document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">&#40;</span>elementId<span style="color: #66cc66;">&#41;</span>;
  el.<span style="color: #006600;">setAttribute</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'irrelevant'</span>,<span style="color: #003366; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #003366; font-weight: bold;">function</span> show<span style="color: #66cc66;">&#40;</span>elementId<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
  <span style="color: #003366; font-weight: bold;">var</span> el = document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">&#40;</span>elementId<span style="color: #66cc66;">&#41;</span>;
  el.<span style="color: #006600;">removeAttribute</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'irrelevant'</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;</pre>
<h3>Fazit</h3>
<p>Wie man sieht, kann man schon heute bestimmte <a href="http://xhtml.com/de/future/x-html-5-versus-xhtml-2/">HTML5 Features</a> verwenden und so die eigenen Seiten für die Zukunft vorbereiten. Ob man das auch tun sollte, sei jedem selbst überlassen. Da ältere Browser möglicherweise mit den hier gezeigten Beispielen nicht zurecht kommen, ist dies nicht unter allen Umständen die beste Wahl. Aber da in den entsprechenden Browsern in dem Fall die zu versteckenden Inhalte einfach angezeigt werden würden, wäre auch kein größerer Schaden entstanden.</p>
Similar Posts:<ul><li><a href="http://webmatze.de/css-formular-design-textfelder/" rel="bookmark" title="11. 08. 2001">CSS Formular Design &#8211; Textfelder</a></li>

<li><a href="http://webmatze.de/die-sprache-eines-links-kennzeichnen/" rel="bookmark" title="4. 09. 2007">Die Sprache eines Links kennzeichnen</a></li>

<li><a href="http://webmatze.de/wirklich-einfache-javascript-tooltips/" rel="bookmark" title="12. 01. 2006">Wirklich einfache JavaScript Tooltips</a></li>

<li><a href="http://webmatze.de/css-auswahlliste-mit-checkboxen/" rel="bookmark" title="20. 07. 2002">CSS Auswahlliste mit Checkboxen</a></li>

<li><a href="http://webmatze.de/unsicher-objekte-unter-ssl-in-ie/" rel="bookmark" title="19. 10. 2005">Unsicher Objekte unter SSL in IE</a></li>
</ul><!-- Similar Posts took 5.530 ms -->]]></content:encoded>
			<wfw:commentRss>http://webmatze.de/ist-display-none-jetzt-irrelevant/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox3 kann jetzt auch schüchtern</title>
		<link>http://webmatze.de/firefox3-kann-jetzt-auch-schuechtern/</link>
		<comments>http://webmatze.de/firefox3-kann-jetzt-auch-schuechtern/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 10:16:43 +0000</pubDate>
		<dc:creator>webmatze</dc:creator>
				<category><![CDATA[Browser]]></category>
		<category><![CDATA[HTML / XHTML]]></category>

		<guid isPermaLink="false">http://webmatze.de/?p=368</guid>
		<description><![CDATA[Der Internet Explorer konnte ja schon seit Längerem schüchtern, doch nun ist auch der Firefox nachgezogen und kann jetzt ebenfalls schüchtern.
Warum ich solch eine Schwachsinn schreibe? Okay, bevor mir jemand die Tastatur aus der Hand reißt... Was ich mit der Überschrift eigentlich sagen wollte: Firefox unterstützt in der Version 3 nun endlich auch Sollumbrüche in [...]]]></description>
			<content:encoded><![CDATA[<p>Der Internet Explorer konnte ja schon seit Längerem schüchtern, doch nun ist auch der Firefox nachgezogen und kann jetzt ebenfalls schüchtern.</p>
<p>Warum ich solch eine Schwachsinn schreibe? Okay, bevor mir jemand die Tastatur aus der Hand reißt... Was ich mit der Überschrift eigentlich sagen wollte: Firefox unterstützt in der Version 3 nun endlich auch Sollumbrüche in Wörtern. Und zwar solche, bei denen der Trennstrich nur dann angezeigt wird, wenn der Umbruch wirklich benötigt wird. Diese "<a href="http://www.w3.org/TR/html401/struct/text.html#h-9.3.3">bedingten Trennstriche</a>", oder im Englischen auch <strong>"soft hyphen"</strong> genannt, werden durch das Zeilenumbruch-Entity <strong>&amp;shy;</strong> im HTML Text definiert.</p>
<p style="text-align: center"><img src="http://webmatze.de/wp-content/uploads/2008/08/firefox_shy.png" alt="Firefox Homepage Screenshot" title="Firefox Homepage" width="500" height="240" class="alignnone size-full wp-image-369" /></p>
<p>Im folgenden Beispiel wird das vielleicht deutlich:</p>
<pre class="html">&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;p&gt;</span></span>Soll<span style="color: #ddbb00;">&amp;shy;</span>um<span style="color: #ddbb00;">&amp;shy;</span>brü<span style="color: #ddbb00;">&amp;shy;</span>che können in Wörtern eingefügt
 werden, welche ohne bedingte
 Zei<span style="color: #ddbb00;">&amp;shy;</span>len<span style="color: #ddbb00;">&amp;shy;</span>um<span style="color: #ddbb00;">&amp;shy;</span>brü<span style="color: #ddbb00;">&amp;shy;</span>che nicht richtig umbrechen<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/p&gt;</span></span>
&nbsp;</pre>
<h3>Soft Hyphen = &amp;shy; = schüchtern</h3>
<p>Gut, damit hätten wir das Rätsel auch geklärt. Aber "schüchtern" finde ich in diesem Zusammenhang gar nicht mal so unangebracht. Denn was auf dem ersten Blick vielleicht verlockend erscheint, nämlich den bedingten Trennstrich in jedem Wort eines Textes unterzubringen, ist natürlich auf dem zweiten Blick mehr als bedenklich.</p>
<p>Damit würde man den HTML Code erheblich aufblähen und die Leserlichkeit von Text im HTML deutlich erschweren. Wer solch einen Text später nach bearbeiten muss, wird sicherlich nicht viel Freude an dieser Arbeit haben.</p>
<p>Darum sollte man den bedingten Trennstrich nur <strong>"sehr schüchtern"</strong> anwenden, also nur an Stellen, bei denen es sonst zu Problemen in der Darstellung kommen könnte. Ich könnte mir z.B. <strong>Label</strong> Elemente in einem Formular vorstellen, welche nur eine bestimmte Breite haben sollen und wo man damit zu lange Wörter zum Umbruch zwingen kann, ohne dass das Layout des Formulars zerschossen wird. Hier findet Ihr ein Beispiel dafür, <a href="http://webmatze.de/wie-man-wirklich-ansprechende-formulare-erstellt/">wie man ansprechende Formulare erstellt</a>. Das Gleiche könnte auch auf Spaltenüberschriften einer Tabelle zutreffen, welche nur eine bestimmte Breite haben sollen.</p>
<h3>Fazit</h3>
<p>Ich finde es gut, dass Firefox 3 nun auch bedingte Trennstriche unterstützt, zumal der IE dies schon seit einigen Jahren kann. Weise und sparsam angewendet, können sie sicherlich sehr hilfreich sein. Doch im Netzt gibt es auch Bedenken darüber, was <a href="http://www.peterkroener.de/bedingter-zeilenumbruch-mit-shy-gut-oder-schlecht/">die Verwendung von bedingten Trennstrichen</a> angeht. Was haltet Ihr davon?</p>
Similar Posts:<ul><li><a href="http://webmatze.de/css-formular-design-textfelder/" rel="bookmark" title="11. 08. 2001">CSS Formular Design &#8211; Textfelder</a></li>

<li><a href="http://webmatze.de/kleine-style-tricks-grosse-wirkung/" rel="bookmark" title="16. 08. 2002">Kleine Style Tricks &#8211; gro&szlig;e Wirkung</a></li>

<li><a href="http://webmatze.de/ist-display-none-jetzt-irrelevant/" rel="bookmark" title="12. 08. 2008">Ist display=&#8221;none&#8221; jetzt irrelevant?</a></li>

<li><a href="http://webmatze.de/wie-man-wirklich-ansprechende-formulare-erstellt/" rel="bookmark" title="5. 08. 2008">Wie man wirklich ansprechende Formulare erstellt</a></li>

<li><a href="http://webmatze.de/spread-firefox-1000000-downloads-in-10-tagen/" rel="bookmark" title="14. 09. 2004">Spread Firefox &#8211; 1.000.000 Downloads in 10 Tagen</a></li>
</ul><!-- Similar Posts took 4.544 ms -->]]></content:encoded>
			<wfw:commentRss>http://webmatze.de/firefox3-kann-jetzt-auch-schuechtern/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Wie man wirklich ansprechende Formulare erstellt</title>
		<link>http://webmatze.de/wie-man-wirklich-ansprechende-formulare-erstellt/</link>
		<comments>http://webmatze.de/wie-man-wirklich-ansprechende-formulare-erstellt/#comments</comments>
		<pubDate>Tue, 05 Aug 2008 16:57:23 +0000</pubDate>
		<dc:creator>webmatze</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML / XHTML]]></category>

		<guid isPermaLink="false">http://webmatze.de/?p=335</guid>
		<description><![CDATA[Eines der wichtigsten Elemente in Webseiten sind Formulare. Ohne Formulare wäre es nicht möglich Informationen vom Anwender auf den Server zu übertragen. Es könnten keine Gästebucheinträge gemacht oder Mails über ein Kontaktformular versendet werden.
Gerade weil Formulare solch ein wichtiger Bestandteil einer Seite sind, sollte man auch beim Design eines Formulars an den Anwender denken. Klar [...]]]></description>
			<content:encoded><![CDATA[<p>Eines der wichtigsten Elemente in Webseiten sind Formulare. Ohne Formulare wäre es nicht möglich Informationen vom Anwender auf den Server zu übertragen. Es könnten keine Gästebucheinträge gemacht oder Mails über ein Kontaktformular versendet werden.</p>
<p>Gerade weil Formulare solch ein wichtiger Bestandteil einer Seite sind, sollte man auch beim Design eines Formulars an den Anwender denken. Klar strukturierte Formulare mit sinnvollen Bezeichnungen und Beschreibungen der einzelnen Felder helfen dem Nutzer dabei, die benötigten Daten schnell eingeben zu können. Aber auch beim HTML Code der Formulare sollte man sich an allgemein gültige Regeln halten, damit diese z.B. auch von behinderten Anwendern leicht ausgefüllt werden können.</p>
<p style="text-align: center;"><img src="http://webmatze.de/wp-content/uploads/2008/08/formulardesign.png" alt="Formulardesign Screenshot" title="Formulardesign" width="500" height="240" class="alignnone size-full wp-image-367" /></p>
<h3>Formulare richtig aufbauen</h3>
<p>Um ein Formular erstellen zu können, sollte man sich zuerst alle benötigten Daten notieren und sich überlegen, wie man diese als Formularfeld darstellen kann. Namen oder Emails wird man am besten als <a href="http://de.selfhtml.org/html/formulare/eingabe.htm#felder">Texteingabefeld</a> darstellen. Für Beschreibungen oder größere Texte eignet sich die <a href="http://de.selfhtml.org/html/formulare/eingabe.htm#bereiche">Textarea</a> besser. Eine Auswahl, z.B. ob der Nutzer Mann oder Frau ist, lässt sich sowohl durch <a href="http://de.selfhtml.org/html/formulare/auswahl.htm#radiobuttons">Radiobuttons</a> und auch als <a href="http://de.selfhtml.org/html/formulare/auswahl.htm#listen">Auswahlliste</a> darstellen. Mit <a href="http://de.selfhtml.org/html/formulare/auswahl.htm#checkboxen">Checkboxen</a> fragt man schließlich Daten ab, die keine Texteingabe erfordern, sondern nur ausgewählt werden müssen.</p>
<p>Alle verschiedenen Felder sollten möglichst durch ein <a href="http://de.selfhtml.org/html/formulare/strukturieren.htm#label">Label</a> gekennzeichnet werden. Wenn notwendig kann man dies noch durch ausführlichere Beschreibungen ergänzen, wenn sich die benötigten Daten nicht durch ein oder zwei Wörter erklären lassen.</p>
<p>Wenn ein Formular aus mehreren, inhaltlich nicht zusammengehörigen Abschnitten besteht, so sollte man diese durch <a href="http://de.selfhtml.org/html/formulare/strukturieren.htm#gruppieren">Fieldsets</a> logisch aufteilen und mit Legend genauer beschreiben.<span id="more-335"></span></p>
<h3>Ein einfaches Beispiel - Das Kontaktformular</h3>
<p>Zur besseren Veranschaulichung werde ich ein einfaches Kontaktformular aufbauen. Kontaktformulare kann man auf fast jeder Seite finden und sind ein wichtiges Mittel zur Kommunikation zwischen Seitenbesucher und Seitenbetreiber. </p>
<p>Am Ende soll unser Kontaktformular folgendermaßen aussehen:</p>
<form class="wmForm" action="#" method="post">
<fieldset>
<legend>Ihre Kontaktdaten</legend>
<ul>
<li> <label for="name"><span>*</span>Name</label><br />
<input id="name" name="name" type="text" />
<p class="wmHint">Verwenden Sie wenn möglich Vor- und Zuname.</p>
</li>
<li> <label for="email"><span>*</span>Email</label><br />
<input id="email" name="email" type="text" />
<p class="wmHint">Bitte stellen Sie sicher, dass diese Email wirklich existiert.</p>
</li>
<li> <label for="nachricht"><span>*</span>Ihre Nachricht</label><br />
<textarea id="nachricht" name="nachricht"></textarea></p>
<p class="wmHint">
</li>
</ul>
</fieldset>
<fieldset>
<legend>Ich möchte Folgendes gleich kostenlos mitbestellen</legend>
<ul>
<li> <label for="fruehlingskatalog">Frühlingskatalog</label><br />
<input id="fruehlingskatalog" class="checkbox" name="fruehlingskatalog" type="checkbox" /></li>
<li> <label for="sommerkatalog">Sommerkatalog</label><br />
<input id="sommerkatalog" class="checkbox" name="sommerkatalog" type="checkbox" /></li>
<li> <label for="herbstkatalog">Herbstkatalog</label><br />
<input id="herbstkatalog" class="checkbox" name="herbstkatalog" type="checkbox" /></li>
<li> <label for="winterkatalog">Winterkatalog</label><br />
<input id="winterkatalog" class="checkbox" name="winterkatalog" type="checkbox" />
<p class="wmHint">
</li>
</ul>
</fieldset>
<fieldset class="wmButtons">
<input class="wmButton" name="submit" type="button" value="Absenden" />
<input class="wmButton" name="reset" type="reset" value="Eingaben löschen" />
</fieldset>
</form>
<p>Wie man sehen kann, ist das Formular relativ einfach gehalten, sieht aber dennoch ansprechend aus. Erreicht wird dies durch den Einsatz von gut strukturiertem HTML und einfachen CSS Definitionen.</p>
<h3>Der HTML Code</h3>
<p>Beim Aufbau des Formulars mit HTML habe ich darauf geachtet, dass es in allen Browsern bedienbar bleibt und auch für Behinderte mit Screenreadern keine Probleme macht. Die einzelnen Formularfelder wie einzeilige oder mehrzeilige Textfelder wurden in einer Liste untergebracht und mit &lt;LABEL&gt; Elementen versehen. Bei bestimmten Feldern habe ich zusätzlich noch einen längeren, beschreibenden Text hinzugefügt:</p>
<pre class="html">&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;form</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;wmForm&quot;</span> <span style="color: #000066;">action</span>=<span style="color: #ff0000;">&quot;#&quot;</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">&quot;post&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;fieldset&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;legend&gt;</span></span>Ihre Kontaktdaten<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/legend&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ul&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;label</span> <span style="color: #000066;">for</span>=<span style="color: #ff0000;">&quot;name&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;span&gt;</span></span>*<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/span&gt;</span></span>Name<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/label&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;input</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;name&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;name&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text&quot;</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;p</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;wmHint&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Verwenden Sie wenn möglich Vor- und Zuname.<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/p&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;label</span> <span style="color: #000066;">for</span>=<span style="color: #ff0000;">&quot;email&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;span&gt;</span></span>*<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/span&gt;</span></span>Email<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/label&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;input</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;email&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;email&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text&quot;</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;p</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;wmHint&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Bitte stellen Sie sicher, dass diese Email wirklich existiert.<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/p&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;label</span> <span style="color: #000066;">for</span>=<span style="color: #ff0000;">&quot;nachricht&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;span&gt;</span></span>*<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/span&gt;</span></span>Ihre Nachricht<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/label&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;textarea</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;nachricht&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;nachricht&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/textarea&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;p</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;wmHint&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/p&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/fieldset&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;fieldset&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;legend&gt;</span></span>Ich möchte Folgendes gleich kostenlos mitbestellen<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/legend&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ul&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;label</span> <span style="color: #000066;">for</span>=<span style="color: #ff0000;">&quot;fruehlingskatalog&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Frühlingskatalog<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/label&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;input</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;fruehlingskatalog&quot;</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;checkbox&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;fruehlingskatalog&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;checkbox&quot;</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;label</span> <span style="color: #000066;">for</span>=<span style="color: #ff0000;">&quot;sommerkatalog&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Sommerkatalog<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/label&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;input</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;sommerkatalog&quot;</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;checkbox&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;sommerkatalog&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;checkbox&quot;</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;label</span> <span style="color: #000066;">for</span>=<span style="color: #ff0000;">&quot;herbstkatalog&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Herbstkatalog<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/label&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;input</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;herbstkatalog&quot;</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;checkbox&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;herbstkatalog&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;checkbox&quot;</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;label</span> <span style="color: #000066;">for</span>=<span style="color: #ff0000;">&quot;winterkatalog&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Winterkatalog<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/label&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;input</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;winterkatalog&quot;</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;checkbox&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;winterkatalog&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;checkbox&quot;</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;p</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;wmHint&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/p&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/fieldset&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;fieldset</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;wmButtons&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;input</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;wmButton&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;submit&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;button&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;Absenden&quot;</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;input</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;wmButton&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;reset&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;reset&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;Eingaben löschen&quot;</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/fieldset&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/form&gt;</span></span>
&nbsp;</pre>
<h3>Die dazugehörigen Style Definitionen</h3>
<p>Damit das Formular auch ansprechend aussieht, muss es natürlich über CSS verschönert werden. Im folgenden CSS sind alle notwendigen Angaben, um die einzelnen Formularelemente auszurichten und farblich gestalten zu können.</p>
<pre class="css">&nbsp;
<span style="color: #6666ff;">.wmForm</span> <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">background-color</span>: <span style="color: #cc00cc;">#ffffff</span>;
  <span style="color: #000000; font-weight: bold;">padding</span>: <span style="color: #933;">10px</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #6666ff;">.wmForm</span> fieldset<span style="color: #6666ff;">.wmButtons</span> input<span style="color: #6666ff;">.wmButton</span> <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">float</span>: <span style="color: #000000; font-weight: bold;">right</span>;
  <span style="color: #000000; font-weight: bold;">width</span>: <span style="color: #933;">150px</span>;
  <span style="color: #000000; font-weight: bold;">background-color</span>: <span style="color: #cc00cc;">#E9F7F6</span>;
  <span style="color: #000000; font-weight: bold;">border</span>: <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#7BB9B7</span>;
  <span style="color: #000000; font-weight: bold;">color</span>: <span style="color: #cc00cc;">#7BB9B7</span>;
  <span style="color: #000000; font-weight: bold;">margin-left</span>: <span style="color: #933;">10px</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #6666ff;">.wmForm</span> fieldset legend <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">background-color</span>: <span style="color: #cc00cc;">#ffffff</span>;
  <span style="color: #000000; font-weight: bold;">color</span>: <span style="color: #cc00cc;">#7BB9B7</span>;
  <span style="color: #000000; font-weight: bold;">font-weight</span>: <span style="color: #993333;">bold</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #6666ff;">.wmForm</span> ul <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">background-color</span>: <span style="color: #cc00cc;">#E9F7F6</span>;
  <span style="color: #000000; font-weight: bold;">border-top</span>: <span style="color: #933;">2px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#7BB9B7</span>;
  <span style="color: #000000; font-weight: bold;">margin</span>: <span style="color: #933;">0px</span>;
  <span style="color: #000000; font-weight: bold;">padding</span>: <span style="color: #933;">0px</span>;
  <span style="color: #000000; font-weight: bold;">list-style</span>: <span style="color: #993333;">none</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #6666ff;">.wmForm</span> ul li <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">padding</span>: <span style="color: #933;">10px</span>;
  <span style="color: #000000; font-weight: bold;">clear</span>: <span style="color: #993333;">both</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #6666ff;">.wmForm</span> ul li label <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">display</span>: <span style="color: #993333;">inline</span>;
  <span style="color: #000000; font-weight: bold;">float</span>: <span style="color: #000000; font-weight: bold;">left</span>;
  <span style="color: #000000; font-weight: bold;">width</span>: <span style="color: #933;"><span style="color: #933;">30</span>%</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #6666ff;">.wmForm</span> ul li label span <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">float</span>: <span style="color: #000000; font-weight: bold;">right</span>;
  <span style="color: #000000; font-weight: bold;">color</span>: <span style="color: #cc00cc;">#7BB9B7</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #6666ff;">.wmForm</span> ul li input,
<span style="color: #6666ff;">.wmForm</span> ul li textarea <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">float</span>: <span style="color: #000000; font-weight: bold;">right</span>;
  <span style="color: #000000; font-weight: bold;">width</span>: <span style="color: #933;"><span style="color: #933;">68</span>%</span>;
  <span style="color: #000000; font-weight: bold;">background-color</span>: <span style="color: #cc00cc;">#F0F0F0</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #6666ff;">.wmForm</span> ul li input<span style="color: #3333ff;">:focus</span>,
<span style="color: #6666ff;">.wmForm</span> ul li textarea<span style="color: #3333ff;">:focus</span> <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">border</span>: <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#7BB9B7</span>;
  <span style="color: #000000; font-weight: bold;">background-color</span>: <span style="color: #cc00cc;">#FFFFFF</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #6666ff;">.wmForm</span> ul li input<span style="color: #6666ff;">.checkbox</span>,
<span style="color: #6666ff;">.wmForm</span> ul li input<span style="color: #6666ff;">.radio</span> <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">float</span>: <span style="color: #000000; font-weight: bold;">left</span>;
  <span style="color: #000000; font-weight: bold;">width</span>: <span style="color: #933;">20px</span>;
  <span style="color: #000000; font-weight: bold;">border-width</span>: <span style="color: #933;">0px</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #6666ff;">.wmForm</span> ul li p<span style="color: #6666ff;">.wmHint</span> <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">clear</span>: <span style="color: #993333;">both</span>;
  <span style="color: #000000; font-weight: bold;">margin-left</span>: <span style="color: #933;"><span style="color: #933;">30</span>%</span>;
  <span style="color: #000000; font-weight: bold;">width</span>: <span style="color: #933;"><span style="color: #933;">68</span>%</span>;
  <span style="color: #000000; font-weight: bold;">text-align</span>: <span style="color: #000000; font-weight: bold;">left</span>;
  <span style="color: #000000; font-weight: bold;">font-size</span>: <span style="color: #933;">10px</span>;
  <span style="color: #000000; font-weight: bold;">padding</span>: <span style="color: #933;">0px</span> <span style="color: #933;">10px</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;</pre>
<p>Diese Angaben können natürlich beliebig erweitert oder verändert werden, um das Aussehen des Formulars den eigenen Vorstellungen anzupassen.</p>
<h3>Fazit</h3>
<p>Wie man bei diesem Beispiel erkennen kann, müssen Formulare nicht grau und langweilig aussehen. Sie können sehr flexibel an das jeweilige Seitendesign angepasst werden. Der Fantasie sind hier fast keine Grenzen gesetzt, aber man sollte immer darauf achten, dass solch ein Formular leicht bedienbar bleibt. Dies ist vor allem auch dann wichtig, wenn man bedenkt das Formulare auch von Menschen mit Behinderungen ausgefüllt werden können müssen.</p>
Similar Posts:<ul><li><a href="http://webmatze.de/css-button-tricks/" rel="bookmark" title="23. 01. 2003">CSS Button Tricks</a></li>

<li><a href="http://webmatze.de/hierarchische-menus-mit-css-erstellen/" rel="bookmark" title="4. 09. 2008">Hierarchische Menüs mit CSS erstellen</a></li>

<li><a href="http://webmatze.de/css-formular-design-textfelder/" rel="bookmark" title="11. 08. 2001">CSS Formular Design &#8211; Textfelder</a></li>

<li><a href="http://webmatze.de/email-mit-php-senden/" rel="bookmark" title="24. 08. 2006">Email mit PHP senden</a></li>

<li><a href="http://webmatze.de/wegwerfadressen-oder-einmaladressen-mit-google-mail/" rel="bookmark" title="11. 03. 2009">Wegwerfadressen oder Einmaladressen mit Google Mail</a></li>
</ul><!-- Similar Posts took 5.412 ms -->]]></content:encoded>
			<wfw:commentRss>http://webmatze.de/wie-man-wirklich-ansprechende-formulare-erstellt/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Meta-Description: Wie wichtig ist sie wirklich?</title>
		<link>http://webmatze.de/meta-description-wie-wichtig-ist-sie-wirklich/</link>
		<comments>http://webmatze.de/meta-description-wie-wichtig-ist-sie-wirklich/#comments</comments>
		<pubDate>Tue, 15 Jul 2008 14:14:55 +0000</pubDate>
		<dc:creator>webmatze</dc:creator>
				<category><![CDATA[HTML / XHTML]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://webmatze.de/?p=355</guid>
		<description><![CDATA[Wer sich mit Suchmaschinenoptimierung (SEO) beschäftigt, der wird auf jeden Fall auch schon mal etwas von Meta-Tags gehört haben. Meta-Tags beschreiben unter anderem den Inhalt einer Webseite genauer. Sie geben vor allem den Suchmaschinen ein paar Hinweise darüber, was in einer bestimmten Seite zu finden ist.
Die bekanntesten Meta-Tags
Die bekanntesten Meta-Tags sind hier sicherlich Meta-Description:
&#60;meta name="description" [...]]]></description>
			<content:encoded><![CDATA[<p>Wer sich mit <a href="http://de.wikipedia.org/wiki/Suchmaschinenoptimierung">Suchmaschinenoptimierung</a> (<abbr title="Search Engine Optimization">SEO</abbr>) beschäftigt, der wird auf jeden Fall auch schon mal etwas von <a href="http://de.wikipedia.org/wiki/Meta-Tag">Meta-Tags</a> gehört haben. Meta-Tags beschreiben unter anderem den Inhalt einer Webseite genauer. Sie geben vor allem den Suchmaschinen ein paar Hinweise darüber, was in einer bestimmten Seite zu finden ist.</p>
<h4>Die bekanntesten Meta-Tags</h4>
<p>Die bekanntesten Meta-Tags sind hier sicherlich <span style="font-weight: bold;">Meta-Description</span>:</p>
<pre>&lt;meta name="description" content="Das Meta-Description Tag
enthält eine kurze Beschreibung vom Inhalt einer Webseite." /&gt;</pre>
<p>und <span style="font-weight: bold;">Meta-Keywords</span>:</p>
<pre>&lt;meta name="keywords" content="meta-tags,html,suchmaschinen,
optimierung,seo" /&gt;</pre>
<p>Allerdings ist Meta-Keywords in den Anfangsjahren des Webs massiv missbraucht worden - um bei möglichst vielen Suchanfragen gelistet zu werden, waren viele Webmaster dazu übergegangen, eine riesige Liste an verschiedenen Keywords in dieses Tag einzutragen, auch wenn diese absolut nichts mit dem eigentlichen Inhalt der Seiten zu tun hatten. Daher wird dieses Tag heute von den Suchmaschinen nur noch sehr vorsichtig betrachtet und ausgewertet.</p>
<h4>Eine gute Meta Beschreibung ist wichtig</h4>
<p>Anders ist dies bei dem Meta-Description Tag. Dieses Tag hat auch heute noch eine sehr große Bedeutung und wird von vielen Suchmaschinen ausgewertet. Je nach Art der Suchanfrage, wird der Inhalt dieses Tags auch gerne mal als Textauszug unter dem Suchergebnis angezeigt.</p>
<p style="text-align: center;"><img class="alignnone size-full wp-image-356" title="Meta-Description" src="http://webmatze.de/wp-content/uploads/2008/07/metadescription.png" alt="Meta-Description Tag in Suchergebnissen" width="500" height="240" /></p>
<p>Der Grund dafür ist, dass die Suchmaschinen den ersten Text, der auf einer HTML Seite gefunden wird, sehr hoch bewerten. Hat man das Meta-Description Tag eingebunden, enthält dieses den ersten Textinhalt, den die Suchmaschine sehen kann. Wird es weggelassen, kann es daher sein, dass statt dessen der Inhalt der Navigation angezeigt wird - wenn diese an erster Stelle in einer Seite steht.</p>
<h4>Wie sollte eine gute Beschreibung aussehen?</h4>
<p>Wenn man sich mal die Suchergebnisse von Google genauer anschaut, dann kann man erkennen, dass die Textauszüge meistens eine Länge von etwa <span style="font-weight: bold;">160 Zeichen</span> haben - also etwa die Länge einer <abbr title="Short Messaging Service">SMS</abbr>. Daher sollte man auch möglichst nicht mehr Text in das Meta-Description Tag schreiben, denn je weniger Text in der Beschreibung steht, um so höher wird jedes einzelne dort enthaltene Wort bewertet werden.</p>
<p>Kurz gesagt: die Beschreibung sollte den Inhalt der Seite so genau wie möglich und in kurzer Form wiedergeben.</p>
<p>Google gibt in seiner <strong>Webmaster Hilfe</strong> dazu <a href="http://www.google.com/support/webmasters/bin/answer.py?answer=35264&amp;topic=8522#writegooddescriptions">sehr gute Hinweise und Tipps</a>.</p>
<p>Ich selbst habe auf webmatze.de leider bisher den Fehler gemacht, auf jeder Seite den gleichen Text in der Meta-Description zu verwenden. Ergebnis ist, dass nun in jedem Suchergebnis, wo webmatze.de auftaucht, der gleiche Textausschnitt angezeigt wird.</p>
<p>Werde mich also hinsetzen und für jeden Blogeintrag eine kurze Beschreibung anfertigen müssen. Und ich möchte gar nicht daran denken, dass es auf webmatze.de bereits <span style="font-weight: bold;">über 300 Blogbeiträge</span> gibt...</p>
Similar Posts:<ul><li><a href="http://webmatze.de/kleine-style-tricks-grosse-wirkung/" rel="bookmark" title="16. 08. 2002">Kleine Style Tricks &#8211; gro&szlig;e Wirkung</a></li>

<li><a href="http://webmatze.de/text_in_spalten_css3_columns/" rel="bookmark" title="4. 09. 2006">Text in Spalten darstellen mit &#8220;CSS3 Columns&#8221;</a></li>

<li><a href="http://webmatze.de/warum-powerpoint-anwender-oft-gute-blogger-sind/" rel="bookmark" title="28. 05. 2008">Warum PowerPoint Anwender oft gute Blogger sind</a></li>

<li><a href="http://webmatze.de/der-kleine-pfeil-mal-anders/" rel="bookmark" title="23. 08. 2002">Der kleine Pfeil mal anders</a></li>

<li><a href="http://webmatze.de/webmatze-erstrahlt-im-neuen-glanz/" rel="bookmark" title="11. 04. 2008">webmatze erstrahlt im neuen Glanz</a></li>
</ul><!-- Similar Posts took 4.941 ms -->]]></content:encoded>
			<wfw:commentRss>http://webmatze.de/meta-description-wie-wichtig-ist-sie-wirklich/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Die Sprache eines Links kennzeichnen</title>
		<link>http://webmatze.de/die-sprache-eines-links-kennzeichnen/</link>
		<comments>http://webmatze.de/die-sprache-eines-links-kennzeichnen/#comments</comments>
		<pubDate>Tue, 04 Sep 2007 10:28:40 +0000</pubDate>
		<dc:creator>webmatze</dc:creator>
				<category><![CDATA[HTML / XHTML]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://version3.webmatze.de/2007/09/04/die-sprache-eines-links-kennzeichnen/</guid>
		<description><![CDATA[HTML bietet viele Möglichkeiten, um die Nutzbarkeit der HTML Seiten zu erhöhen. Meist kann dies schon durch einfache Dinge passieren. Wie wäre es zum Beispiel, wenn alle Links einer Seite anzeigen würden, in welcher Sprache die verlinkten Seiten geschrieben sind? Hier steht wie das geht.]]></description>
			<content:encoded><![CDATA[<p>Ein bislang fast nie benutztes Attribut des <strong>&lt;a&gt;</strong> Tags ist das Attribut <strong>hreflang</strong>, welches beschreibt in welcher Sprache die Seite geschrieben ist, zu der ein Link führt. Dieses Attribut darf nur gesetzt werden, wenn auch das <strong>href</strong> Attribut angegeben wurde.</p>
<p>Doch scheint das <strong>hreflang</strong> Attribut keinen wirklichen Nutzen zu haben, da es ja in keiner Weise auf der angezeigten HTML Seite dargestellt wird. In den nächsten Abschnitten möchte ich zwei Wege zeigen, wie man das Attribut doch sichtbar machen kann.</p>
<h2>Die CSS Methode</h2>
<p>Moderne Browser wie Firefox erlauben es per CSS auf Elemente der Seite mit bestimmten Attributen zuzugreifen und diesen dann einen Style zuzuweisen. Dies geschieht, indem man den Attribut Namen in eckigen Klammern hinter den Tag Namen schreibt:</p>
<pre class="css">a<span style="color: #66cc66;">&#91;</span>hreflang<span style="color: #66cc66;">&#93;</span> <span style="color: #66cc66;">&#123;</span>
  ..<span style="color: #6666ff;">.Styles</span>...
<span style="color: #66cc66;">&#125;</span></pre>
<p><span id="more-12"></span></p>
<p>Mit ein paar weiteren 'Tricks' ist es somit möglich den Inhalt von <strong>hreflang</strong> sichtbar zu machen und z.B. hinter das entsprechende Tag anzufügen:</p>
<pre class="css">a<span style="color: #66cc66;">&#91;</span>hreflang<span style="color: #66cc66;">&#93;</span>:<span style="color: #3333ff;">:after</span><span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">content</span>:<span style="color: #ff0000;">&quot; [&quot;</span>attr<span style="color: #66cc66;">&#40;</span>hreflang<span style="color: #66cc66;">&#41;</span><span style="color: #ff0000;">&quot;]&quot;</span>;
<span style="color: #66cc66;">&#125;</span></pre>
<p>Als Ergebnis bekommt man dann einen Link in folgender Form:</p>
<p><a href="http://google.com">Google.com [en]</a></p>
<p>Der Nachteil dabei ist, wie ich schon erwähnt habe, dass solche CSS Definitionen nur in modernen Browsern funktionieren und somit nicht in älteren Browsern wie dem Internet Explorer!<br />
Darum habe ich eine weitere Möglichkeit der Umsetzung ersonnen...</p>
<h2>Die JavaScript Methode</h2>
<p>JavaScript unterstützen heute die meisten Browser. Wenn man also sichergehen will, das die Darstellung der Sprache in all diesem Browsern funktioniert, kann man folgendes Script verwenden.</p>
<pre class="javascript"><span style="color: #003366; font-weight: bold;">function</span> showHreflang<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000066; font-weight: bold;">for</span> <span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> i = <span style="color: #CC0000;">0</span>; i &lt; document.<span style="color: #006600;">links</span>.<span style="color: #006600;">length</span>; i++<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
    <span style="color: #003366; font-weight: bold;">var</span> link = document.<span style="color: #006600;">links</span>.<span style="color: #000066; font-weight: bold;">item</span><span style="color: #66cc66;">&#40;</span>i<span style="color: #66cc66;">&#41;</span>;
    <span style="color: #003366; font-weight: bold;">var</span> hreflang = link.<span style="color: #006600;">getAttribute</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;hreflang&quot;</span><span style="color: #66cc66;">&#41;</span>;
    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span>hreflang != <span style="color: #003366; font-weight: bold;">null</span> &amp; hreflang.<span style="color: #006600;">length</span> &gt; <span style="color: #CC0000;">0</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
      <span style="color: #003366; font-weight: bold;">var</span> langText = document.<span style="color: #006600;">createTextNode</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot; [&quot;</span> + hreflang + <span style="color: #3366CC;">&quot;]&quot;</span><span style="color: #66cc66;">&#41;</span>;
      <span style="color: #003366; font-weight: bold;">var</span> supNode = document.<span style="color: #006600;">createElement</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">&quot;b&quot;</span><span style="color: #66cc66;">&#41;</span>;
      supNode.<span style="color: #006600;">appendChild</span><span style="color: #66cc66;">&#40;</span>langText<span style="color: #66cc66;">&#41;</span>;
      link.<span style="color: #006600;">parentNode</span>.<span style="color: #006600;">insertBefore</span><span style="color: #66cc66;">&#40;</span>supNode, link.<span style="color: #006600;">nextSibling</span><span style="color: #66cc66;">&#41;</span>;
    <span style="color: #66cc66;">&#125;</span>
  <span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span></pre>
<p>Das Script durchsucht einfach alle Links auf der Seite, schaut nach ob das <strong>hreflang</strong> Attribut definiert wurde und einen Inhalt besitzt und hängt dann den Inhalt in eckigen Klammern hinter den entsprechenden Link.<br />
Sollte der Benutzer JavaScript in seinem Browser ausgeschaltet haben, schadet es auch nichts, dann wird einfach nichts angezeigt, womit derjenige dann auf jeden Fall leben kann.</p>
<h2>Hier das Ergebnis</h2>
<p>Ein Link zu einer Seite auf Deutsch <a hreflang="de" href="http://google.de">Google.de</a> und hier einer zu einer englischen Seite <a hreflang="en" href="http://google.com">Google.com</a>. Und dann darf natürlich auch ein Link nicht fehlen, der keine <strong>hreflang</strong> Angabe besitzt <a href="http://www.webmatze.de">webmatze.de</a>!</p>
<p><script type="text/javascript"><!--
function showHreflang() {
	for (var i = 0; i < document.links.length; i++) {
		var link = document.links.item(i);
		var hreflang = link.getAttribute("hreflang");
		if (hreflang != null) {
			if (hreflang.length != 0) {
				hreflang = " [" + hreflang + "]";
				var langText = document.createTextNode(hreflang);
				var supNode = document.createElement("b");
				supNode.appendChild(langText);
				link.parentNode.insertBefore(supNode, link.nextSibling);
			}
		}
	}
}
showHreflang();
// --></script></p>
Similar Posts:<ul><li><a href="http://webmatze.de/wirklich-einfache-javascript-tooltips/" rel="bookmark" title="12. 01. 2006">Wirklich einfache JavaScript Tooltips</a></li>

<li><a href="http://webmatze.de/ist-display-none-jetzt-irrelevant/" rel="bookmark" title="12. 08. 2008">Ist display=&#8221;none&#8221; jetzt irrelevant?</a></li>

<li><a href="http://webmatze.de/google-related-links/" rel="bookmark" title="5. 04. 2006">Google Related Links</a></li>

<li><a href="http://webmatze.de/google-chrome-der-neue-browser/" rel="bookmark" title="3. 09. 2008">Google Chrome &#8211; Der neue Browser</a></li>

<li><a href="http://webmatze.de/unsicher-objekte-unter-ssl-in-ie/" rel="bookmark" title="19. 10. 2005">Unsicher Objekte unter SSL in IE</a></li>
</ul><!-- Similar Posts took 5.744 ms -->]]></content:encoded>
			<wfw:commentRss>http://webmatze.de/die-sprache-eines-links-kennzeichnen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eigene Fehlerseiten erstellen</title>
		<link>http://webmatze.de/eigene-fehlerseiten-erstellen/</link>
		<comments>http://webmatze.de/eigene-fehlerseiten-erstellen/#comments</comments>
		<pubDate>Tue, 13 Jun 2006 15:32:48 +0000</pubDate>
		<dc:creator>webmatze</dc:creator>
				<category><![CDATA[HTML / XHTML]]></category>
		<category><![CDATA[Planung]]></category>

		<guid isPermaLink="false">http://version3.webmatze.de/2006/06/13/eigene-fehlerseiten-erstellen/</guid>
		<description><![CDATA[Das hat bestimmt schon jeder einmal erlebt. Anstatt der gew&#252;nschten Seite wird nur eine einfache Seite angezeigt, auf der 404 Error - Datei nicht gefunden steht! Das kann zum Beispiel sein, wenn die Seite nicht mehr auf dem Server vorhanden ist, oder aber auch, wenn man sich schlicht und einfach verschrieben hat.]]></description>
			<content:encoded><![CDATA[<p>Das hat bestimmt schon jeder einmal erlebt. Anstatt der gew&uuml;nschten Seite wird nur eine einfache Seite angezeigt, auf der <b>404 Error - Datei nicht gefunden</b> steht! Das kann zum Beispiel sein, wenn die Seite nicht mehr auf dem Server vorhanden ist, oder aber auch, wenn man sich schlicht und einfach verschrieben hat.</p>
<p>Da auf solchen Fehlerseiten oft keine Hinweise f&uuml;r den Besucher vorhanden sind, wie dieser wieder zur&uuml;ck auf die richtigen Seiten kommt, gehen dem Webseitenbetreiber so schnell viele Besucher verloren. Um dies zu verhindern, hat man auf den meisten Servern die M&ouml;glichkeit, <b>eigene Fehlerseiten</b> anzulegen.</p>
<h2>Wie gehe ich vor? </h2>
<p>Ganz einfach! Auf vielen Servern befindet sich eine Datei mit Namen <b>.htaccess</b>! Manchmal kann diese auch nicht sichtbar sein. Entweder l&auml;d man sich diese Datei herunter oder legt sich einfach eine neue an. Dies kann man mit einem einfachen Texteditor machen. In diese Datei f&uuml;gt man nun folgende Zeilen ein:</p>
<p><span id="more-18"></span></p>
<pre name="code" class="php">
ErrorDocument 401 http://www.domain.de/fehler.htm
ErrorDocument 402 http://www.domain.de/fehler.htm
ErrorDocument 403 http://www.domain.de/fehler.htm
ErrorDocument 404 http://www.domain.de/fehler.htm
ErrorDocument 500 http://www.domain.de/fehler.htm
</pre>
<p>Es ist auch m&ouml;glich, f&uuml;r jeden Fehlercode eine eigene Seite anzugeben. Danach speichert man die <b>.htaccess</b> Datei im gleichen Verzeichnis ab, wo auch die <b>index.htm</b> Datei liegt. Die Datei <b>fehler.htm</b> kommt ebenfalls dort hin. In dieser Datei kann man zum Beipspiel einen Link zur Hompage bereitstellen, oder den Besucher gleich dorthin weiterleiten. F&uuml;r die Gestaltung dieser Seite gibt es keine Beschr&auml;nkungen.</p>
Similar Posts:<ul><li><a href="http://webmatze.de/was-ist-robotstxt/" rel="bookmark" title="20. 01. 2006">Was ist robots.txt?</a></li>

<li><a href="http://webmatze.de/unsicher-objekte-unter-ssl-in-ie/" rel="bookmark" title="19. 10. 2005">Unsicher Objekte unter SSL in IE</a></li>

<li><a href="http://webmatze.de/google-sitemaps-mit-ruby-on-rails-erstellen/" rel="bookmark" title="24. 11. 2008">Google Sitemaps mit Ruby on Rails erstellen</a></li>

<li><a href="http://webmatze.de/wie-manche-url-shortener-daran-scheitern-urls-zu-kurzen/" rel="bookmark" title="4. 10. 2009">Wie manche URL Shortener daran scheitern URLs zu kürzen</a></li>

<li><a href="http://webmatze.de/firefox-101-steht-zum-download-bereit/" rel="bookmark" title="25. 02. 2005">Firefox 1.0.1 steht zum Download bereit</a></li>
</ul><!-- Similar Posts took 7.425 ms -->]]></content:encoded>
			<wfw:commentRss>http://webmatze.de/eigene-fehlerseiten-erstellen/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>FireBug 0.4 &#8211; Der ultimative Web Debugger</title>
		<link>http://webmatze.de/firebug-04-der-ultimative-web-debugger/</link>
		<comments>http://webmatze.de/firebug-04-der-ultimative-web-debugger/#comments</comments>
		<pubDate>Wed, 24 May 2006 13:52:00 +0000</pubDate>
		<dc:creator>webmatze</dc:creator>
				<category><![CDATA[Browser]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML / XHTML]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://version3.webmatze.de/firebug-04-der-ultimative-web-debugger/</guid>
		<description><![CDATA[Webseiten von heute bestehen meistens nicht nur aus HTML und CSS, sondern häufig auch viel JavaScript. Es sind häufig gar keine Webseiten mehr, sondern schon richtige Webanwendungen. Und wir alle wissen, dass Anwendungen häufig auch Fehler enthalten können. Auch Webanwendungen sind davon nicht ausgeschlossen.Bisher war es meistens schwierig solche Fehler im JavaScript Code oder im [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.joehewitt.com/software/firebug/firebug.png" style="margin: 6px; float: left;" />Webseiten von heute bestehen meistens nicht nur aus HTML und CSS, sondern häufig auch viel JavaScript. Es sind häufig gar keine Webseiten mehr, sondern schon richtige Webanwendungen. Und wir alle wissen, dass Anwendungen häufig auch Fehler enthalten können. Auch Webanwendungen sind davon nicht ausgeschlossen.<br />Bisher war es meistens schwierig solche Fehler im JavaScript Code oder im HTML zu finden. Es fehlen die richtigen Tools, wie man sie z.B. bei der Programmierung mit Java ode C++ gewohnt ist, um diese Fehler aufzuspüren und zu beheben. Da HTML, CSS und JavaScript im Browser ausgeführt und angezeigt werden, braucht man auch Tools, um sie genau da - während sie ausgeführt werden - zu debuggen. Der Browser Firefox bietet hierfür einige gute Tools an. Ein guter Debugger ist z.B. <a href="http://www.mozilla.org/projects/venkman/">Venkman</a>. Und mit dem <a href="http://www.mozilla.org/projects/inspector/">DOM Inspector</a> kann man sich bequem den DOM Tree der Seiten anschauen.<br />Doch in Zeiten von web 2.0 und Ajax braucht man noch bessere und spezialisiertere Tools. Und eins dieser "Übertools" ist <a href="http://www.joehewitt.com/software/firebug/">FireBug</a>, welches jetzt in der <a href="http://www.joehewitt.com/blog/firebug_04_come.php">Version 0.4</a> erschienen ist.<br style="clear: both;" /><br />Hier ein kurzer Überblick über die neuenFeatures:<br /><b><br />JavaScript Debugger</b></p>
<p>FireBug ermöglicht es, Breakpoints im JavaScript Code zu setzen, Schritt für Schritt durch die Codezeilen zu springen und lokale Variablen sowie den Stack zu betrachten.</p>
<p><b>Stack Traces bei JavaScript Fehlern</b></p>
<p>Jeder JavaScript Fehler wird mit einem Stack Trace angezeigt. So kann man genau sehen, an welcher Stelle im Code und durch welchen Aufruf ein Fehler genau aufgetreten ist.</p>
<p><b>JavaScript Fehler debuggen</b></p>
<p>Wenn ein Fehler auftritt, reicht es meistens nicht, nur den Stack Trace zu sehen. Meistens möchte man auch sehen, welche Werte bestimmte Variablen gerade hatten, als der Fehler auftrat. Mit FireBug kann man durch die Einstellung "Break On Error" den Debugger automatisch anhalten lassen, wenn ein Fehler auftritt. Man wird dann sofort zur richtigen Stelle im Code gebracht.<br /><b><br />Logging Funktionalitäten</b></p>
<p>Über das <i>console </i>Objekt kann man verschiedene Nachrichten auf der Konsole ausgeben lassen, während der JavaScript Code ausgeführt wird. Dabei kann man verschiedene Stufen wählen, wie z.B. <i>console.debug()</i>, <i>console.info()</i>, <i>console.warn()</i> oder <i>console.error()</i>. Diese Meldungen werden dann auch noch in unterschiedlicher Farbdarstellung in der Konsole kenntlich gemacht.</p>
<p>Außerdem besitzt FireBug noch viele weitere wichtige und nützliche Funktionen. So kann man sich detailiert den Request anschauen, der bei Ajax gesendet wird. FireBug liefert auch eine sinnvolle JavaScript command line, um schnell kleine JavaScript Schnipsel ausführen zu können. Und über die verschiedensten Inspektoren können alle möglichen Aspekte von HTML, DOM, CSS und JavaScript genau betrachtet werden.</p>
<p>Ich finde das FireBug ein "Must Have" Tool für Webentwickler ist. Es läßt sich leicht als Erweiterung in den aktuellen <a href="http://www.mozilla.com/firefox/">Firefox 1.5 Browser</a> integrieren.</p>
Similar Posts:<ul><li><a href="http://webmatze.de/google-chrome-der-neue-browser/" rel="bookmark" title="3. 09. 2008">Google Chrome &#8211; Der neue Browser</a></li>

<li><a href="http://webmatze.de/hierarchische-menus-mit-css-erstellen/" rel="bookmark" title="4. 09. 2008">Hierarchische Menüs mit CSS erstellen</a></li>

<li><a href="http://webmatze.de/ist-display-none-jetzt-irrelevant/" rel="bookmark" title="12. 08. 2008">Ist display=&#8221;none&#8221; jetzt irrelevant?</a></li>

<li><a href="http://webmatze.de/wie-erstelle-ich-eine-webseite/" rel="bookmark" title="11. 08. 2009">Wie erstelle ich eine Webseite?</a></li>

<li><a href="http://webmatze.de/openlaszlo-opensource-flex-alternative/" rel="bookmark" title="27. 10. 2004">OpenLaszlo &#8211; OpenSource Flex Alternative</a></li>
</ul><!-- Similar Posts took 5.608 ms -->]]></content:encoded>
			<wfw:commentRss>http://webmatze.de/firebug-04-der-ultimative-web-debugger/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cloneNode() Problem bei TextAreas im Firefox</title>
		<link>http://webmatze.de/clonenode-problem-bei-textareas-im-firefox/</link>
		<comments>http://webmatze.de/clonenode-problem-bei-textareas-im-firefox/#comments</comments>
		<pubDate>Fri, 24 Mar 2006 17:31:00 +0000</pubDate>
		<dc:creator>webmatze</dc:creator>
				<category><![CDATA[Browser]]></category>
		<category><![CDATA[HTML / XHTML]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://version3.webmatze.de/clonenode-problem-bei-textareas-im-firefox/</guid>
		<description><![CDATA[Bei einem aktuellen Projekt benötigte ich eine Möglichkeit, bestimmte Inhalte einer Webseite zu Drucken. Dazu habe ich mir per JavaScript einen Bereich der Seite genommen, diesen geclont, ein neues Fenster geöffnet und dort den geclonten Bereich wieder eingefügt.
Falls sich in diesem geclonten Bereich interaktive Elemente wie Butons, Links oder Eingabefelder befanden, habe ich diese ebenfalls [...]]]></description>
			<content:encoded><![CDATA[<p>Bei einem aktuellen Projekt benötigte ich eine Möglichkeit, bestimmte Inhalte einer Webseite zu Drucken. Dazu habe ich mir per JavaScript einen Bereich der Seite genommen, diesen geclont, ein neues Fenster geöffnet und dort den geclonten Bereich wieder eingefügt.</p>
<p>Falls sich in diesem geclonten Bereich interaktive Elemente wie Butons, Links oder Eingabefelder befanden, habe ich diese ebenfalls mittels JavaScript entfernt oder den Textinhalt der Eingabefelder bzw. Textareas kopiert und als Text an die gleiche Stelle wieder eingefügt. Als Ergebnis gibt es dann eine HTML Seite ohne Links und Buttons.</p>
<p>So weit so gut, aber da gibt es ein Problem, welches mir vorher noch nicht bewußt war und was ich auch noch nirgendwo dokumentiert sah. Wenn man im Firefox eine Textarea clont in welche der User zuvor noch Inhalte eingegeben hat, werden diese Inhalte nicht mitgeclont. Im Internet Explorer funktioniert dies richtig. Ich habe dazu mal eine Testseite erstellt, wo man dieses Verhalten nachprüfen kann. Getestet habe ich es zur Zeit nur im Firefox 1.5!</p>
<p><a href="http://old.webmatze.de/samples/textarea_clone.html">Node.cloneNode() Test</a></p>
<p>Ich werde mal weiter nachforschen, ob dies ein gewolltes Verhalten von den Firefox Entwicklern ist, oder ob es dafür schon Bugeinträge in Bugzilla gibt.</p>
Similar Posts:<ul><li><a href="http://webmatze.de/firefox-version-106-erschienen/" rel="bookmark" title="20. 07. 2005">Firefox &#8211; Version 1.0.6 erschienen</a></li>

<li><a href="http://webmatze.de/gastebuch-spam/" rel="bookmark" title="30. 03. 2006">Gästebuch SPAM</a></li>

<li><a href="http://webmatze.de/die-sprache-eines-links-kennzeichnen/" rel="bookmark" title="4. 09. 2007">Die Sprache eines Links kennzeichnen</a></li>

<li><a href="http://webmatze.de/mozilla-firefox-107-security-update/" rel="bookmark" title="21. 09. 2005">Mozilla Firefox 1.0.7 Security Update</a></li>

<li><a href="http://webmatze.de/rss-mehr-als-nur-einfache-site-news/" rel="bookmark" title="20. 09. 2005">RSS &#8211; Mehr als nur einfache Site News</a></li>
</ul><!-- Similar Posts took 4.292 ms -->]]></content:encoded>
			<wfw:commentRss>http://webmatze.de/clonenode-problem-bei-textareas-im-firefox/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
