<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="https://notiz.blog/wp-content/plugins/pretty-feeds/pretty-feed-v4.xsl" type="text/xsl" media="screen" ?>


<!--

	Feeds whisper secrets,
	In the RSS Club's embrace,
	Knowledge blooms in grace.

-->

<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/"
	xmlns:source="http://source.scripting.com/"
xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
>

<channel>
	<title>HTML5 &#8211; notizBlog</title>
	<atom:link href="https://notiz.blog/tag/html5/feed/" rel="self" type="application/rss+xml" />
	<link>https://notiz.blog</link>
	<description>a weblog mainly about the open, portable, interoperable, small, social, synaptic, semantic, structured, distributed, (re-)decentralized, independent, microformatted and federated social web</description>
	<lastBuildDate>Wed, 01 Mar 2023 15:43:23 +0000</lastBuildDate>
	<language>de</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://notiz.blog/wp-content/uploads/2019/10/cropped-notizblog-icon-1-32x32.png</url>
	<title>HTML5 &#8211; notizBlog</title>
	<link>https://notiz.blog</link>
	<width>32</width>
	<height>32</height>
</image> 
<source:blogroll>https://reader.pfefferle.org/i/?a=opml&amp;get=c_2</source:blogroll>
<creativeCommons:license>https://creativecommons.org/licenses/by-sa/4.0/</creativeCommons:license>
<atom:link rel="hub" href="https://pubsubhubbub.appspot.com"/>
<atom:link rel="hub" href="https://pubsubhubbub.superfeedr.com"/>
<atom:link rel="hub" href="https://switchboard.p3k.io/"/>
<atom:link rel="self" href="https://notiz.blog/tag/html5/feed/"/>
<atom:link rel="search" type="application/opensearchdescription+xml" title="Search notizBlog" href="https://notiz.blog/wp-api/opensearch/1.1/document" />	<item>
		<title>&#8222;Pfefferles Open Web&#8220; wird 20</title>
		<link>https://notiz.blog/2013/12/21/pfefferles-open-web-wird-20/</link>
					<comments>https://notiz.blog/2013/12/21/pfefferles-open-web-wird-20/#respond</comments>
		
		<dc:creator><![CDATA[Matthias Pfefferle]]></dc:creator>
		<pubDate>Sat, 21 Dec 2013 13:01:11 +0000</pubDate>
				<category><![CDATA[Open Web]]></category>
		<category><![CDATA[Artikel]]></category>
		<category><![CDATA[DRM]]></category>
		<category><![CDATA[FediBlog]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Kolumne]]></category>
		<category><![CDATA[SCREENGUIDE]]></category>
		<category><![CDATA[W3C]]></category>
		<guid isPermaLink="false">http://notizblog.org/?p=5482</guid>

					<description><![CDATA[Ausgabe 20 vom SCREENGUIDE Magazin ist draußen und das bedeutet, dass auch meine Kolumne &#34;20&#34; wird! (Naja&#8230; In Ausgabe 1 war es streng genommen &#34;nur&#34; ein Artikel über Microformats (Semantic Surfing), aber thematisch ist da ja kein großer Unterschied 😉 ) In der aktuellen Kolumne geht es jedenfalls um HTML5 und DRM: Mit der Entwicklung [&#8230;]]]></description>
										<content:encoded><![CDATA[<img width="600" height="241" src="https://notiz.blog/wp-content/uploads/2013/12/html5-drm-schreenguide-600x241.jpg" class="attachment-large size-large wp-post-image" alt="" decoding="async" fetchpriority="high" srcset="https://notiz.blog/wp-content/uploads/2013/12/html5-drm-schreenguide-600x241.jpg 600w, https://notiz.blog/wp-content/uploads/2013/12/html5-drm-schreenguide-480x193.jpg 480w, https://notiz.blog/wp-content/uploads/2013/12/html5-drm-schreenguide-668x269.jpg 668w, https://notiz.blog/wp-content/uploads/2013/12/html5-drm-schreenguide.jpg 670w" sizes="(max-width: 600px) 100vw, 600px" /> 
<p>Ausgabe 20 vom SCREENGUIDE Magazin ist draußen und das bedeutet, dass auch meine Kolumne &quot;20&quot; wird!</p>



<p>(Naja&#8230; In Ausgabe 1 war es streng genommen &quot;nur&quot; ein Artikel über Microformats (<a href="https://notiz.blog/2009/03/27/webstandards-magazin-und-microformats/">Semantic Surfing</a>), aber thematisch ist da ja kein großer Unterschied 😉 )</p>



<p>In der aktuellen Kolumne geht es jedenfalls um <strong>HTML5</strong> und <strong>DRM</strong>:</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
    <p>Mit der Entwicklung eines Digital-Rights-Management-Systems für HTML5 hat das W3C in den letzten Wochen für viel Aufmerksamkeit gesorgt. Warum arbeitet gerade die Organisation, die sich „Open Standards“ und „Web for All“ zu Grundsätzen gemacht hat, an einem System, um genau diese einzuschränken?</p>
</blockquote>



<p>Viel Spaß beim lesen und auf die nächsten 20 Ausgaben 🙂</p>
<p>Hey there, RSS reader! You’re one of a special few, choosing this old-school yet awesome way of staying informed. Kudos!</p>]]></content:encoded>
					
					<wfw:commentRss>https://notiz.blog/2013/12/21/pfefferles-open-web-wird-20/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>web+custom://scheme</title>
		<link>https://notiz.blog/2012/11/09/custom-web-schemes/</link>
					<comments>https://notiz.blog/2012/11/09/custom-web-schemes/#respond</comments>
		
		<dc:creator><![CDATA[Matthias Pfefferle]]></dc:creator>
		<pubDate>Fri, 09 Nov 2012 22:26:28 +0000</pubDate>
				<category><![CDATA[Open Web]]></category>
		<category><![CDATA[FediBlog]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[scheme]]></category>
		<category><![CDATA[Web Intents]]></category>
		<guid isPermaLink="false">http://notizblog.org/?p=4861</guid>

					<description><![CDATA[Ich habe in den letzten Monaten eine Menge über Web Intents gelesen und ich finde immer noch dass der Webmonkey die Thematik bisher am treffendsten beschrieben hat: In practice Web Intents work a bit like mailto: links, defining an action and then passing it along to the browser, which allows the user to choose how [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Ich habe in den letzten Monaten eine Menge über <em><a href="https://notiz.blog/2012/05/21/web-intents-die-losung-fur-das-nascar-problem/">Web Intents</a></em> gelesen und ich finde immer noch dass der <a href="https://web.archive.org/web/20160318164905/http://www.webmonkey.com/2012/05/webkit-offers-early-preview-of-web-intents/">Webmonkey</a> die Thematik bisher am treffendsten beschrieben hat:</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
    <p>In practice Web Intents work a bit like <code>mailto:</code> links, defining an action and then passing it along to the browser, which allows the user to choose how to handle the action. The difference is that instead of opening a desktop app, Web Intents connect to web services.</p>
</blockquote>



<p>Der Vergleich ist simple und ich habe mir die Frage gestellt: Wieso nicht einfach wirklich unterschiedliche Schemes für die jeweiligen Anforderungen definieren? Eine App kann beim Browser anmelden dass sie <code>share://</code> oder <code>subscribe://</code> unterstützt und bei einem Klick auf einen entsprechenden Link, öffnet sich (statt der E-Mail App) eben die entsprechende Web-App.</p>



<p>&#8230;vor kurzem hab ich dann mal ein wenig mit <a href="http://superfeedr.com">Superfeedrs</a> <a href="https://web.archive.org/web/20121109202636/http://www.msgboy.com/">msgboy</a> herumgespielt und entdeckt dass es bei HTML5 wirklich <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/timers.html#custom-handlers">Custom-Schemes</a> gibt die man frei definieren kann!</p>



<p>Mit folgendem Befehl kann man beim Browser einen eigenen Protocol-Handler setzen:</p>


<pre class="wp-block-code"><span><code class="hljs language-javascript">navigator.registerProtocolHandler(<span class="hljs-string">'web+share'</span>, <span class="hljs-string">'http://spread.ly/?url=%s'</span>, <span class="hljs-string">'Spread.ly'</span>);</code></span></pre>


<p>Alle neuen Schemes sollten mit &quot;<code>web+</code>&quot; beginnen, ausnahmen sind schon bestehende Schemes, wie z.B. &quot;<code>mailto</code>&quot;, &quot;<code>mms</code>&quot;, &quot;<code>nntp</code>&quot;, &quot;<code>rtsp</code>&quot; oder &quot;<code>webcal</code>&quot;.</p>



<p>Der passende a-Tag zum oben genannten Beispiel müsste also folgendermaßen aussehen:</p>


<pre class="wp-block-code"><span><code class="hljs language-xml"><span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">"web+share:http://pfefferle.org"</span>&gt;</span>Share this Page<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span></code></span></pre>


<p>Klickt ein User den Link, wird einfach das <code>%s</code> vom Handler mit dem <code>href</code> ersetzt und aufgerufen:</p>


<pre class="wp-block-code"><span><code class="hljs language-javascript">http:<span class="hljs-comment">//spread.ly/?url=web+share:http://pfefferle.org</span></code></span></pre>


<p>Bisher war ich ja ein großer <em>Web Intents</em> Fan (und bin es auch immer noch), aber für solche simplen Aktionen wie &quot;Share&quot;, &quot;Like&quot;, &quot;Subscribe&quot; oder &quot;Follow&quot; reicht doch ein simples Custom-Scheme vollkommen aus. Kein unnötiges JavaScript (mal abgesehen vom Registrieren des Handlers), nur ein wenig HTML. Großartig!</p>



<p>Protocol-Handler lassen sich übrigens auch abhängig vom Mime-Type setzen:</p>


<pre class="wp-block-code"><span><code class="hljs language-javascript">navigator.registerContentHandler(<span class="hljs-string">'application/atom+xml'</span>, <span class="hljs-string">'http://www.google.com/ig/add?feedurl=%s'</span>, <span class="hljs-string">'Google Reader'</span>)</code></span></pre>


<p>Bei allen Web-Dokumenten mit dem Mime-Type <code>application/atom+xml</code> sollte der Browser jetzt nachfragen ob er die URL mit dem Google-Reader öffnen soll.</p>
<p>RSS readers like you are the unsung heroes of the internet. Keep up the good work!</p>]]></content:encoded>
					
					<wfw:commentRss>https://notiz.blog/2012/11/09/custom-web-schemes/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>I’ve made a WordPress Theme… kind of…</title>
		<link>https://notiz.blog/2012/09/06/ive-made-a-wordpress-theme-kind-of/</link>
					<comments>https://notiz.blog/2012/09/06/ive-made-a-wordpress-theme-kind-of/#comments</comments>
		
		<dc:creator><![CDATA[Matthias Pfefferle]]></dc:creator>
		<pubDate>Thu, 06 Sep 2012 20:54:53 +0000</pubDate>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[FediBlog]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Microformats]]></category>
		<category><![CDATA[Schema.org]]></category>
		<category><![CDATA[SemPress]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[websemantics]]></category>
		<guid isPermaLink="false">http://notizblog.org/?p=4459</guid>

					<description><![CDATA[Eigentlich wollte ich ja nur einen Toolbox Fork erstellen und das Theme um Microdata/Schema.org erweitern und dann hat es doch so viel Spaß gemacht, dass ein eigenes Theme daraus wurde&#8230; Ich präsentiere euch SemPress, das hoch semantische HTML5 Theme mit ner Prise Responsiveness und SEO 🙂 Das Theme verschönert übrigens das notizBlog und ist aus [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Eigentlich wollte ich ja nur einen <a href="https://web.archive.org/web/20130514011147/http://wordpress.org:80/extend/themes/toolbox">Toolbox</a> Fork erstellen und das Theme um Microdata/Schema.org erweitern und dann hat es doch so viel Spaß gemacht, dass ein eigenes Theme daraus wurde&#8230; Ich präsentiere euch <a href="https://github.com/pfefferle/SemPress">SemPress</a>, das hoch semantische HTML5 Theme mit ner Prise Responsiveness und <abbr title="Search Engine Optimization">SEO</abbr> 🙂</p>



<p>Das Theme verschönert übrigens das <a href="https://notiz.blog/">notizBlog</a> und ist aus folgenden Gründen großartig:</p>



<h2 class="wp-block-heading">POSH &#8211; Plain Old Semantic HTML5</h2>



<div class="wp-block-image"><figure class="alignright"><img decoding="async" src="https://notiz.blog/wp-content/uploads/2011/07/HTML5_Logo_256.png" alt="HTML5 Logo"/></figure></div>



<p>SemPress basiert, wie schon erwähnt, auf Toolbox und die HTML5 Struktur wurde auch weitestgehend beibehalten. Ich habe lediglich einige Tags in (meiner Meinung nach) semantisch passendere getauscht. Im Detail:</p>



<ul class="wp-block-list"><li><strong><a href="https://web.archive.org/web/20200910003307/http://diveintohtml5.info/semantics.html#new-elements">Semantische Tags</a></strong> &#8211; Ich habe einfach mal geschaut welche Tags Toolbox noch nicht unterstützt und sie dann, hoffentlich richtig eingebaut :).</li><li><strong><a href="https://web.archive.org/web/20200724153910/http://diveintohtml5.info/forms.html">HTML5 Input-Types</a></strong> &#8211; SemPress unterstützt einige der neuen Input-Types wie z.B. &#8222;search&#8220;, &#8222;email&#8220; und &#8222;url&#8220;. Mehr dazu in einem älteren <a href="https://notiz.blog/2011/07/11/html5-input-types-form-validierung-und-wordpress/">Artikel</a>.</li></ul>



<h2 class="wp-block-heading">Websemantics</h2>



<p>Eigentlich hab ich das ganze Projekt (wie schon erwähnt) ja nur gestartet, damit ich mal wieder was produktives mit Microformats machen und Schema.org lernen kann. Hier also der <em>Semantic Overload</em>:</p>



<ul class="wp-block-list"><li><strong>Microformats</strong> &#8211; Toolbox selbst unterstütz Microformats ja schon von Haus aus und ich musste nur kleine hAtom fixes und die richtigen <em><a href="http://microformats.org/wiki/rel-profile">Profile Header</a></em> setzen.</li><li><strong>Microformats v2</strong> &#8211; Ich bin zwar <a href="https://notiz.blog/2012/07/03/microformats-the-next-generation/">kein großer Fan</a> von <a href="http://microformats.org/wiki/microformats_2">Microformats 2</a>, aber ich wollte testen wie leicht sich das Theme um neues HTML-Classes erweitern lässt und wie viel Arbeit es bedeutet. SemPress unterstützt hCard 2 und hAtom 2.</li><li><strong>Microdata/Schema.org</strong> &#8211; Ähnlich wie bei Microformats v2 wollte ich testen wie schwer es ist, <a href="https://schema.org/">Schema.org</a> einzubauen. Das Theme unterstützt <code>http://schema.org/Blog</code>, <code>http://schema.org/BlogPosting</code> and <code>http://schema.org/Person</code>.</li></ul>



<p>Was ich noch gerne einbauen will ist hMedia für alle möglichen Medieninhalte wie z.B. auch WordPress &#8222;Images&#8220; und &#8222;Galleries&#8220; und natürlich auch das Schema.org Pendant.</p>



<h2 class="wp-block-heading">WordPress Features</h2>



<div class="wp-block-image"><figure class="alignright"><img decoding="async" src="https://notiz.blog/wp-content/uploads/2007/03/wordpress-logo.png" alt=""/></figure></div>



<p>Neben dem ganzen semantik Gedöns, hab ich natürlich auch ne Menge WordPress-Features eingebaut.</p>



<ul class="wp-block-list"><li><strong>Post Thumbnails</strong> &#8211; SemPress unterstützt diverse <em><a href="https://codex.wordpress.org/Post_Thumbnails">Post-Thumbnail</a></em> Größen (maximal 600px) und versucht sie bestmöglich darzustellen. Alle Bilder kleiner als 480px werden z.B. mit <em>float right</em> in den Text integriert.</li><li><strong>Post Types</strong> &#8211; Im Gegensatz zu Toolbox unterstützt SemPress folgende <em><a href="https://codex.wordpress.org/Post_Types">Post-Types</a></em>: &#8222;aside, status, gallery, video, audio, link, image&#8220; und fast alle haben auch ein individuelles Layout spendiert bekommen.</li><li>&#8230;außerdem: <a href="http://codex.wordpress.org/Translating_WordPress">Localization</a>, Sidebar-Widgets und die WordPress&#8216; Navigation Menu.</li></ul>



<p>Mal schauen ob ich noch ein <a href="http://en.support.wordpress.com/themes/custom-header-image/">Custom-Header-Image</a> mit rein nehmen werde&#8230;</p>



<h2 class="wp-block-heading">CSS und Design</h2>



<p>Zuerst sollte SemPress gar kein Design bekommen, aber man muss ja auch bei CSS und Fonts auf dem Laufenden bleiben! Ich mach das ja schließlich nicht zum Spaß sondern zur Fortbildung :). Da ich aber kein wirklich großer Designer bin, hab ich mir ne Menge Ideen und CSS bei folgenden großartigen Projekten ausgeliehen:</p>



<ul class="wp-block-list"><li>Das Basis-CSS hab&#8216; ich von <a href="https://web.archive.org/web/20130514011147/http://wordpress.org:80/extend/themes/toolbox">Toolbox</a> übernommen.</li><li>Die Tabellen, Buttons, Input-Felder, Code-Boxen habe ich mir bei <em><a href="https://getbootstrap.com/2.3.2/">Twitters Bootstrap</a></em> gemopst.</li><li>Die Icons, die vor einigen Artikeln erscheinen (z.B. die vom Typ Video oder Audio) sind von von <a href="https://fontawesome.com/">Font Awesome</a>.</li><li>Danke auch an <a href="http://html5boilerplate.com/">HTML5 Boilerplate</a> für einige Ideen!</li></ul>



<p>Ein paar weitere Kleinigkeiten (auf die ich auch bissle Stolz bin):</p>



<ul class="wp-block-list"><li>Man kann den bei dem &lt;code /&gt;-Tag die Programmiersprache mir <code>data-programming-language="PHP"</code> setzen und es wird wie folgend angezeigt: <code>&lt;?php echo "Hallo Welt"; ?&gt;</code>     </li><li>Das Theme kommt komplett ohne Bilder aus.</li></ul>



<h2 class="wp-block-heading">Responsive Design</h2>



<p>Das Theme sollte eigentlich und hoffentlich auf jedem Gerät gut aussehen und unterstützt drei++ Breiten:</p>



<ul class="wp-block-list"><li>Volle Breite + Sidebar rechts</li><li>Volle Breite + Zweispaltige Sidebar am Ende der Seite</li><li>Variable Breite (die, für das Gerät beste Breite mit einem) + Einspaltige Sidebar am Ende der Seite.</li></ul>



<p>Außerdem passt sich das Menü automatisch an die Größen an und das ganz ohne JavaScript! &#8230;beim Drop-Down Menü gibt es zwar noch keine Möglichkeit das Menü wieder zu schließen, aber wer will das schon 😉</p>



<h2 class="wp-block-heading">Was jetzt noch?</h2>



<p>Da mir das themen ne Menge Spaß gemacht hat werde ich wohl auch weiterhin fleißig an SemPress weiter basteln und es noch semantischer und WordPressiger machen. Falls ihr irgendwelche Fehler findet oder Dinge besser könnt wie ich&#8230; bitte helft mir und <a href="https://github.com/pfefferle/SemPress">forkt SemPress</a>!</p>
<p>You are a master of efficiency! By using RSS, you save time and avoid distractions. 👏</p>]]></content:encoded>
					
					<wfw:commentRss>https://notiz.blog/2012/09/06/ive-made-a-wordpress-theme-kind-of/feed/</wfw:commentRss>
			<slash:comments>7</slash:comments>
		
		
			</item>
		<item>
		<title>HTML5, Input-Types, Form-Validierung und WordPress</title>
		<link>https://notiz.blog/2011/07/11/html5-input-types-form-validierung-und-wordpress/</link>
					<comments>https://notiz.blog/2011/07/11/html5-input-types-form-validierung-und-wordpress/#comments</comments>
		
		<dc:creator><![CDATA[Matthias Pfefferle]]></dc:creator>
		<pubDate>Mon, 11 Jul 2011 18:46:37 +0000</pubDate>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[child theme]]></category>
		<category><![CDATA[FediBlog]]></category>
		<category><![CDATA[hCard]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[input-types]]></category>
		<category><![CDATA[Plugin]]></category>
		<guid isPermaLink="false">http://notizblog.org/?p=3840</guid>

					<description><![CDATA[Dass HTML5 ein paar neue input-types definiert, habe ich durch die hcard-input-brainstorming so am Rande auf geschnappt, mir aber nichts weiter dabei gedacht&#8230; Durch Zufall bin ich heute aber über folgenden Tweet von Sylvia Egger gestoßen: Just implemented native #HTML5 form validation on #wp comments form &#8211; it&#x27; quite simple &#38; should be in #wp [&#8230;]]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image alignright" style="max-width:50%"><img decoding="async" src="https://notiz.blog/wp-content/uploads/2011/07/HTML5_Logo_256.png" alt="HTML5 Logo" /></figure>



<p>Dass HTML5 ein paar neue input-types definiert, habe ich durch die <a href="http://microformats.org/wiki/hcard-input-brainstorming#HTML5_input_types">hcard-input-brainstorming</a> so am Rande auf geschnappt, mir aber nichts weiter dabei gedacht&#8230; Durch Zufall bin ich heute aber über folgenden <a href="http://twitter.com/sprungmarkers/status/90305500108947457">Tweet</a> von Sylvia Egger gestoßen:</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
    <p>Just implemented native <a rel="tag" class="hashtag u-tag u-category" href="https://notiz.blog/tag/html5/">#HTML5</a> form validation on #wp comments form &#8211; it&#x27; quite simple &amp; should be in #wp default theme</p>
</blockquote>



<p>und habe bissle recherchiert&#8230; Mit den neuen Input-Types ist es doch tatsächlich möglich Input-Felder über den Browser validieren zu lassen&#8230; Ich bin begeistert! 🙂</p>



<p>Trägt man beispielsweise eine Nicht-Email-Adresse in folgendes Feld&#8230;</p>


<pre class="wp-block-code"><span><code class="hljs language-xml"><span class="hljs-tag">&lt;<span class="hljs-name">input</span> <span class="hljs-attr">type</span>=<span class="hljs-string">"email"</span> /&gt;</span></code></span></pre>


<p>bekommt man&#8230;</p>



<figure class="wp-block-image aligncenter"><img decoding="async" src="https://notiz.blog/wp-content/uploads/2011/07/firefox-email-validation.jpg" alt="Email Validation im Firefox" /></figure>



<p>Schön wenn man sich noch über solche Kleinigkeiten freuen kann oder 😉</p>



<p>Lange rede kurzer Sinn: Da WordPress alle Formulare an zentraler Stelle definiert, ist es ziemlich einfach sie mit ein paar neuen Input-Types zu versehen. Mit dem folgenden Code wird das Kommentar-Formular mit den Typen &quot;email&quot; und &quot;url&quot; und das Suchformular mit dem Typ &quot;search&quot; (funktioniert nur in den WebKit-Browsern) erweitert:</p>



<p><ins><strong>Code-Update</strong>: <a href="https://yatil.de/">Eric Eggert</a> hat mich in den <a href="https://notiz.blog/2011/07/11/html5-input-types-form-validierung-und-wordpress/#comment-173210">Kommentaren</a> darauf hingewiesen, dass man mit <code>&lt;input required /&gt;</code> auch noch die Pflichtfelder validieren kann. Danke!</ins></p>



<p><ins><strong>Code-Update 2</strong>: Dank <a href="https://www.im-tal.net">maxe</a> werden jetzt auch die WordPress Settings berücksichtigt (Comment author must fill out name and e-mail) und das &quot;Comment&quot;-Feld ist natürlich auch <code>required</code></ins></p>


<pre class="wp-block-code"><span><code class="hljs language-xml"><span class="php"><span class="hljs-meta">&lt;?php</span>
<span class="hljs-comment">/*
Plugin Name: html5 input-types
Plugin URI: https://notiz.blog/
Description: Adds the new HTML5 input-types to WordPress' default forms
Version: 0.1
Author: pfefferle
Author URI: https://notiz.blog/
*/</span>

add_filter(<span class="hljs-string">"comment_form_default_fields"</span>, <span class="hljs-string">"change_comment_input_types"</span>);

<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">change_comment_input_types</span><span class="hljs-params">($fields)</span> </span>{
  <span class="hljs-keyword">if</span> (get_option(<span class="hljs-string">"require_name_email"</span>, <span class="hljs-keyword">false</span>)) {
    $fields&#91;<span class="hljs-string">'author'</span>] = preg_replace(<span class="hljs-string">'/&lt;input/'</span>, <span class="hljs-string">'&lt;input required'</span>, $fields&#91;<span class="hljs-string">'author'</span>]);
    $fields&#91;<span class="hljs-string">'email'</span>] = preg_replace(<span class="hljs-string">'/"text"/'</span>, <span class="hljs-string">'"email" required'</span>, $fields&#91;<span class="hljs-string">'email'</span>]);
  } <span class="hljs-keyword">else</span> {
    $fields&#91;<span class="hljs-string">'email'</span>] = preg_replace(<span class="hljs-string">'/"text"/'</span>, <span class="hljs-string">'"email"'</span>, $fields&#91;<span class="hljs-string">'email'</span>]);
  }

  $fields&#91;<span class="hljs-string">'url'</span>] = preg_replace(<span class="hljs-string">'/"text"/'</span>, <span class="hljs-string">'"url"'</span>, $fields&#91;<span class="hljs-string">'url'</span>]);

  <span class="hljs-keyword">return</span> $fields;
}

add_filter(<span class="hljs-string">"get_search_form"</span>, <span class="hljs-string">"change_search_form_input_types"</span>);

<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">change_search_form_input_types</span><span class="hljs-params">($form)</span> </span>{
  <span class="hljs-keyword">return</span> preg_replace(<span class="hljs-string">'/"text"/'</span>, <span class="hljs-string">'"search"'</span>, $form);
}

