{"id":41,"date":"2012-08-06T19:07:57","date_gmt":"2012-08-06T19:07:57","guid":{"rendered":"https:\/\/ai.hasebox.de\/index.php\/2012\/08\/06\/3-grundlagen\/"},"modified":"2023-12-14T16:33:13","modified_gmt":"2023-12-14T16:33:13","slug":"3-grundlagen","status":"publish","type":"post","link":"https:\/\/ai.hasebox.de\/index.php\/2012\/08\/06\/3-grundlagen\/","title":{"rendered":"3 Grundlagen &#8211; html &#8211; TAG"},"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;\">HTML-Grundlagen<\/h1>\n<h2 style=\"margin: 1.4em 0px 0px; padding: 0px; color: #6e7376; font-family: 'Lucida Grande', arial, verdana, sans-serif; word-spacing: 1px;\">Was ist HTML?<\/h2>\n<p>&nbsp;<\/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;\">HTML ist eine \u201eStrukturierungssprache\u201c, mit der dem Browser \u201egesagt\u201c wird, wie die Inhalte strukturiert sind: welche Bereiche (Buchstaben, W\u00f6rter, S\u00e4tze) z.B. \u00dcberschriften sind, was Abs\u00e4tze sind, was fett ausgegeben werden soll \u2013 <span style=\"color: #000000;\">HTML ist keine Programmiersprache<\/span> \u2013 man beschreibt, wie eine Seite im Browser ausgegeben werden soll (nicht mehr, nicht weniger).<\/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;\">Dazu werden \u00fcber das Internet Dateien \u00fcbertragen, die Texte und HTML-Befehle enthalten \u2013 ab jetzt als HTML-Seite bezeichnet. Das Bedeutsame dabei ist, dass die HTML-Seiten in Klartext \u00fcbertragen werden und so jeder schauen kann, wie das eigentlich funktioniert. Einfach mal im Browser auf &#8222;Ansicht -&gt; Quellcode anzeigen&#8220; gehen. Schaut man sich den Quellcode an, ist das zun\u00e4chst Verwirrende, dass zwischen den Texten noch mehr auftauchen kann.<\/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;\">Es gibt also nicht nur den eigentlichen Text, sondern auch Anweisungen, wie einzelne Textbereiche angezeigt werden sollen. Man sagt z.B. dem Browser also, diesen Text normal anzeigen und nun zeige ab hier die Schrift hervorgehoben an. Ab jetzt wird der Text fett ausgegeben. Ein paar Worte sp\u00e4ter dann sagt man wieder dem Browser, aber hier die Hervorhebung wieder ausschalten.<\/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;\">In HTML also haben wie verschiedene Befehle (HTML-TAGs) f\u00fcr:<\/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;\">verschiedene \u00dcberschriften<\/li>\n<li style=\"margin: 0px; padding: 0px;\">Abs\u00e4tze<\/li>\n<li style=\"margin: 0px; padding: 0px;\">Hervorhebungen wie Fett bzw. Kursiv<\/li>\n<li style=\"margin: 0px; padding: 0px;\">verschiedene Aufz\u00e4hlungen<\/li>\n<li style=\"margin: 0px; padding: 0px;\">und verschiedene Befehle mehr um Inhalte zu Strukturieren<\/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;\">Das geschieht \u00fcber HTML-Befehle bzw. aus dem englischen den HTML-TAGs.<\/p>\n<h2 style=\"margin: 1.4em 0px 0px; padding: 0px; color: #6e7376; font-family: 'Lucida Grande', arial, verdana, sans-serif; word-spacing: 1px;\">Aufbau von HTML-TAGs \u2013 HTML Befehlen<\/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;\">Was ist nun ein HTML-TAG? &#8211; Als HTML-TAG wird ein einzelner HTML-&#8222;Befehl&#8220; bezeichnet.<\/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;\">Dabei kommt der Begriff TAG aus dem Englischen und hat dort die Bedeutung von &#8222;Etikett, Anh\u00e4nger, Aufkleber, Marke, Kennzeichnung, Auszeichner&#8220;. Am besten l\u00e4sst sich es mit dem Begriff &#8222;Kennzeichnung&#8220; veranschaulichen. Man kennzeichnet Bereiche, dass diese in bestimmter Weise angezeigt werden sollen. Dabei kann man dann sagen, hier beginnt der Bereich und dort h\u00f6rt er wieder auf.<\/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;\">Am Beispiel wird der HTML-TAG von 2 Abs\u00e4tzen gezeigt<\/p>\n<pre class=\"html5 html75\" 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;erster Absatz, der sehr lang sein kann<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; <br \/><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;zweiter Absatz - und nach der Definition bewirken <br \/>Abs\u00e4tze immer einen Abstand (egal ob es sich um Text handelt <br \/>oder bei Schuhen zwischen Stra\u00dfe und Tr\u00e4ger<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<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 folgenden Ordner auf deinem USB-Stick: ai\/html\/<br \/>Die ersten Dateien speicherst du hier ab. Sp\u00e4ter musst du auch Dateien hochladen.<\/p>\n<p>ISERV: Du arbeitest weiterhin in deinem H:\\Homepage Verzeichnis.<br \/><br data-mce-bogus=\"1\" \/><\/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 mit dem Editor die Datei <strong><span style=\"color: #000000;\">ai\/html\/absatz.html<\/span><\/strong> und gebe den obigen Code ein, speichere und schau die das Ergebnis im Browser an (Im Folgenden wird ai\/html durch einen Punkt ersetzt, also .\/absatz.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;\">3 Dinge sind wichtig zu beachten:<\/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;\">HTML-TAGs haben immer vom Aufbau ein Kleiner- und Gr\u00f6\u00dferzeichen &lt; .. &gt;<\/li>\n<li style=\"margin: 0px; padding: 0px;\">Zwischen den &lt; &gt; befindet sich die Anweisung &#8211; hier p &#8211; und wie so vieles im Leben ist das eine Abk\u00fcrzung und das Ganze von dem englischen &#8222;paragraph&#8220; (Absatz, Abschnitt). Dementsprechend sind alle Befehle nur Abk\u00fcrzungen von englischen Begriffen. So lassen sich die Befehle gut merken (vorausgesetzt, man kann Englisch).<\/li>\n<li style=\"margin: 0px; padding: 0px;\">Alle HTML-TAGs sind immer klein zu schreiben!&nbsp;<\/li>\n<\/ol>\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;\">Alles hat ein Anfang und ein Ende. So auch praktisch fast jeder HTML-TAG.<\/p>\n<h2 style=\"margin: 1.4em 0px 0px; padding: 0px; color: #6e7376; font-family: 'Lucida Grande', arial, verdana, sans-serif; word-spacing: 1px;\">Aufbau Anfangs- und End-TAGs<\/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;\">Weiterhin gibt es einen Anfangs-TAG und einen End-TAG. Sonst h\u00e4tten wir nicht die M\u00f6glichkeit, mehrere Abs\u00e4tze zu machen bzw. m\u00fcssten fett geschriebene Texte bis zum Ende der Seite immer fett sein. Der End-TAG ist fast identisch mit dem Anfangs-TAG, mit dem einzigen Unterschied, dass nach dem Kleinerzeichen (&lt;) ein Schr\u00e4gstrich kommt. Dieser ist auf der Tastatur beim 7er zu finden.<\/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;\">Der HTML-End-TAG hat also folgendes Aussehen:<\/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=\"sy0\" style=\"margin: 0px; padding: 0px;\">\/befehl&gt;<\/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;\">Merke: HTML strukturierte eine Seite<\/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;\"><strong style=\"margin: 0px; padding: 0px;\">Merke: HTML strukturiert eine Seite! HTML ist nicht f\u00fcr das Design da (das war mal). Guter Stil ist also, HTML-TAGs zum strukturieren des Inhalts zu nutzen. Design kommt \u00fcber CSS.. sp\u00e4ter.<\/strong><\/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;\">Alle HTML Befehle strukturieren \u2013 was macht also das Design? F\u00fcr Design ist CSS zust\u00e4ndig (was sp\u00e4ter im Kurs kommt)! Diese Trennung von Inhalt (+ Struktur) und dem Design zeichnet aktuelles HTML-Nutzung aus. Fr\u00fcher wurde lustig alles vermischt \u2013 heute ist diese Trennung sehr wichtig. Im ersten Teil des HTML-Tutorials werden wir uns um alle wichtigen HTML-Befehle k\u00fcmmern und im zweiten Teil dann mit CSS das Design \u00fcber das in HTML erstellte Grundger\u00fcst st\u00fclpen. H\u00f6rt sich komplizierter an, wie es ist. Du wirst sehen, dass es ganz einfach ist, wenn du aufmerksam liest und mitarbeitest.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; HTML-Grundlagen Was ist HTML? &nbsp; HTML ist eine \u201eStrukturierungssprache\u201c, mit der dem Browser \u201egesagt\u201c wird, wie die Inhalte strukturiert sind: welche Bereiche (Buchstaben, W\u00f6rter, S\u00e4tze) z.B. \u00dcberschriften sind, was Abs\u00e4tze sind, was fett ausgegeben werden soll \u2013 HTML ist keine Programmiersprache \u2013 man beschreibt, wie eine Seite im Browser ausgegeben werden soll (nicht mehr, [&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-41","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\/41","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=41"}],"version-history":[{"count":1,"href":"https:\/\/ai.hasebox.de\/index.php\/wp-json\/wp\/v2\/posts\/41\/revisions"}],"predecessor-version":[{"id":396,"href":"https:\/\/ai.hasebox.de\/index.php\/wp-json\/wp\/v2\/posts\/41\/revisions\/396"}],"wp:attachment":[{"href":"https:\/\/ai.hasebox.de\/index.php\/wp-json\/wp\/v2\/media?parent=41"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ai.hasebox.de\/index.php\/wp-json\/wp\/v2\/categories?post=41"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ai.hasebox.de\/index.php\/wp-json\/wp\/v2\/tags?post=41"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}