{"id":43,"date":"2012-08-06T19:43:56","date_gmt":"2012-08-06T19:43:56","guid":{"rendered":"https:\/\/ai.hasebox.de\/index.php\/2012\/08\/06\/5-texte-formatieren-ueberschrift\/"},"modified":"2023-12-14T16:33:13","modified_gmt":"2023-12-14T16:33:13","slug":"5-texte-formatieren-ueberschrift","status":"publish","type":"post","link":"https:\/\/ai.hasebox.de\/index.php\/2012\/08\/06\/5-texte-formatieren-ueberschrift\/","title":{"rendered":"5 Texte formatieren &#8211; \u00dcberschrift"},"content":{"rendered":"<p>&nbsp;<\/p>\n<h1 style=\"margin: 0px; padding: 0px; color: #6e7376; font-family: 'Lucida Grande', arial, verdana, sans-serif; word-spacing: 1px;\">Texte formatieren \u2013 \u00dcberschrift in HTML<\/h1>\n<p style=\"margin: 0px; padding: 0px 0px 1em; font-family: 'Lucida Grande', arial, verdana, sans-serif; font-size: 14px; line-height: 21px; word-spacing: 1px;\">HTML-TAGs f\u00fcr \u00dcberschriften stellen die grundlegendsten Gliederungsm\u00f6glichkeiten f\u00fcr Texte dar. Ein Text wird durch Einsatz der verschiedenen \u00dcberschriftengrade sauber strukturiert.<\/p>\n<p style=\"margin: 0px; padding: 0px 0px 1em; font-family: 'Lucida Grande', arial, verdana, sans-serif; font-size: 14px; line-height: 21px; word-spacing: 1px;\">Anhand von \u00dcberschriften wird Text gegliedert und strukturiert. Dabei sind wie in einem Fachbuch verschiedene Hierarchien (Wichtigkeit) von \u00dcberschriften m\u00f6glich, z.B. Kapitel\u00fcberschrift, Abschnitts\u00fcberschriften usw.<\/p>\n<p style=\"margin: 0px; padding: 0px 0px 1em; font-family: 'Lucida Grande', arial, verdana, sans-serif; font-size: 14px; line-height: 21px; word-spacing: 1px;\">Wichtig ist der korrekte Einsatz der \u00dcberschriften! Wenn wir uns jetzt die einzelne HTML-Seite wie ein Buch vorstellen, so hat das Buch einen Titel auf dem Umschlag \u2013 vergleichbar mit der Haupt\u00fcberschrift h1 bei der HTML-Seite. Diese kommt pro Seite nur 1-mal vor (welches Buch hat mehr als einen Titel?). Der Text wird durch die verschiedenen \u00dcberschriftengrade strukturiert. Nach der Haupt\u00fcberschrift kommt eine Unter\u00fcberschrift h2 und ein Unterkapitel von h2 bekommt dann h3.<\/p>\n<p style=\"margin: 0px; padding: 0px 0px 1em; font-family: 'Lucida Grande', arial, verdana, sans-serif; font-size: 14px; line-height: 21px; word-spacing: 1px;\"><strong style=\"margin: 0px; padding: 0px;\">Negativbeispiel \u00dcberschriftenreihenfolge:<\/strong>&nbsp;man sieht oft den Fehler auf Internetseiten, dass lustig zwischen den \u00dcberschriften ohne Logik gesprungen wird. Manchmal fehlt komplett die &lt;h1&gt; &#8211; das darf nicht sein \u2013 jede HTML-Seite hat exakt 1-mal eine &lt;h1&gt;.<\/p>\n<p style=\"margin: 0px; padding: 0px 0px 1em; font-family: 'Lucida Grande', arial, verdana, sans-serif; font-size: 14px; line-height: 21px; word-spacing: 1px;\">Manchmal sieht man Spr\u00fcnge \u2013 nach dem Einsatz von &lt;h2&gt; folgt sofort die &lt;h4&gt;. Auch das darf nicht sein. \u00dcberschriften sind zum logischen Strukturieren. Warum manche \u201eHomepagebastler\u201c diese Spr\u00fcnge machen liegt daran, dass diese wegen der Ausgabegr\u00f6\u00dfe solche \u201eS\u00fcnden\u201c begehen. Aber auch hier gilt der Satz: Design wird immer \u00fcber CSS gemacht \u2013 sprich also \u00fcber CSS wird die Ausgabegr\u00f6\u00dfe der \u00dcberschrift sp\u00e4ter bestimmt.<\/p>\n<p style=\"margin: 0px; padding: 0px 0px 1em; font-family: 'Lucida Grande', arial, verdana, sans-serif; font-size: 14px; line-height: 21px; word-spacing: 1px;\">Diese TAGs sich einzupr\u00e4gen ist weder falsch noch schwer.<\/p>\n<h2 style=\"margin: 1.4em 0px 0px; padding: 0px; color: #6e7376; font-family: 'Lucida Grande', arial, verdana, sans-serif; word-spacing: 1px;\">\u00dcberschriften in HTML nutzen<\/h2>\n<p style=\"margin: 0px; padding: 0px 0px 1em; font-family: 'Lucida Grande', arial, verdana, sans-serif; font-size: 14px; line-height: 21px; word-spacing: 1px;\">Wie wird nun der HTML-TAG f\u00fcr \u00dcberschriften genutzt? Wie wir bereits bei Abs\u00e4tzen gesehen haben, werden um den Text, der die \u00dcberschrift darstellt, die entsprechenden HTML-TAGs gepackt.<\/p>\n<p style=\"margin: 0px; padding: 0px 0px 1em; font-family: 'Lucida Grande', arial, verdana, sans-serif; font-size: 14px; line-height: 21px; word-spacing: 1px;\">F\u00fcr \u00dcberschriften wird der TAG &lt;hX&gt; genutzt. Dabei steht das h f\u00fcr das engl. header = \u00dcberschrift. Das X wird durch die Wichtigkeit ersetzt. Dabei stehen f\u00fcr X 1 bis 6.<\/p>\n<ul style=\"margin: 0px; padding: 0px 0px 2em 2.2em; font-family: 'Lucida Grande', arial, verdana, sans-serif; font-size: 14px; line-height: 21px; word-spacing: 1px;\">\n<li style=\"margin: 0px; padding: 0px;\">1 ist die gr\u00f6\u00dfte und wichtigste und sollte nur 1-mal pro HTML-Seite vorkommen<\/li>\n<li style=\"margin: 0px; padding: 0px;\">&#8230;<\/li>\n<li style=\"margin: 0px; padding: 0px;\">6 die kleinste und somit unwichtigste (aber immer noch wichtiger als normaler Text)<\/li>\n<\/ul>\n<p style=\"margin: 0px; padding: 0px 0px 1em; font-family: 'Lucida Grande', arial, verdana, sans-serif; font-size: 14px; line-height: 21px; word-spacing: 1px;\">Im folgenden Quellcode sind alle 6 \u00dcberschriften untereinander, was in der Realit\u00e4t un\u00fcblich ist. Nach eine \u00dcberschrift kommt meistens ein Absatz (wenn nicht mehr). Aber das Beispiel soll auch das Aussehen der \u00dcberschriften bisher noch ohne Design zeigen.<\/p>\n<pre class=\"html5 html100\" style=\"margin: 0px 0px 1em; padding: 0em 0.8em; position: relative; border-left-color: #b4c6e0; border-left-width: 6px; border-left-style: solid; overflow: auto; font-family: monospace; font-size: 1em; line-height: 1.5em; background-color: #eeeeee; word-spacing: 1px; background-position: 100% 0%; background-repeat: no-repeat no-repeat;\"><span class=\"sc2\" style=\"margin: 0px; padding: 0px;\">&lt;<span class=\"kw2\" style=\"margin: 0px; padding: 0px; color: #3333bb; font-weight: bold;\">h1&gt;\u00dcberschriften-Ebene 1<span class=\"sc2\" style=\"margin: 0px; padding: 0px;\">&lt;<span class=\"sy0\" style=\"margin: 0px; padding: 0px;\">\/<span class=\"kw2\" style=\"margin: 0px; padding: 0px; color: #3333bb; font-weight: bold;\">h1&gt;&nbsp;<br \/><\/span><\/span><\/span><\/span><\/span><span style=\"color: #3333bb; font-weight: bold; font-size: 1em; line-height: 1.5em;\">&lt;<\/span><span class=\"kw2\" style=\"margin: 0px; padding: 0px; color: #3333bb; font-weight: bold;\">h2&gt;\u00dcberschriften-Ebene 2<span class=\"sc2\" style=\"margin: 0px; padding: 0px;\">&lt;<span class=\"sy0\" style=\"margin: 0px; padding: 0px;\">\/<span class=\"kw2\" style=\"margin: 0px; padding: 0px; color: #3333bb; font-weight: bold;\">h2&gt; <br \/><span class=\"sc2\" style=\"margin: 0px; padding: 0px;\">&lt;<span class=\"kw2\" style=\"margin: 0px; padding: 0px; color: #3333bb; font-weight: bold;\">h3&gt;\u00dcberschriften-Ebene 3<span class=\"sc2\" style=\"margin: 0px; padding: 0px;\">&lt;<span class=\"sy0\" style=\"margin: 0px; padding: 0px;\">\/<span class=\"kw2\" style=\"margin: 0px; padding: 0px; color: #3333bb; font-weight: bold;\">h3&gt; <br \/><span class=\"sc2\" style=\"margin: 0px; padding: 0px;\">&lt;<span class=\"kw2\" style=\"margin: 0px; padding: 0px; color: #3333bb; font-weight: bold;\">h4&gt;\u00dcberschriften-Ebene 4<span class=\"sc2\" style=\"margin: 0px; padding: 0px;\">&lt;<span class=\"sy0\" style=\"margin: 0px; padding: 0px;\">\/<span class=\"kw2\" style=\"margin: 0px; padding: 0px; color: #3333bb; font-weight: bold;\">h4&gt; <br \/><span class=\"sc2\" style=\"margin: 0px; padding: 0px;\">&lt;<span class=\"kw2\" style=\"margin: 0px; padding: 0px; color: #3333bb; font-weight: bold;\">h5&gt;\u00dcberschriften-Ebene 5<span class=\"sc2\" style=\"margin: 0px; padding: 0px;\">&lt;<span class=\"sy0\" style=\"margin: 0px; padding: 0px;\">\/<span class=\"kw2\" style=\"margin: 0px; padding: 0px; color: #3333bb; font-weight: bold;\">h5&gt; <br \/><span class=\"sc2\" style=\"margin: 0px; padding: 0px;\">&lt;<span class=\"kw2\" style=\"margin: 0px; padding: 0px; color: #3333bb; font-weight: bold;\">h6&gt;\u00dcberschriften-Ebene 6<span class=\"sc2\" style=\"margin: 0px; padding: 0px;\">&lt;<span class=\"sy0\" style=\"margin: 0px; padding: 0px;\">\/<span class=\"kw2\" style=\"margin: 0px; padding: 0px; color: #3333bb; font-weight: bold;\">h6&gt; <br \/><span class=\"sc2\" style=\"margin: 0px; padding: 0px;\">&lt;<span class=\"kw2\" style=\"margin: 0px; padding: 0px; color: #3333bb; font-weight: bold;\">p&gt;normaler Text in einem Absatz ...<span class=\"sc2\" style=\"margin: 0px; padding: 0px;\">&lt;<span class=\"sy0\" style=\"margin: 0px; padding: 0px;\">\/<span class=\"kw2\" style=\"margin: 0px; padding: 0px; color: #3333bb; font-weight: bold;\">p&gt;<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/pre>\n<p style=\"margin: 0px; padding: 0px 0px 1em; font-family: 'Lucida Grande', arial, verdana, sans-serif; font-size: 14px; line-height: 21px; word-spacing: 1px;\">Nach der \u00dcberschrift (End-TAG) erfolgen automatisch ein Umbruch und ein Abstand zum n\u00e4chsten Element.<\/p>\n<p>Erstelle das Verzeichnis .\/ueberschrift.<\/p>\n<p style=\"margin: 0px; padding: 0px 0px 1em; font-family: 'Lucida Grande', arial, verdana, sans-serif; font-size: 14px; line-height: 21px; word-spacing: 1px;\">Erstelle die Datei <strong>.\/ueberschrift.htm<\/strong> und erstelle wie im Beispiel 6 \u00dcberschriften deiner Wahl. Beginne mit h1.<\/p>\n<p style=\"margin: 0px; padding: 0px 0px 1em; font-family: 'Lucida Grande', arial, verdana, sans-serif; font-size: 14px; line-height: 21px; word-spacing: 1px;\"><b style=\"margin: 0px; padding: 0px;\">Negativbeispiel:<\/b><span style=\"font-family: 'Lucida Grande', arial, verdana, sans-serif;\">&nbsp;Der Gedanke, dass man innerhalb eines Absatzes eine \u00dcberschrift packt und dann der Aufbau wie folgt aussieht ist falsch!<\/span><\/p>\n<pre class=\"html5\" style=\"margin: 0px 0px 1em; padding: 0em 0.8em; position: relative; border-left-color: #b4c6e0; border-left-width: 6px; border-left-style: solid; overflow: auto; font-family: monospace; font-size: 1em; line-height: 1.5em; background-color: #eeeeee; word-spacing: 1px; background-position: 100% 0%; background-repeat: no-repeat no-repeat;\"><span class=\"sc2\" style=\"margin: 0px; padding: 0px;\">&lt;<span class=\"kw2\" style=\"margin: 0px; padding: 0px; color: #3333bb; font-weight: bold;\">p&gt;&lt;<span class=\"kw2\" style=\"margin: 0px; padding: 0px; color: #3333bb; font-weight: bold;\">h1&gt;\u00dcberschrift<span class=\"sc2\" style=\"margin: 0px; padding: 0px;\">&lt;<span class=\"sy0\" style=\"margin: 0px; padding: 0px;\">\/<span class=\"kw2\" style=\"margin: 0px; padding: 0px; color: #3333bb; font-weight: bold;\">h1&gt;&lt;<span class=\"sy0\" style=\"margin: 0px; padding: 0px;\">\/<span class=\"kw2\" style=\"margin: 0px; padding: 0px; color: #3333bb; font-weight: bold;\">p&gt;<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/pre>\n<p style=\"margin: 0px; padding: 0px 0px 1em; font-family: 'Lucida Grande', arial, verdana, sans-serif; font-size: 14px; line-height: 21px; word-spacing: 1px;\">Das ist falsch \u2013 entweder macht man einen Absatz oder man macht eine \u00dcberschrift!<\/p>\n<p style=\"margin: 0px; padding: 0px 0px 1em; font-family: 'Lucida Grande', arial, verdana, sans-serif; font-size: 14px; line-height: 21px; word-spacing: 1px;\">Richtig ist:<\/p>\n<pre class=\"html5 html50\" style=\"margin: 0px 0px 1em; padding: 0em 0.8em; position: relative; border-left-color: #b4c6e0; border-left-width: 6px; border-left-style: solid; overflow: auto; font-family: monospace; font-size: 1em; line-height: 1.5em; background-color: #eeeeee; word-spacing: 1px; background-position: 100% 0%; background-repeat: no-repeat no-repeat;\"><span class=\"sc2\" style=\"margin: 0px; padding: 0px;\">&lt;<span class=\"kw2\" style=\"margin: 0px; padding: 0px; color: #3333bb; font-weight: bold;\">h1&gt;\u00dcberschrift<span class=\"sc2\" style=\"margin: 0px; padding: 0px;\">&lt;<span class=\"sy0\" style=\"margin: 0px; padding: 0px;\">\/<span class=\"kw2\" style=\"margin: 0px; padding: 0px; color: #3333bb; font-weight: bold;\">h1&gt; <span class=\"sc2\" style=\"margin: 0px; padding: 0px;\">&lt;<span class=\"kw2\" style=\"margin: 0px; padding: 0px; color: #3333bb; font-weight: bold;\">p&gt;normaler Absatz<span class=\"sc2\" style=\"margin: 0px; padding: 0px;\">&lt;<span class=\"sy0\" style=\"margin: 0px; padding: 0px;\">\/<span class=\"kw2\" style=\"margin: 0px; padding: 0px; color: #3333bb; font-weight: bold;\">p&gt;<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/pre>\n<h2 style=\"margin: 1.4em 0px 0px; padding: 0px; color: #6e7376; font-family: 'Lucida Grande', arial, verdana, sans-serif; word-spacing: 1px;\">\u00dcbung: HTML-Seite mit \u00dcberschriften und Abs\u00e4tzen<\/h2>\n<p style=\"margin: 0px; padding: 0px 0px 1em; font-family: 'Lucida Grande', arial, verdana, sans-serif; font-size: 14px; line-height: 21px; word-spacing: 1px;\">Erstelle die Datei .\/ueberschrift2.htm<\/p>\n<p style=\"margin: 0px; padding: 0px 0px 1em; font-family: 'Lucida Grande', arial, verdana, sans-serif; font-size: 14px; line-height: 21px; word-spacing: 1px;\">Gebe den folgenden Text exakt so in den Texteditor Notepad (oder anderen einfachen Texteditor) ein. Bitte auch die Leerzeichen und die Umbr\u00fcche.<\/p>\n<p style=\"margin: 0px; padding: 0px 0px 1em; font-family: 'Lucida Grande', arial, verdana, sans-serif; font-size: 14px; line-height: 21px; word-spacing: 1px;\">Die Struktur des Textes ist:<\/p>\n<ol style=\"margin: 0px; padding: 0px 0px 2em 2.2em; font-family: 'Lucida Grande', arial, verdana, sans-serif; font-size: 14px; line-height: 21px; word-spacing: 1px;\">\n<li style=\"margin: 0px; padding: 0px;\">\u00dcberschrift 1. Ordnung: Herzlich &#8230;<\/li>\n<li style=\"margin: 0px; padding: 0px;\">Absatz: Hier finden &#8230;<\/li>\n<li style=\"margin: 0px; padding: 0px;\">\u00dcberschrift 2. Ordnung: Meine Hobbies<\/li>\n<li style=\"margin: 0px; padding: 0px;\">Absatz: Sind so zahlreich &#8230;<\/li>\n<li style=\"margin: 0px; padding: 0px;\">Absatz: Informatik macht Spass<\/li>\n<\/ol>\n<pre class=\"rahmengrau\" style=\"margin: 0px 0px 1em; padding: 0em 0.8em; position: relative; overflow: auto; font-family: monospace; font-size: 1em; line-height: 1.5em; background-color: #eeeeee; word-spacing: 1px;\">Herzlich willkommen auf meiner Seite\r\n\r\nHier findest du meine erste Homepage zum Lernen von HTML\r\n\r\nMeine Hobbies\r\n\r\nSind so zahlreich, dass es demn\u00e4chst eine weitere Seite gibt\r\n\r\nInformatik macht Spa\u00df<\/pre>\n<p style=\"margin: 0px; padding: 0px 0px 1em; font-family: 'Lucida Grande', arial, verdana, sans-serif; font-size: 14px; line-height: 21px; word-spacing: 1px;\">Nun wirds spannend. Ansehen in einem Internet Browser (z. B. Internet Explorer oder Firefox).<\/p>\n<p style=\"margin: 0px; padding: 0px 0px 1em; font-family: 'Lucida Grande', arial, verdana, sans-serif; font-size: 14px; line-height: 21px; word-spacing: 1px;\">Beide \u00dcberschriften da? Absa\u00e4tze auch? Nein &#8211; dann gehe in den Code und korrigiere! (Abspeichern &#8211; F5)<\/p>\n<p style=\"margin: 0px; padding: 0px 0px 1em; font-family: 'Lucida Grande', arial, verdana, sans-serif; font-size: 14px; line-height: 21px; word-spacing: 1px;\">&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Texte formatieren \u2013 \u00dcberschrift in HTML HTML-TAGs f\u00fcr \u00dcberschriften stellen die grundlegendsten Gliederungsm\u00f6glichkeiten f\u00fcr Texte dar. Ein Text wird durch Einsatz der verschiedenen \u00dcberschriftengrade sauber strukturiert. Anhand von \u00dcberschriften wird Text gegliedert und strukturiert. Dabei sind wie in einem Fachbuch verschiedene Hierarchien (Wichtigkeit) von \u00dcberschriften m\u00f6glich, z.B. Kapitel\u00fcberschrift, Abschnitts\u00fcberschriften usw. Wichtig ist der korrekte [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[9,47],"tags":[],"class_list":["post-43","post","type-post","status-publish","format-standard","hentry","category-html","category-html2"],"_links":{"self":[{"href":"https:\/\/ai.hasebox.de\/index.php\/wp-json\/wp\/v2\/posts\/43","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ai.hasebox.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ai.hasebox.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ai.hasebox.de\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/ai.hasebox.de\/index.php\/wp-json\/wp\/v2\/comments?post=43"}],"version-history":[{"count":1,"href":"https:\/\/ai.hasebox.de\/index.php\/wp-json\/wp\/v2\/posts\/43\/revisions"}],"predecessor-version":[{"id":394,"href":"https:\/\/ai.hasebox.de\/index.php\/wp-json\/wp\/v2\/posts\/43\/revisions\/394"}],"wp:attachment":[{"href":"https:\/\/ai.hasebox.de\/index.php\/wp-json\/wp\/v2\/media?parent=43"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ai.hasebox.de\/index.php\/wp-json\/wp\/v2\/categories?post=43"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ai.hasebox.de\/index.php\/wp-json\/wp\/v2\/tags?post=43"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}