add_filter(<span class="hljs-string">"comment_form_field_comment"</span>, <span class="hljs-string">"change_comment_field_input_types"</span>);

<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">change_comment_field_input_types</span><span class="hljs-params">($field)</span> </span>{
  <span class="hljs-keyword">return</span> preg_replace(<span class="hljs-string">'/&lt;textarea/'</span>, <span class="hljs-string">'&lt;textarea required'</span>, $field);
}
<span class="hljs-meta">?&gt;</span></span></code></span></pre>


<p>Funktioniert als Plugin und in Child-Themes (einfach in die <code>functions.php</code> kopieren).</p>



<p>Danke auch an <a href="https://marcgoertz.de/">Marc Görtz</a> der mich über <a href="http://twitter.com/dreamseer">Twitter</a> reichlich mit Links zu dem Thema versorgt hat:</p>



<ul class="wp-block-list">
    <li><a href="https://web.archive.org/web/20200724153910/http://diveintohtml5.info/forms.html">A Form of Madness (den hab ich selber gefunden)</a></li>
    <li><a href="https://web.archive.org/web/20110307142356/http://html5pattern.com/">HTML5 Pattern</a></li>
    <li><a href="https://web.archive.org/web/20100629022438/http://flowplayer.org/tools/demos/validator/index.html">Fallback jQuery Validator</a></li>
</ul>



<p>Testen könnt ihr das übrigens hier auf notiz.blog.</p>
<p>Congratulations on being an RSS reader! You are part of an elite group of people who know how to stay updated in style.</p>]]></content:encoded>
					
					<wfw:commentRss>https://notiz.blog/2011/07/11/html5-input-types-form-validierung-und-wordpress/feed/</wfw:commentRss>
			<slash:comments>6</slash:comments>
		
		
			</item>
		<item>
		<title>microformats v2</title>
		<link>https://notiz.blog/2011/04/27/microformats-v2/</link>
					<comments>https://notiz.blog/2011/04/27/microformats-v2/#respond</comments>
		
		<dc:creator><![CDATA[Matthias Pfefferle]]></dc:creator>
		<pubDate>Wed, 27 Apr 2011 21:27:07 +0000</pubDate>
				<category><![CDATA[OpenWeb Notizen]]></category>
		<category><![CDATA[hCard]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Microformats]]></category>
		<guid isPermaLink="false">http://notizblog.org/?p=3635</guid>

					<description><![CDATA[microformats v2 &#8211; Ein paar Gedanken zur Weiterentwicklung der microformats, von etlichen Vereinfachungen (&#60;span class="vcard">Karl Napf&#60;/span>) bis hin zu eventuellen Namespaces (&#8222;h-*&#8220; for root class names, e.g. &#8222;h-card&#8220;, &#8222;h-event&#8220;, &#8222;h-entry&#8220;).]]></description>
										<content:encoded><![CDATA[
<p><a href="http://microformats.org/wiki/microformats-2">microformats v2</a> &#8211; Ein paar Gedanken zur Weiterentwicklung der <strong>microformats</strong>, von etlichen Vereinfachungen (<code>&lt;span class="vcard">Karl Napf&lt;/span></code>) bis hin zu eventuellen Namespaces (&#8222;h-*&#8220; for root class names, e.g. &#8222;h-card&#8220;, &#8222;h-event&#8220;, &#8222;h-entry&#8220;).</p>
<p>Congratulations on being an RSS reader! You are part of an elite group of people who know how to stay updated in style.</p>]]></content:encoded>
					
					<wfw:commentRss>https://notiz.blog/2011/04/27/microformats-v2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>OpenWeb-Notizen: Own Your Data, HTML5, DataPortability</title>
		<link>https://notiz.blog/2011/01/20/openweb-notizen-own-your-data-html5-dataportability/</link>
					<comments>https://notiz.blog/2011/01/20/openweb-notizen-own-your-data-html5-dataportability/#comments</comments>
		
		<dc:creator><![CDATA[Matthias Pfefferle]]></dc:creator>
		<pubDate>Thu, 20 Jan 2011 20:42:35 +0000</pubDate>
				<category><![CDATA[Open Web]]></category>
		<category><![CDATA[OpenWeb Notizen]]></category>
		<category><![CDATA[DataPortability]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Microdata]]></category>
		<category><![CDATA[RDFa]]></category>
		<category><![CDATA[W3C]]></category>
		<guid isPermaLink="false">http://notizblog.org/?p=3499</guid>

					<description><![CDATA[How to "Own Your Data", aus HTML5 wird HTML und die DataPortability Org. hat neue Chefs]]></description>
										<content:encoded><![CDATA[
<p><a href="https://web.archive.org/web/20110219211234/http://notes.tomhenrich.com:80/post/2675663088/own-your-data">Own Your Data</a></p>



<p>Am Tag als delicious starb machten sich alle (zu recht) sorgen um ihre Bookmarks und es entfachte eine kleine Diskussion unter Geeks, wo denn die eigenen Daten am sichersten wären: Jeremy Keith verwaltet seine Bookmarks nun selbst und schickt nur Kopien an delicious &amp; Co., Tantek Celik tweetet auf seinem eigenen Webspace und sendet nur eine Kopie an Twitter, &#8230;<br/> Früher hatte man seine Daten in Sozialen Netzen und benutzte APIs um sie in die Sidebar des eigenen Blogs zu bekommen und jetzt läuft alles andersrum?</p>



<p><a href="https://blog.whatwg.org/html-is-the-new-html5">HTML is the new HTML5</a>, <a href="https://www.w3.org/News/2011.html#entry-8992">W3C Introduces an HTML5 Logo</a></p>



<p>HTML5 heißt jetzt nur noch HTML und zur Feier der Umbenennung spendiert das W3C ein neues HTML<strong>5</strong> Logo 🙂 Großartig!</p>



<p><a href="http://www.w3.org/News/2011.html#entry-8990">Eight HTML5 Drafts Updated</a></p>



<p>&#8230;außerdem wurden die <em>Working Drafts</em> von RDFa 1.1 und Microdata angepasst.</p>



<p><a href="https://web.archive.org/web/20170716082316/http://blog.dataportability.org/2011/01/17/2011-election-results/">2011 Steering Committee Election Results</a></p>



<p>Die DataPortability Org. hat die neuen Chefs gewählt und bekannt gegeben&#8230; Mr. Topf is leider raus 🙁</p>
<p>RSS readers like you are the secret sauce of the internet. Keep rocking and staying informed!</p>]]></content:encoded>
					
					<wfw:commentRss>https://notiz.blog/2011/01/20/openweb-notizen-own-your-data-html5-dataportability/feed/</wfw:commentRss>
			<slash:comments>11</slash:comments>
		
		
			</item>
		<item>
		<title>OpenWeb-Notizen: Mozilla, Thunderbird, AOL, Webfinger</title>
		<link>https://notiz.blog/2010/08/11/openweb-notizen-mozilla-thunderbird-aol-webfinger/</link>
					<comments>https://notiz.blog/2010/08/11/openweb-notizen-mozilla-thunderbird-aol-webfinger/#comments</comments>
		
		<dc:creator><![CDATA[Matthias Pfefferle]]></dc:creator>
		<pubDate>Wed, 11 Aug 2010 18:26:51 +0000</pubDate>
				<category><![CDATA[Open Web]]></category>
		<category><![CDATA[OpenWeb Notizen]]></category>
		<category><![CDATA[AOL]]></category>
		<category><![CDATA[federated social web]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[Thunderbird]]></category>
		<category><![CDATA[WebFinger]]></category>
		<category><![CDATA[XAuth]]></category>
		<guid isPermaLink="false">http://notizblog.org/?p=3129</guid>

					<description><![CDATA[Letztes Mal sind die Notizen dank zu viel Arbeit und StarCraft II leider ausgefallen, aber das wird nicht einreißen&#8230; hoffe ich zumindest 🙂 Der Browser und das Federated Web Ein großes Problem im dezentralen Web: Der gemeine User kann nichts mit Identifiern anfangen, weder mit URLs (wie es NoseRub versucht hat) noch mit E-Mail Adressen [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Letztes Mal sind die <em>Notizen</em> dank <em>zu viel Arbeit</em> und <em>StarCraft II</em> leider ausgefallen, aber das wird nicht einreißen&#8230; hoffe ich zumindest 🙂</p>



<h2 class="wp-block-heading">Der Browser und das <em>Federated Web</em></h2>



<p>Ein großes Problem im dezentralen Web: Der gemeine User kann nichts mit <em>Identifiern</em> anfangen, weder mit URLs (wie es NoseRub versucht hat) noch mit E-Mail Adressen (wie es Status.Net mit Webfinger versucht). Austin King zeigt auf <em>Mozilla Webdev</em> wie man dem, mit Hilfe des Browsers und der JavaScript Methoden <em>registerProtocolHandler</em> und <em>postMessage</em>, entgegen wirken kann. <a href="https://web.archive.org/web/20120808043826/http://xauth.org:80/">XAuth</a> funktioniert übrigens nach einem ähnlichen Prinzip.</p>



<p>» <a href="http://blog.mozilla.com/webdev/2010/07/26/registerprotocolhandler-enhancing-the-federated-web/">RegisterProtocolHandler Enhancing the Federated Web</a></p>



<h2 class="wp-block-heading">Thunderbird Contacts</h2>



<p>Endlich gibt es das <em>Contacts</em>-Addon auch für den Thunerbird, denn da gehören sie ja auch hin.</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>The goal of add-on is to experiment in evolving the address book of Thunderbird beyond what it currently is today. Thunderbird Contacts isn’t a standalone address book, instead it understands that your contacts live on the web as much as they do inside Thunderbird. The add-on can pull in contact data from various services where your contacts already exist.</p></blockquote>



<p>» <a href="https://web.archive.org/web/20120403104228/http://mozillalabs.com:80/messaging/2010/08/04/thunderbird-contacts">Thunderbird Contacts</a></p>



<h2 class="wp-block-heading">AOL und der Webfinger</h2>



<p>AOL implementiert Webfinger für <em>@aol.com</em> und <em>@aim.com</em>.</p>


<pre class="wp-block-code"><span><code class="hljs language-xml"><span class="hljs-meta">&lt;?xml version='1.0' encoding='UTF-8'?&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">XRD</span> <span class="hljs-attr">xmlns</span>=<span class="hljs-string">'http://docs.oasis-open.org/ns/xri/xrd-1.0'</span>&gt;</span>
  <span class="hljs-comment">&lt;!-- Host-wide Information --&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">Link</span> <span class="hljs-attr">rel</span>=<span class="hljs-string">'http://specs.openid.net/auth/2.0/provider'</span> <span class="hljs-attr">href</span>=<span class="hljs-string">'https://api.screenname.aol.com/auth/openidServer'</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">Title</span>&gt;</span>OpenID 2.0 Provider<span class="hljs-tag">&lt;/<span class="hljs-name">Title</span>&gt;</span>
  <span class="hljs-tag">&lt;/<span class="hljs-name">Link</span>&gt;</span>
  <span class="hljs-comment">&lt;!-- Resource-specific Information --&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">Link</span> <span class="hljs-attr">rel</span>=<span class="hljs-string">'lrdd'</span> <span class="hljs-attr">template</span>=<span class="hljs-string">'https://api.screenname.aol.com/auth/describe?uri={uri}'</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">Title</span>&gt;</span>Resource Descriptor<span class="hljs-tag">&lt;/<span class="hljs-name">Title</span>&gt;</span>
  <span class="hljs-tag">&lt;/<span class="hljs-name">Link</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">XRD</span>&gt;</span></code></span></pre>


<p>» <a href="http://practicalid.blogspot.com/2010/08/webfinger-enabled-for-aolcom.html">Webfinger enabled for @aol.com</a></p>
<p>Hey there, RSS reader! You’re cool. Keep being awesome! 😎</p>]]></content:encoded>
					
					<wfw:commentRss>https://notiz.blog/2010/08/11/openweb-notizen-mozilla-thunderbird-aol-webfinger/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
		<item>
		<title>selfMICROFORMATS, selfRDFa, selfMICRODATA und so&#8230;</title>
		<link>https://notiz.blog/2010/06/08/selfmicroformats-selfrdfa-selfmicrodata-und-so/</link>
					<comments>https://notiz.blog/2010/06/08/selfmicroformats-selfrdfa-selfmicrodata-und-so/#comments</comments>
		
		<dc:creator><![CDATA[Matthias Pfefferle]]></dc:creator>
		<pubDate>Tue, 08 Jun 2010 19:54:27 +0000</pubDate>
				<category><![CDATA[Open Web]]></category>
		<category><![CDATA[eRDF]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Microdata]]></category>
		<category><![CDATA[Microformats]]></category>
		<category><![CDATA[RDFa]]></category>
		<category><![CDATA[selfhtml]]></category>
		<category><![CDATA[wiki]]></category>
		<guid isPermaLink="false">http://notizblog.org/?p=2593</guid>

					<description><![CDATA[Ich hab vor Ewigkeiten mal einen Themenschwerpunkt: Websemantics im SELFHTML-Wiki angelegt&#8230; Das Wiki wäre doch der perfekte Platz für DIE deutsche Microformats/RDFa/Microdata-Standardreferenz! (wenn nicht bei SELFHTML wo dann?) Vielleicht hat ja jemand Lust mir bei der Befüllung etwas zu helfen (ich hab meine eigene freie Zeit etwas überschätzt)? Eventuell spendet ja auch jemand einen schon [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Ich hab vor <em>Ewigkeiten</em> mal einen <a href="https://wiki.selfhtml.org/wiki/Themen:Websemantics">Themenschwerpunkt: Websemantics</a> im <a href="http://wiki.selfhtml.org/">SELFHTML-Wiki</a> angelegt&#8230; Das Wiki wäre doch der perfekte Platz für <strong>DIE</strong> deutsche Microformats/RDFa/Microdata-Standardreferenz! (wenn nicht bei SELFHTML wo dann?)</p>



<p>Vielleicht hat ja jemand Lust mir bei der Befüllung etwas zu helfen (ich hab meine eigene freie Zeit etwas überschätzt)? Eventuell spendet ja auch jemand einen schon fertigen Artikel/Blogbeitrag den wir als Basis nehmen könnten.</p>
<p>Congratulations on being an RSS reader! You are part of an elite group of people who know how to stay updated in style.</p>]]></content:encoded>
					
					<wfw:commentRss>https://notiz.blog/2010/06/08/selfmicroformats-selfrdfa-selfmicrodata-und-so/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
			</item>
		<item>
		<title>Microdata aus HTML5 verbannt</title>
		<link>https://notiz.blog/2010/03/24/microdata-aus-html5-verbannt/</link>
					<comments>https://notiz.blog/2010/03/24/microdata-aus-html5-verbannt/#comments</comments>
		
		<dc:creator><![CDATA[Matthias Pfefferle]]></dc:creator>
		<pubDate>Wed, 24 Mar 2010 20:39:17 +0000</pubDate>
				<category><![CDATA[Open Web]]></category>
		<category><![CDATA[FediBlog]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Microdata]]></category>
		<category><![CDATA[Microformats]]></category>
		<category><![CDATA[Mikroformate]]></category>
		<category><![CDATA[RDFa]]></category>
		<category><![CDATA[XHTML]]></category>
		<guid isPermaLink="false">http://notizblog.org/?p=2383</guid>

					<description><![CDATA[Die RDFa Community hat es geschafft: Microdata ist seit einigen Monaten kein fester Bestandteil mehr von HTML5! Man verpasst damit leider die einmalige Chance, RDFa und Microformats als festen Bestandteil von HTML zu veröffentlichen und damit die größtmögliche Verbreitung zu erreichen&#8230; keine Erweiterungen&#8230; keine Hacks&#8230; reines HTML! Warum ich so an der Microdata Idee festhalte? [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Die <abbr title="Resource Description Framework - in - attributes">RDFa</abbr> Community hat es <a href="https://www.w3.org/html/wg/tracker/issues/76">geschafft</a>: <a href="http://dev.w3.org/html5/md/Overview.html">Microdata</a> ist seit einigen Monaten kein fester Bestandteil mehr von <abbr title="Hyper Text Markup Language">HTML</abbr>5! Man verpasst damit leider die einmalige Chance, <a href="http://www.w3.org/TR/xhtml-rdfa-primer/">RDFa</a> und <a href="http://microformats.org/">Microformats</a> als festen Bestandteil von HTML zu veröffentlichen und damit die größtmögliche Verbreitung zu erreichen&#8230; keine Erweiterungen&#8230; keine Hacks&#8230; reines <abbr title="Hypertext Markup Language">HTML</abbr>!</p>



<p>Warum ich so an der <em>Microdata</em> Idee festhalte? Frei nach der <a href="http://microformats.org/about">Microformats Ideologie</a>: &#8222;Paving the cow paths&#8220; sollte man sich bei der Entwicklung eines neuen Standards hauptsächlich am Nutzerverhalten orientieren: Wenn es für ein Problem noch keinen <em>Standard</em> gab, wie hat man sich bisher beholfen?</p>



<p>Yahoo!s <a href="https://notiz.blog/2008/06/19/searchmonkey-fuer-anwender/">Search-Monkey</a> meint: mit <a href="http://microformats.org/">Microformats</a>!</p>



<ul class="wp-block-list"><li><strong>NUR</strong> <a href="http://search.yahoo.com/search?p=searchmonkey%3Acom.yahoo.page.uf.hcard">hCard</a>: 1,970,000,000</li><li><a href="http://search.yahoo.com/search?p=searchmonkey%3Acom.yahoo.page.rdf.erdf">eRDF</a> + <a href="http://search.yahoo.com/search?p=searchmonkey%3Acom.yahoo.page.rdf.rdfa">RDFa</a>: 1,470,000,000</li></ul>



<p>&#8230;und ich kann mich nur <a href="https://notiz.blog/2009/06/18/microdata-semantisches-html5/">wiederholen</a>:</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>Microdata ist für mich die gelungene Weiterentwicklung der Microformats-Idee unter Berücksichtigung von RDFa und prinzipiell lassen sich auch beide Standards mit Microdata umsetzen.</p></blockquote>



<p>Naja&#8230; falls sich keine der oben genannten Semantiken durchsetzen sollte, freue ich mich schon auf folgendes:</p>


<pre class="wp-block-code"><span><code class="hljs language-xml"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">itemscope</span>=<span class="hljs-string">""</span>
     <span class="hljs-attr">itemtype</span>=<span class="hljs-string">"http://microformats.org/profile/hcard"</span> 
     <span class="hljs-attr">xmlns:vCard</span>=<span class="hljs-string">"http://www.w3.org/2006/vcard/ns#"</span>   
     <span class="hljs-attr">about</span>=<span class="hljs-string">"http://www.example.com"</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"vcard"</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">itemprop</span>=<span class="hljs-string">"fn"</span> <span class="hljs-attr">property</span>=<span class="hljs-string">"vCard:FN"</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"fn"</span>&gt;</span>
    Max Mustermann
  <span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span></code></span></pre>


<p>(via <a href="https://web.archive.org/web/20210511030645/https://www.bnode.org/blog/2010/01/26/microdata-semantic-markup-for-both-rdfers-and-non-rdfers">Benjamin Nowack</a>)</p>
<p>RSS readers like you are the unsung heroes of the internet. Keep up the good work!</p>]]></content:encoded>
					
					<wfw:commentRss>https://notiz.blog/2010/03/24/microdata-aus-html5-verbannt/feed/</wfw:commentRss>
			<slash:comments>8</slash:comments>
		
		
			</item>
		<item>
		<title>Microdata: Update und Usability-Studie</title>
		<link>https://notiz.blog/2009/10/10/microdata-update-und-usability-studie/</link>
					<comments>https://notiz.blog/2009/10/10/microdata-update-und-usability-studie/#comments</comments>
		
		<dc:creator><![CDATA[Matthias Pfefferle]]></dc:creator>
		<pubDate>Sat, 10 Oct 2009 15:20:50 +0000</pubDate>
				<category><![CDATA[Open Web]]></category>
		<category><![CDATA[hCard]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Microdata]]></category>
		<category><![CDATA[Microformats]]></category>
		<category><![CDATA[RDFa]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[Usability]]></category>
		<category><![CDATA[vCard]]></category>
		<category><![CDATA[XHTML]]></category>
		<guid isPermaLink="false">http://notizblog.org/?p=2059</guid>

					<description><![CDATA[Endlich denkt beim Thema &#8222;Usability&#8220; auch mal jemand an die Entwickler 🙂 Google hat über die letzten Wochen eine Usability-Studie zu Microdata durchgeführt und die Spezifikation wurde auch gleich entsprechend der Ergebnisse angepasst. Die Änderungen: Aus item wird itemscope. Der Typ wird über itemtype und nicht mehr über item bzw. itemscope angegeben. Das Attribut itemid [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p><em>Endlich denkt beim Thema &#8222;Usability&#8220; auch mal jemand an die Entwickler 🙂</em></p>



<p>Google hat über die letzten Wochen eine <a href="https://blog.whatwg.org/usability-testing-html5">Usability-Studie zu Microdata</a> durchgeführt und die <a href="https://html.spec.whatwg.org/multipage/microdata.html">Spezifikation</a> wurde auch gleich entsprechend der Ergebnisse angepasst.</p>


<pre class="wp-block-code"><span><code class="hljs language-xml"><span class="hljs-tag">&lt;<span class="hljs-name">address</span> <span class="hljs-attr">itemscope</span> <span class="hljs-attr">itemtype</span>=<span class="hljs-string">"http://microformats.org/profile/hcard"</span>&gt;</span>
 <span class="hljs-tag">&lt;<span class="hljs-name">strong</span> <span class="hljs-attr">itemprop</span>=<span class="hljs-string">"fn"</span>&gt;</span>Alfred Person<span class="hljs-tag">&lt;/<span class="hljs-name">strong</span>&gt;</span>
 <span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">itemprop</span>=<span class="hljs-string">"adr"</span> <span class="hljs-attr">itemscope</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">itemprop</span>=<span class="hljs-string">"street-address"</span>&gt;</span>1600 Amphitheatre Parkway<span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span> <span class="hljs-tag">&lt;<span class="hljs-name">br</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">itemprop</span>=<span class="hljs-string">"street-address"</span>&gt;</span>Building 43, Second Floor<span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span> <span class="hljs-tag">&lt;<span class="hljs-name">br</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">itemprop</span>=<span class="hljs-string">"locality"</span>&gt;</span>Mountain View<span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span>,
  <span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">itemprop</span>=<span class="hljs-string">"region"</span>&gt;</span>CA<span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span> <span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">itemprop</span>=<span class="hljs-string">"postal-code"</span>&gt;</span>94043<span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span>
 <span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">address</span>&gt;</span></code></span></pre>


<p>Die Änderungen:</p>



<ul class="wp-block-list">
	<li>Aus <strong><code>item</code></strong> wird <strong><code>itemscope</code></strong>.</li>
	<li>Der Typ wird über <strong><code>itemtype</code></strong> und nicht mehr über <strong><code>item</code></strong> bzw. <strong><code>itemscope</code></strong> angegeben.</li>
	<li>Das Attribut <strong><code>itemid</code></strong> wurde eingeführt, um z.B. auf ISBN-Nummer zu verweisen <strong><code>itemid="urn:isbn:0-330-34032-8"</code></strong>.</li>
</ul>



<p>Über den neuen <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#itemfor">HTML-Tag</a> <strong><code>&lt;itemref /></code></strong> (alternativ: <strong><code>&lt;itemfor /></code></strong>) werde ich im zweiten Teil von &#8222;<em>Microdata – wie Microformats bloß besser…</em>&#8220; eingehen (<a href="https://notiz.blog/2009/08/10/microdata-wie-microformats-bloss-besser-teil-1/">zum ersten Teil</a>).</p>



<p>Jetzt muss ich nur noch meine alten Artikel zu Microdata anpassen&#8230; das hat man nun davon, wenn man über Drafts berichtet 😉</p>
<p>Hey there, RSS reader! You’re cool. Keep being awesome! 😎</p>]]></content:encoded>
					
					<wfw:commentRss>https://notiz.blog/2009/10/10/microdata-update-und-usability-studie/feed/</wfw:commentRss>
			<slash:comments>6</slash:comments>
		
		
			</item>
		<item>
		<title>Microdata &#8211; wie Microformats bloß besser&#8230; (Teil 1)</title>
		<link>https://notiz.blog/2009/08/10/microdata-wie-microformats-bloss-besser-teil-1/</link>
					<comments>https://notiz.blog/2009/08/10/microdata-wie-microformats-bloss-besser-teil-1/#comments</comments>
		
		<dc:creator><![CDATA[Matthias Pfefferle]]></dc:creator>
		<pubDate>Mon, 10 Aug 2009 20:30:32 +0000</pubDate>
				<category><![CDATA[Open Web]]></category>
		<category><![CDATA[abbr design pattern]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[include pattern]]></category>
		<category><![CDATA[Microdata]]></category>
		<category><![CDATA[Microformats]]></category>
		<category><![CDATA[Mikroformate]]></category>
		<category><![CDATA[value class pattern]]></category>
		<category><![CDATA[XHTML]]></category>
		<guid isPermaLink="false">http://notizblog.org/?p=1790</guid>

					<description><![CDATA[Der Inhalt wurde an die neusten Änderungen der Microdata-Spezifikation angepasst. Letztes Update 30.01.2010. Microdata – wie Microformats bloß besser… (Teil 2): über &#8222;Namenskollisionen und Namespaces&#8220; und &#8222;Informationen Referenzieren&#8220; Wie schon erwähnt, vereint Microdata die Vorzüge von RDFa und Microformats in einem Standard&#8230; aber nicht nur das, Microdata (in Verbindung mit HTML5) bietet auch einige schicke [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Der Inhalt wurde an die <a href="https://notiz.blog/2009/10/10/microdata-update-und-usability-studie/">neusten Änderungen der Microdata-Spezifikation</a> angepasst. Letztes Update 30.01.2010.
	<a href="https://notiz.blog/2011/06/26/microdata-wie-microformats-blos-besser-teil-2/">Microdata – wie Microformats bloß besser… (Teil 2)</a>: über &#8222;Namenskollisionen und Namespaces&#8220; und &#8222;Informationen Referenzieren&#8220;
</p>



<p>Wie schon <a href="https://notiz.blog/2009/06/18/microdata-semantisches-html5/">erwähnt</a>, vereint Microdata die Vorzüge von <a href="http://rdfa.info">RDFa</a> und <a href="http://microformats.org">Microformats</a> in einem Standard&#8230; aber nicht nur das, Microdata (in Verbindung mit HTML5) bietet auch einige schicke Lösungen für diverse <a href="http://microformats.org/wiki/issues">Microformats-Problemchen</a>.</p>



<h4 class="wp-block-heading">Das <em>abbr-design-pattern</em> oder das <em>value-class-pattern</em></h4>



<p><strong>Microformats:</strong></p>



<p>Das <em><a href="http://microformats.org/wiki/abbr-design-pattern">abbr-design-pattern</a></em> ist bisher wohl das <a href="http://www.google.de/search?q=microformats+accessibility+abbr">umstrittenste Pattern</a> im <a href="http://microformats.org/wiki/Main_Page">Microformats-Wiki</a>. Grund für die Kritik an dem Pattern ist die etwas <a href="https://notiz.blog/2008/06/24/bbc-und-das-alte-haccessibility-problemchen/">unorthodoxe Verwendung</a> des <code>&lt;abbr&gt;</code> Tags um maschinenlesbare Meta-Informationen bereit zu stellen.</p>


<pre class="wp-block-code"><span><code class="hljs language-xml"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"vevent"</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">abbr</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"dtstart"</span> <span class="hljs-attr">title</span>=<span class="hljs-string">"2007-10-05"</span>&gt;</span>October 5<span class="hljs-tag">&lt;/<span class="hljs-name">abbr</span>&gt;</span>
  ...
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span></code></span></pre>


<p>Eine erste Alternative aus der Microformats-Community ist das <em><a href="http://microformats.org/wiki/value-class-pattern">value-class-pattern</a></em>, das zwar das Accessibility-Problem &#8222;behebt&#8220; aber noch lange keine Perfekte Lösung bietet.</p>


<pre class="wp-block-code"><span><code class="hljs language-xml"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"vevent"</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">class</span>=<span class="hljs-string">'dtstart'</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">class</span>=<span class="hljs-string">'value-title'</span> <span class="hljs-attr">title</span>=<span class="hljs-string">'2007-10-05'</span>&gt;</span> <span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span>
    October 5
  <span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span>
  ...
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span></code></span></pre>


<p>Der HTML-Code wird durch weitere Elemente unnötig aufgeblasen und das Pattern basiert auf teilweise leeren Elementen.</p>



<p><strong>Microdata/HTML5:</strong></p>



<p>In HTML5 gibt es dagegen ein spezielles Tag um Zeit und Datum sowohl user als auch maschinenlesbar zu machen.</p>


<pre class="wp-block-code"><span><code class="hljs language-xml"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">itemscope</span>
  <span class="hljs-attr">itemtype</span>=<span class="hljs-string">"http://microformats.org/profile/hcalendar"</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">time</span> <span class="hljs-attr">itemprop</span>=<span class="hljs-string">"dtstart"</span> <span class="hljs-attr">datetime</span>=<span class="hljs-string">"2007-10-05"</span>&gt;</span>October 5<span class="hljs-tag">&lt;/<span class="hljs-name">time</span>&gt;</span>
  ...
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span></code></span></pre>


<h4 class="wp-block-heading">Reine Meta-Informationen</h4>



<p><strong>Microformats:</strong></p>



<p>Eigentlich spricht es gegen die Prinzipien der Microformats-Idee, reine Metadaten zu verwenden: </p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>Visible data = more accurate data. By designing for humans first and making the data presentable (thus viewed and <em>verified</em> by humans), the data is inevitably more accurate, not only to begin with (as errors are easily/quickly noticed by those viewing the pages/sites), but over time as well; in that changes are noticed, and if data becomes out-of-date or obsolete, that&#8217;s more likely to be noticed as well. This is in direct contrast to &#8222;side files&#8220; and invisible data like that contained in <code>&lt;meta&gt;</code> tags.<br> &#8212; <a href="http://microformats.org/wiki/principles#effects_of_principles">Tantek Çelik</a></p></blockquote>



<p>&#8230;aber <a href="http://microformats.org/wiki/geo">GEO-Daten</a> sind z.B. Informationen die der Benutzer nicht unbedingt sehen muss.</p>


<pre class="wp-block-code"><span><code class="hljs language-xml"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"geo"</span>&gt;</span>
 <span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"latitude"</span>&gt;</span>37.386013<span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span>
 <span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"longitude"</span>&gt;</span>-122.082932<span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span></code></span></pre>


<p><strong>Microdata/HTML5:</strong></p>



<p>In HTML5 gibt es für dieses Problem eine recht schicke Lösung: Laut der <a href="http://dev.w3.org/html5/spec/Overview.html#flow-content">Spezifikation</a> sind &lt;meta /&gt;-Tags im kompletten Quellcode (auch im <code>body</code>) erlaubt.</p>


<pre class="wp-block-code"><span><code class="hljs language-xml"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">itemscope</span> 
 <span class="hljs-attr">itemtype</span>=<span class="hljs-string">"http://microformats.org/profile/hcard#geo"</span>&gt;</span>
 <span class="hljs-tag">&lt;<span class="hljs-name">meta</span> <span class="hljs-attr">itemprop</span>=<span class="hljs-string">"latitude"</span> <span class="hljs-attr">content</span>=<span class="hljs-string">"37.386013"</span> /&gt;</span>
 <span class="hljs-tag">&lt;<span class="hljs-name">meta</span> <span class="hljs-attr">itemprop</span>=<span class="hljs-string">"longitude"</span> <span class="hljs-attr">content</span>=<span class="hljs-string">"-122.082932"</span> /&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span></code></span></pre>


<h4 class="wp-block-heading">Fazit</h4>



<p>Selbst wenn sich <a href="https://html.spec.whatwg.org/multipage/microdata.html">Microdata</a> (item und itemprop) nicht durchsetzen sollte, sind &lt;meta&gt; und <a href="https://notiz.blog/2008/07/30/html5-is-made-for-microformats/">&lt;time&gt;</a> schon ein echter &#8222;Segen&#8220; für die <a href="http://microformats.org">Microformats-Community</a> 🙂</p>



<p>Im zweiten Teil nehm&#8216; ich mir das <a href="http://microformats.org/wiki/include-pattern">include-pattern</a> und das Problem der möglichen <a href="http://meiert.com/en/blog/20070913/microformats-and-pseudo-namespaces/">Namens</a>&#8211;<a href="http://meiert.com/en/blog/20090716/microformats-key-flaws/">Kollisionen</a> vor. <a href="https://notiz.blog/2011/06/26/microdata-wie-microformats-blos-besser-teil-2/">Microdata – wie Microformats bloß besser… (Teil 2)</a>: über &#8222;Namenskollisionen und Namespaces&#8220; und &#8222;Informationen Referenzieren&#8220;</p>
<p>Thanks for reading this post via RSS. RSS is great, and you’re great for using it. ♥️</p>]]></content:encoded>
					
					<wfw:commentRss>https://notiz.blog/2009/08/10/microdata-wie-microformats-bloss-besser-teil-1/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
		<item>
		<title>RDFa wird wohl doch in HTML5 integriert</title>
		<link>https://notiz.blog/2009/07/16/rdfa-wird-wohl-doch-in-html5-integriert/</link>
					<comments>https://notiz.blog/2009/07/16/rdfa-wird-wohl-doch-in-html5-integriert/#comments</comments>
		
		<dc:creator><![CDATA[Matthias Pfefferle]]></dc:creator>
		<pubDate>Wed, 15 Jul 2009 22:38:29 +0000</pubDate>
				<category><![CDATA[Open Web]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Microdata]]></category>
		<category><![CDATA[Microformats]]></category>
		<category><![CDATA[posh]]></category>
		<category><![CDATA[RDFa]]></category>
		<category><![CDATA[Semantic HTML]]></category>
		<guid isPermaLink="false">http://notizblog.org/?p=1778</guid>

					<description><![CDATA[Manu Sporny und die RDFa Task Force haben es doch noch nicht geschafft, Ian Hickson davon zu überzeugen RDFa in HTML5 zu integrieren und versuchen es jetzt im Alleingang. Es gibt auch schon einen ersten Editors Draft von HTML5+RDFa. Besonders spannend finde ich folgenden Abschnitt aus Manu Spornys Blogpost zu dem neuen Draft: I specifically [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Manu Sporny und die <a href="https://www.w3.org/2001/sw/BestPractices/HTML/">RDFa Task Force</a> haben es <del>doch noch</del> <ins>nicht</ins> geschafft, Ian Hickson davon zu überzeugen RDFa in HTML5 zu integrieren und <ins>versuchen es jetzt im Alleingang.</ins> Es gibt auch schon einen ersten <a href="https://web.archive.org/web/20220407131357/https://dev.w3.org/html5/rdfa/rdfa-module.html"><em>Editors Draft</em> von <em>HTML5+RDFa</em></a>.</p>



<p>Besonders spannend finde ich folgenden Abschnitt aus <a href="https://web.archive.org/web/20100328135732/http://blog.digitalbazaar.com:80/2009/07/13/html5rdfa/2/">Manu Spornys Blogpost zu dem neuen Draft</a>:</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
	<p>I specifically did not remove the Microdata section from the HTML5+RDFa specification because it provides competition for RDFa &#8211; competition is a good thing. It forces the RDFa Task Force to re-think some assumptions we’ve made and to see if we can provide both backwards-compatibility and some of the features provided via Microformats as well as Ian’s Microdata proposal.</p>
</blockquote>



<p>Ich versteh das jetzt mal so, dass <del>endlich beide Parteien verstanden haben</del> <ins>die RDFa Task Force verstanden hat</ins> dass sowohl <a href="https://notiz.blog/2008/03/02/rdfa-basics/">RDFa</a> als auch <a href="https://notiz.blog/2006/11/20/microformats/">Microformats</a> ihre Daseinsberechtigung haben und <a href="https://html.spec.whatwg.org/multipage/microdata.html">Microdata</a> die Vorteile beider Standards schön vereint.</p>



<p>Mal schaun ob ich die Tage mal etwas Zeit finde, die einzelnen Standards nochmal detaillierter Vorzustellen bzw. zu Vergleichen und nochmal zu beschreiben warum <a href="https://notiz.blog/2009/06/18/microdata-semantisches-html5/">die Idee hinter Microdata so großartig ist</a>!</p>



<p>via <a href="https://web.archive.org/web/20100328135732/http://blog.digitalbazaar.com:80/2009/07/13/html5rdfa/2/">Manu Sporny</a></p>
<p>Hey there, RSS reader! You’re one of a special few, choosing this old-school yet awesome way of staying informed. Kudos!</p>]]></content:encoded>
					
					<wfw:commentRss>https://notiz.blog/2009/07/16/rdfa-wird-wohl-doch-in-html5-integriert/feed/</wfw:commentRss>
			<slash:comments>7</slash:comments>
		
		
			</item>
		<item>
		<title>Microdata &#8211; Semantisches HTML5</title>
		<link>https://notiz.blog/2009/06/18/microdata-semantisches-html5/</link>
					<comments>https://notiz.blog/2009/06/18/microdata-semantisches-html5/#comments</comments>
		
		<dc:creator><![CDATA[Matthias Pfefferle]]></dc:creator>
		<pubDate>Thu, 18 Jun 2009 21:23:08 +0000</pubDate>
				<category><![CDATA[Open Web]]></category>
		<category><![CDATA[FediBlog]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Microdata]]></category>
		<category><![CDATA[Microformats]]></category>
		<category><![CDATA[Mikroformate]]></category>
		<category><![CDATA[posh]]></category>
		<category><![CDATA[RDFa]]></category>
		<category><![CDATA[Semantic HTML]]></category>
		<guid isPermaLink="false">http://notizblog.org/?p=1700</guid>

					<description><![CDATA[Der Inhalt wure an die neusten Änderungen der Microdata-Spezifikation angepasst. Letztes Update 30.01.2010. In dem Punkt, dass HTML semantischer werden muss, ist sich die Web-Welt einig, nur das &#8222;Wie&#8220; ist noch nicht ganz klar. Aus verschiedenen Gründen (die alle sehr, sehr technisch sind) ist die WHATWG-Community bzw. Ian Hickson im speziellen, nicht sehr begeistert von [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Der Inhalt wure an die <a href="https://notiz.blog/2009/10/10/microdata-update-und-usability-studie/">neusten Änderungen der Microdata-Spezifikation</a> angepasst. Letztes Update 30.01.2010.
</p>



<p>In dem Punkt, dass HTML semantischer werden muss, ist sich die Web-Welt einig, nur das &#8222;Wie&#8220; ist noch nicht ganz klar. Aus <a href="http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-May/019602.html">verschiedenen Gründen</a> (die alle sehr, sehr technisch sind) ist die <abbr title="Web Hypertext Application Technology Working Group"><a href="https://whatwg.org/">WHATWG</a></abbr>-Community bzw. <a href="https://ln.hixie.ch/">Ian Hickson</a> im speziellen, nicht sehr begeistert von dem bisherigen De-facto-Standard <a href="https://en.wikipedia.org/wiki/RDFa"><abbr title="Resource Description Framework - in - attributes">RDFa</abbr></a> und hat deshalb vor ein paar Wochen <a href="https://html.spec.whatwg.org/multipage/microdata.html">Microdata</a> als eine mögliche Alternative vorgestellt.</p>



<p>Microdata-Objekte bestehen eigentlich <em>nur</em> aus einer Vielzahl von Key/Value-Paaren. Ein <em>Object</em> wird durch einen umschließenden HTML-Tag mit einem <code>itemscope</code>-Attribut gekennzeichnet und hat mehrere <em>Properties</em> ausgezeichnet durch <code>itemprop</code>-Attribute.</p>


<pre class="wp-block-code"><span><code class="hljs language-xml"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">itemscope</span>&gt;</span>
 <span class="hljs-tag">&lt;<span class="hljs-name">p</span>&gt;</span>Mein Name ist <span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">itemprop</span>=<span class="hljs-string">"name"</span>&gt;</span>Matthias<span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span>.<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span></code></span></pre>


<p>Microdata ist für mich die gelungene Weiterentwicklung der <a href="http://microformats.org/">Microformats-Idee</a> unter Berücksichtigung von RDFa und prinzipiell lassen sich auch beide Standards mit Microdata umsetzen. Wie generell von HTML5 gewohnt, kann man auch Microdata auf viele verschiedene Weisen benutzen ohne den Standard zu verletzen.</p>



<h4 class="wp-block-heading">Microdata im Microformats-Stil</h4>



<p>Um z.B. eine <a href="http://microformats.org/wiki/hcard">hCard</a> mit Microdata abzubilden muss man eigentlich nur die bisher verwendeten <code>class</code> durch <code>itemprop</code>-Attribute zu ersetzen und mit <code>itemtype</code> das Format festlegen.</p>


<pre class="wp-block-code"><span><code class="hljs language-xml"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">itemscope</span> <span class="hljs-attr">itemtype</span>=<span class="hljs-string">"http://microformats.org/profile/hcard"</span>&gt;</span>
 <span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">itemprop</span>=<span class="hljs-string">"fn"</span>&gt;</span>Matthias Pfefferle<span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span>
 <span class="hljs-tag">&lt;<span class="hljs-name">img</span> <span class="hljs-attr">itemprop</span>=<span class="hljs-string">"photo"</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"avatar.png"</span> <span class="hljs-attr">alt</span>=<span class="hljs-string">"Avatar"</span> /&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span></code></span></pre>


<p>HTML5 und Microdata bieten außerdem eine ganze Reihe weiterer Tags und Attribute die alle bisherigen Microformats-Probleme beheben sollten. Aber darauf werde ich in einem extra Artikel noch detaillierter darauf eingehen.</p>



<h4 class="wp-block-heading">Microdata im RDFa-Stil</h4>



<p><code>item</code> und <code>itemprop</code> können aber auch durch URIs (ähnlich wie RDFa) ausgezeichnet werden und würden sich dadurch relativ leicht (durch z.B. <abbr title="Gleaning Resource Descriptions from Dialects of Languages"><a href="https://en.wikipedia.org/wiki/GRDDL">GRDDL</a></abbr>) in klassisches <abbr title="Resource Description Framework"><a href="https://en.wikipedia.org/wiki/Resource_Description_Framework">RDF</a></abbr> konvertieren lassen.</p>


<pre class="wp-block-code"><span><code class="hljs language-xml"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">itemscope</span> <span class="hljs-attr">itemtype</span>=<span class="hljs-string">"http://www.w3.org/2001/vcard-rdf/3.0#"</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">itemprop</span>=<span class="hljs-string">"http://www.w3.org/2001/vcard-rdf/3.0#fn"</span>&gt;</span>
    Matthias Pfefferle
  <span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">img</span> <span class="hljs-attr">itemprop</span>=<span class="hljs-string">"http://www.w3.org/2001/vcard-rdf/3.0#photo"</span>
       <span class="hljs-attr">src</span>=<span class="hljs-string">"avatar.png"</span> <span class="hljs-attr">alt</span>=<span class="hljs-string">"Avatar"</span> /&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span></code></span></pre>


<h4 class="wp-block-heading">Fazit</h4>



<p>Trotz <a href="https://notiz.blog/2009/05/16/html5-wird-kein-rdfa-unterstuetzen/">anfänglicher Skepsis</a> bin ich immer begeisterter von dem neuen HTML5 Draft! Microdata fühlt sich einfach viel mehr nacht HTML an&#8230; </p>


<pre class="wp-block-code"><span><code class="hljs language-xml"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">itemscope</span> <span class="hljs-attr">itemtype</span>=<span class="hljs-string">"http://microformats.org/profile/hcard"</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">itemprop</span>=<span class="hljs-string">"url"</span> <span class="hljs-attr">href</span>=<span class="hljs-string">"https://notiz.blog"</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">itemprop</span>=<span class="hljs-string">"fn"</span>&gt;</span>Matthias Pfefferle<span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span>
  <span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span></code></span></pre>


<p>&#8230;als RDFa.</p>


<pre class="wp-block-code"><span><code class="hljs language-xml"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">xmlns:foaf</span>=<span class="hljs-string">"http://xmlns.com/foaf/0.1/"</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">typeof</span>=<span class="hljs-string">"foaf:Person"</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">property</span>=<span class="hljs-string">"foaf:name"</span> <span class="hljs-attr">rel</span>=<span class="hljs-string">"foaf:homepage"</span> <span class="hljs-attr">href</span>=<span class="hljs-string">"https://notiz.blog"</span>&gt;</span>
      Matthias
    <span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span>
  <span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span></code></span></pre>


<p>Trotzdem hoffe ich, dass man sich doch noch irgendwie einigen kann und sich vielleicht in der Mitte trifft. Zwei neue HTML-Spezifikationen (XHTML2 &amp; (X)HTML5) sind schon verwirrend genug, da brauchen wir nicht auch noch zwei unterschiedliche <em>Semantik-HTML</em>-Standards</p>
<p>Congratulations on being an RSS reader! You are part of an elite group of people who know how to stay updated in style.</p>]]></content:encoded>
					
					<wfw:commentRss>https://notiz.blog/2009/06/18/microdata-semantisches-html5/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
			</item>
		<item>
		<title>HTML5 wird kein RDFa unterstützen</title>
		<link>https://notiz.blog/2009/05/16/html5-wird-kein-rdfa-unterstuetzen/</link>
					<comments>https://notiz.blog/2009/05/16/html5-wird-kein-rdfa-unterstuetzen/#comments</comments>
		
		<dc:creator><![CDATA[Matthias Pfefferle]]></dc:creator>
		<pubDate>Sat, 16 May 2009 06:01:49 +0000</pubDate>
				<category><![CDATA[Open Web]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Microdata]]></category>
		<category><![CDATA[Microformats]]></category>
		<category><![CDATA[RDFa]]></category>
		<category><![CDATA[WaSP]]></category>
		<category><![CDATA[WHATWG]]></category>
		<category><![CDATA[XHTML]]></category>
		<guid isPermaLink="false">http://notizblog.org/?p=1566</guid>

					<description><![CDATA[In einem kürzlich veröffentlichten Interview für das Web Standards Project (kurz WaSP) hat Ian Hickson (Editor der HTML5 Spezifikation) die Hoffnung RDFa würde auch von HTML5 unterstützt werden, endgültig zu nichte gemacht. Auf die Frage, wie es denn mit Microformats/RDFa in HTML5 aussehe antwortet Hickson: Microformats is natively supported in HTML5, just like it was [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>In einem kürzlich veröffentlichten <a href="http://www.webstandards.org/2009/05/13/interview-with-ian-hickson-editor-of-the-html-5-specification/">Interview für das Web Standards Project</a> (kurz WaSP) hat <a href="https://ln.hixie.ch/">Ian Hickson</a> (Editor der <a href="http://www.whatwg.org/specs/web-apps/current-work/">HTML5 Spezifikation</a>) die Hoffnung RDFa würde auch von HTML5 unterstützt werden, endgültig zu nichte gemacht.</p>



<p>Auf die Frage, wie es denn mit Microformats/RDFa in HTML5 aussehe antwortet Hickson:</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
	<p>Microformats is natively supported in HTML5, just like it was in HTML 4, because Microformats use the built-in extension mechanisms of HTML.</p>
	<p>We considered RDFa long and hard (in fact this is an issue that’s a hot topic right now), but at the end of the day, while some people really like it, I don’t think it strikes the right balance between power and ease of authoring. For example, it uses namespaces and prefixes, which by and large confuse authors to no end. Just recently though I proposed something of a compromise which takes some of RDFa’s better ideas and puts them into HTML 5, so hopefully that will take care of the main needs that caused people to invent RDFa. We’ll see.</p>
</blockquote>



<p>Die erwähnte Alternative (die ich mir gerade zu Gemühte führe) lautet übrigens <a href="https://html.spec.whatwg.org/multipage/microdata.html">Microdata</a>, welche RDFa so sehr ähnelt, dass man eigentlich auch gleich RDFa hätte einsetzen können&#8230; Schade!</p>
<p>RSS readers like you are the unsung heroes of the internet. Keep up the good work!</p>]]></content:encoded>
					
					<wfw:commentRss>https://notiz.blog/2009/05/16/html5-wird-kein-rdfa-unterstuetzen/feed/</wfw:commentRss>
			<slash:comments>6</slash:comments>
		
		
			</item>
		<item>
		<title>HTML5 is made for Microformats</title>
		<link>https://notiz.blog/2008/07/30/html5-is-made-for-microformats/</link>
					<comments>https://notiz.blog/2008/07/30/html5-is-made-for-microformats/#comments</comments>
		
		<dc:creator><![CDATA[Matthias Pfefferle]]></dc:creator>
		<pubDate>Wed, 30 Jul 2008 18:34:52 +0000</pubDate>
				<category><![CDATA[Open Web]]></category>
		<category><![CDATA[abbr design pattern]]></category>
		<category><![CDATA[GEO]]></category>
		<category><![CDATA[hCalendar]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Microformats]]></category>
		<category><![CDATA[RDFa]]></category>
		<category><![CDATA[Semantic HTML]]></category>
		<category><![CDATA[XHTML]]></category>
		<guid isPermaLink="false">http://notizblog.org/?p=1003</guid>

					<description><![CDATA[Naja, nicht wirklich aber immerhin hat es RDFa bis dato nicht in die HTML5 Spezifikation geschafft. Es gibt zwar einen Milestone&#8230; The HTML WG is encouraged to provide a mechanism to permit independently developed vocabularies such as Internationalization Tag Set (ITS), Ruby, and RDFa to be mixed into HTML documents. &#8230;aber wer weiß wie lange [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Naja, nicht wirklich aber immerhin hat es <a href="http://www.w3.org/TR/xhtml-rdfa-primer/">RDFa</a> bis dato nicht in die <a href="http://www.w3.org/html/wg/html5/">HTML5 Spezifikation</a> geschafft. Es gibt zwar einen <a href="http://www.w3.org/2007/03/HTML-WG-charter.html#deliverables">Milestone</a>&#8230;</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>The HTML WG is encouraged to provide a mechanism to permit independently developed vocabularies such as Internationalization Tag Set (ITS), Ruby, and RDFa to be mixed into HTML documents.</p></blockquote>



<p>&#8230;aber wer weiß wie lange das noch dauert. Das heißt wohl, dass die Microformats noch eine gewisse Zeit lang als Übergangslösung her halten müssen. Aber das ist ne andere Geschichte&#8230;</p>



<p>Eigentlich wollte ich auf zwei HTML5 &#8211; Elemente eingehen, die eine schicke Alternative zu den bisherigen (in <a href="http://microformats.org/wiki/geo">vielen</a> <a href="http://microformats.org/wiki/hCal">Microformats</a> verwendeten) <a href="http://microformats.org/wiki/abbr-design-pattern">abbr-design-pattern</a> bietet.</p>



<h4 class="wp-block-heading">Der &lt;time />-Tag</h4>



<p>Das <code><a href="http://www.w3.org/html/wg/html5/#time">time</a></code> Element ermöglicht das kennzeichnen eines Datums in z.B. Blogposts o.Ä.</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>The primary use cases for these elements are for marking up publication dates e.g. in blog entries, and for marking event dates in hCalendar markup.</p></blockquote>



<p>Also:</p>


<pre class="wp-block-code"><span><code class="hljs language-xml"><span class="hljs-tag">&lt;<span class="hljs-name">time</span> <span class="hljs-attr">datetime</span>=<span class="hljs-string">"2006-09-23"</span>&gt;</span>a Saturday<span class="hljs-tag">&lt;/<span class="hljs-name">time</span>&gt;</span></code></span></pre>


<p>statt:</p>


<pre class="wp-block-code"><span><code class="hljs language-xml"><span class="hljs-tag">&lt;<span class="hljs-name">abbr</span> <span class="hljs-attr">title</span>=<span class="hljs-string">"2006-09-23"</span>&gt;</span>a Saturday<span class="hljs-tag">&lt;/<span class="hljs-name">abbr</span>&gt;</span></code></span></pre>


<p>Ein <a href="http://microformats.org/wiki/hCal">hCalendar</a> könnte dann so aussehen:</p>


<pre class="wp-block-code"><span><code class="hljs language-xml"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"vevent"</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"summary"</span>&gt;</span>event title<span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">time</span> <span class="hljs-attr">datetime</span>=<span class="hljs-string">"2006-09-23"</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"dtstart dtend"</span>&gt;</span>a Saturday<span class="hljs-tag">&lt;/<span class="hljs-name">time</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span></code></span></pre>


<h4 class="wp-block-heading">Custom data attributes (data-)</h4>



<p>Ein <em>custom data attribute</em> ist ein frei benutzbares Attribut um Elemente mit <a href="https://de.wikipedia.org/wiki/Metadaten">Metadaten</a> anzureichern. Die einzige Vorgabe ist, dass es mit <code>data-</code> beginnen muss. Ein Beispiel:</p>


<pre class="wp-block-code"><span><code class="hljs language-xml"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"monkey"</span> <span class="hljs-attr">data-arms</span>=<span class="hljs-string">"2"</span>
     <span class="hljs-attr">data-legs</span>=<span class="hljs-string">"2"</span> <span class="hljs-attr">data-race</span>=<span class="hljs-string">"chimp"</span>&gt;</span>
  Cheetah
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span></code></span></pre>


<p>Ideal auch als <code>&lt;abbr /></code>-Ersatz bei z.B. dem <a href="http://microformats.org/wiki/geo">Geo-Microformat</a>.</p>



<p>Also:</p>


<pre class="wp-block-code"><span><code class="hljs language-xml"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"geo"</span> <span class="hljs-attr">data-latitude</span>=<span class="hljs-string">"49.5483"</span> <span class="hljs-attr">data-longitude</span>=<span class="hljs-string">"8.6661"</span>&gt;</span>Weinheim<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span></code></span></pre>


<p>statt:</p>


<pre class="wp-block-code"><span><code class="hljs language-xml"><span class="hljs-tag">&lt;<span class="hljs-name">abbr</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"geo"</span> <span class="hljs-attr">title</span>=<span class="hljs-string">"49.5483;8.6661"</span>&gt;</span>Weinheim<span class="hljs-tag">&lt;/<span class="hljs-name">abbr</span>&gt;</span></code></span></pre>


<h4 class="wp-block-heading">Fazit</h4>



<p>(X)HTML (egal ob XHTML2 mit RDFa oder X/HTML5) wird also definitiv ein semantisches Feuerwerk, ganz im Sinne von Tim Berners Lee&#8230;</p>



<p>Ich freu mich 🙂</p>
<p>RSS readers like you are the secret sauce of the internet. Keep rocking and staying informed!</p>]]></content:encoded>
					
					<wfw:commentRss>https://notiz.blog/2008/07/30/html5-is-made-for-microformats/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
	</channel>
</rss>
