{"id":1211,"date":"2013-04-12T18:38:36","date_gmt":"2013-04-12T22:38:36","guid":{"rendered":"http:\/\/jarodthornton.com\/bemis3lf\/?p=1211"},"modified":"2013-04-12T18:38:36","modified_gmt":"2013-04-12T22:38:36","slug":"validated-standards-compliant","status":"publish","type":"post","link":"https:\/\/jarodthornton.com\/bemis3lf\/2013\/04\/12\/validated-standards-compliant\/","title":{"rendered":"Validated &amp; Standards Compliant"},"content":{"rendered":"<p><strong>Trying to be cute here&#8230; \u00a0The visual below is all code! \u00a0It consists of HTML, CSS, and three images of which two are a boy&#8217;s hand and a girl&#8217;s hand. \u00a0Their hands are two separate images aligned within the HTML using CSS.<\/strong><\/p>\n<hr \/>\n<h2>&#8220;I prefer my women like I prefer my HTML; validated and standards compliant.&#8221;<\/h2>\n<hr \/>\n<p><!--\n.god { border:solid 1px red; background:url(http:\/\/67.227.188.27\/~emajenwe\/blogs.dir\/26\/files\/\/2013\/04\/1516-12489413828vTT-1-1024x767.jpg) no-repeat center bottom; } .god .heading { background-color:white; opacity:0.6; filter:alpha(opacity=60); \/* For IE8 and earlier *\/ } .god h1 { font-weight:bold !important; font-style:inherit; font-size:large; text-decoration:underline; text-transform:capitalize; text-align:center; padding:25px 0; color:red; } .love { height:520px; width:301px; margin:auto; } .boy { width:131px; height:224px; position:absolute; background:url(http:\/\/67.227.188.27\/~emajenwe\/blogs.dir\/26\/files\/\/2013\/04\/boy1.jpg) no-repeat; margin-left:170px; } .girl { width:170px; height:224px; position:absolute; background:url(http:\/\/67.227.188.27\/~emajenwe\/blogs.dir\/26\/files\/\/2013\/04\/girl1.jpg) no-repeat; } .what-is-love { padding-top:225px; } .love-is { padding:25px; background-color:white; opacity:0.6; filter:alpha(opacity=60); \/* For IE8 and earlier *\/ }\n-->\u00a0I wrote this on Facebook earlier today haha. \u00a0Then I decided (because I have nothing better to do right?) I would write up some validated and standards compliant HTML to show what I was getting at =]\nWhat we see here is HTML and CSS working together to create a visual aid for what I mean in my quote above. \u00a0 I wrote the HTML (Hyper Text Markup Language) using the standard declarations, document type, character encoding, open html, open header, meta data, open body, nested div tags (divider), a heading tag (h1) and a paragraph tag (p) and close tags accordingly.<br \/>\nI gave each of these elements a class which relates to the CSS (Cascading Style Sheet), which is what tells the elements what to do and how to appear when opened in your web browser.<br \/>\nTo be creative I used relative\u00a0to the subject matter class names and organized the syntax. \u00a0For example, we open with the language (HTML), then the header which tells us the title (Boy Meets Girl), description (The process of falling in love using HTML), keywords (Boy, Girl, Love), expiration (Never) and the CSS styles (.god, .god .heading, .god h1, .love, . boy, .girl, .what-is-love, .love-is), then the body, the first and second divider, heading one, third divider, fourth divider, fifth divider, paragraph and close accordingly.<br \/>\nThe idea behind how I organized the syntax is as follows: \u00a0Love opens with a declaration and an idea of what to expect the output to be. \u00a0 In the head we understand the declaration should be this tall, this wide, this color or that, the background and any the role of each element in what is being declared. \u00a0The output is in the body what we visually see. \u00a0Each elements role renders according to the heads definition.<br \/>\nFor this declaration the head starts by telling the body how to render the markup of the document titled &#8220;Boy Meets Girl &#8221; which is described as &#8220;The process of falling in love using HTML&#8221;. \u00a0To support this we have a few keywords for reference and an expiration date for the document. \u00a0 Then we have the classes of each element that we will see, classes which further define how the markup will display in the body.<br \/>\n<strong>Now the body opens up based on the heads input. \u00a0I will name each element of the markup in the body according to it&#8217;s class which hopefully will make sense. \u00a0God and God&#8217;s heading and what the heading says about love goes first. \u00a0Love opens to Boy and Girl who meet under God&#8217;s heading of love. \u00a0Boy and Girl are united by their absolute position within loves inherit properties from God. \u00a0Boy and Girl are aligned according to these properties and make a profound statement that sits beneath their love. \u00a0Curtains close. \u00a0<\/strong><\/p>\n<hr \/>\n<h2>And here is the output of the code I wrote.<\/h2>\n<p><em>See bottom for markup highlights and validation results.<\/em><\/p>\n<hr \/>\n<div class=\"god\">\n<div class=\"heading\">\n<h1>Love: It always protects, trusts, hopes, perseveres.<\/h1>\n<\/div>\n<div class=\"love\">\n<div class=\"girl\"><\/div>\n<div class=\"boy\"><\/div>\n<div class=\"what-is-love\">\n<p class=\"love-is\">Love is patient, love is kind. It does not envy, it does not boast, it is not proud. It does not dishonor others, it is not self-seeking, it is not easily angered, it keeps no record of wrongs. Love does not delight in evil but rejoices with the truth. It always protects, always trusts, always hopes, always perseveres. Love never fails.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<hr \/>\n<h2>Here are the images.<\/h2>\n\n\t\t<style type=\"text\/css\">\n\t\t\t#gallery-1 {\n\t\t\t\tmargin: auto;\n\t\t\t}\n\t\t\t#gallery-1 .gallery-item {\n\t\t\t\tfloat: left;\n\t\t\t\tmargin-top: 10px;\n\t\t\t\ttext-align: center;\n\t\t\t\twidth: 33%;\n\t\t\t}\n\t\t\t#gallery-1 img {\n\t\t\t\tborder: 2px solid #cfcfcf;\n\t\t\t}\n\t\t\t#gallery-1 .gallery-caption {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\t\t\t\/* see gallery_shortcode() in wp-includes\/media.php *\/\n\t\t<\/style>\n\t\t<div id='gallery-1' class='gallery galleryid-1211 gallery-columns-3 gallery-size-thumbnail'><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon portrait'>\n\t\t\t\t<a href='https:\/\/jarodthornton.com\/bemis3lf\/wp-content\/uploads\/sites\/9\/2013\/04\/boy.jpg'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/jarodthornton.com\/bemis3lf\/wp-content\/uploads\/sites\/9\/2013\/04\/boy-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-1208\" \/><\/a>\n\t\t\t<\/dt>\n\t\t\t\t<dd class='wp-caption-text gallery-caption' id='gallery-1-1208'>\n\t\t\t\tGirl\n\t\t\t\t<\/dd><\/dl><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/jarodthornton.com\/bemis3lf\/wp-content\/uploads\/sites\/9\/2013\/04\/1516-12489413828vTT.jpg'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/jarodthornton.com\/bemis3lf\/wp-content\/uploads\/sites\/9\/2013\/04\/1516-12489413828vTT-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-1231\" \/><\/a>\n\t\t\t<\/dt>\n\t\t\t\t<dd class='wp-caption-text gallery-caption' id='gallery-1-1231'>\n\t\t\t\tMeets\n\t\t\t\t<\/dd><\/dl><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon portrait'>\n\t\t\t\t<a href='https:\/\/jarodthornton.com\/bemis3lf\/wp-content\/uploads\/sites\/9\/2013\/04\/girl.jpg'><img loading=\"lazy\" decoding=\"async\" width=\"131\" height=\"150\" src=\"https:\/\/jarodthornton.com\/bemis3lf\/wp-content\/uploads\/sites\/9\/2013\/04\/girl-131x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-1209\" \/><\/a>\n\t\t\t<\/dt>\n\t\t\t\t<dd class='wp-caption-text gallery-caption' id='gallery-1-1209'>\n\t\t\t\tBoy\n\t\t\t\t<\/dd><\/dl><br style=\"clear: both\" \/>\n\t\t<\/div>\n\n<h2>And here&#8217;s the whole of code I wrote to get the output \ud83d\ude42<\/h2>\n<p><em><strong>I&#8217;ve highlighted classes, declarations and elements as described above so it is easier to read.<\/strong><\/em><\/p>\n<hr \/>\n<p>&lt;!<span style=\"color: #ff0000\"><strong>DOCTYPE<\/strong><\/span> <em><strong>html<\/strong><\/em> PUBLIC &#8220;-\/\/W3C\/\/DTD XHTML 1.0 Transitional\/\/EN&#8221; &#8220;http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd&#8221;&gt;<br \/>\n&lt;html xmlns=&#8221;http:\/\/www.w3.org\/1999\/xhtml&#8221;&gt;<br \/>\n&lt;<span style=\"color: #ff0000\"><strong>head<\/strong><\/span>&gt;<br \/>\n&lt;<span style=\"color: #ff0000\"><strong>title<\/strong><\/span>&gt;<em><strong>Boy Meets Girl<\/strong><\/em>&lt;\/title&gt;<br \/>\n&lt;meta name=&#8221;<span style=\"color: #ff0000\"><strong>description<\/strong><\/span>&#8221; content=&#8221;<em><strong>The process of falling in love using HTML<\/strong><\/em>&#8220;&gt;<br \/>\n&lt;meta name=&#8221;<span style=\"color: #ff0000\"><strong>keywords<\/strong><\/span>&#8221; content=&#8221;<em><strong>Boy, Girl, Love<\/strong><\/em>&#8221; \/&gt;<br \/>\n&lt;meta name=&#8221;<span style=\"color: #ff0000\"><strong>expires<\/strong><\/span>&#8221; content=&#8221;<em><strong>Never<\/strong><\/em>&#8221; \/&gt;<br \/>\n&lt;style type=&#8221;text\/<span style=\"color: #ff0000\"><strong>css<\/strong><\/span>&#8220;&gt;<br \/>\n<span style=\"color: #ff0000\"><strong>.god<\/strong><\/span> {<br \/>\n<em><strong>border:solid<\/strong><\/em> 1px red;<br \/>\n<em><strong>background<\/strong><\/em>:url(http:\/\/67.227.188.27\/~emajenwe\/blogs.dir\/26\/files\/\/2013\/04\/1516-12489413828vTT-1-1024&#215;767.jpg) no-repeat center bottom;<br \/>\n}<br \/>\n<span style=\"color: #ff0000\"><strong>.god .heading<\/strong><\/span> {<br \/>\n<em><strong>background-color:white<\/strong><\/em>;<br \/>\nopacity:0.6;<br \/>\nfilter:alpha(opacity=60); \/* For IE8 and earlier *\/<br \/>\n}<br \/>\n<span style=\"color: #ff0000\"><strong>.god h1<\/strong><\/span> {<br \/>\n<em><strong>font-weight:bold !important<\/strong><\/em>;<br \/>\n<em><strong>font-style:inherit<\/strong><\/em>;<br \/>\n<em><strong>font-size:large<\/strong><\/em>;<br \/>\n<em><strong>text-decoration:underline<\/strong><\/em>;<br \/>\n<em><strong>text-transform:capitaliz<\/strong><\/em>e;<br \/>\n<em><strong>text-align:center<\/strong><\/em>;<br \/>\npadding:25px 0;<br \/>\ncolor:red;<br \/>\n}<br \/>\n<span style=\"color: #ff0000\"><strong>.love<\/strong><\/span> {<br \/>\nheight:520px;<br \/>\nwidth:301px;<br \/>\nmargin:auto;<br \/>\n}<br \/>\n<span style=\"color: #ff0000\"><strong>.girl<\/strong><\/span> {<br \/>\nwidth:131px;<br \/>\nheight:224px;<br \/>\n<em><strong>position:absolute;<\/strong><\/em><br \/>\n<em><strong>background<\/strong><\/em>:url(http:\/\/67.227.188.27\/~emajenwe\/blogs.dir\/26\/files\/\/2013\/04\/girl.jpg) no-repeat;<br \/>\nmargin-left:170px;<br \/>\n}<br \/>\n<strong>.boy<\/strong>\u00a0{<br \/>\nwidth:170px;<br \/>\nheight:224px;<br \/>\n<em><strong>position:absolute;<\/strong><\/em><br \/>\n<em><strong>background<\/strong><\/em>:url(http:\/\/67.227.188.27\/~emajenwe\/blogs.dir\/26\/files\/\/2013\/04\/boy.jpg) no-repeat;<br \/>\n}<br \/>\n<span style=\"color: #ff0000\"><strong>.what-is-love<\/strong> <\/span>{<br \/>\npadding-top:225px;<br \/>\n}<br \/>\n<span style=\"color: #ff0000\"><strong>.love-is<\/strong><\/span> {<br \/>\npadding:25px;<br \/>\n<em><strong>background-color:white;<\/strong><\/em><br \/>\nopacity:0.6;<br \/>\nfilter:alpha(opacity=60); \/* For IE8 and earlier *\/<br \/>\n}<br \/>\n&lt;\/style&gt;<br \/>\n&lt;\/head&gt;<br \/>\n&lt;<span style=\"color: #ff0000\"><strong>body<\/strong><\/span>&gt;<br \/>\n<em><strong>&lt;div class=&#8221;god&#8221;&gt;<\/strong><\/em><br \/>\n<em><strong>&lt;div class=&#8221;heading&#8221;&gt;<\/strong><\/em><br \/>\n&lt;h1&gt;<em><strong> Love: It always protects, trusts, hopes, perseveres.<\/strong><\/em>&lt;\/h1&gt;<br \/>\n&lt;\/div&gt;<br \/>\n<em><strong>&lt;div class=&#8221;love&#8221;&gt;<\/strong><\/em><br \/>\n<em><strong>&lt;div class=&#8221;girl&#8221;&gt;&lt;\/div&gt;<\/strong><\/em><br \/>\n<em><strong>&lt;div class=&#8221;boy&#8221;&gt;&lt;\/div&gt;<\/strong><\/em><br \/>\n<em><strong>&lt;div class=&#8221;what-is-love&#8221;&gt;<\/strong><\/em><br \/>\n<span style=\"color: #ff0000\"><strong>&lt;p class=&#8221;love-is&#8221;&gt;<\/strong><\/span><em><strong>Love is patient, love is kind. It does not envy, it does not boast, it is not proud. It does not dishonor others, it is not self-seeking, it is not easily angered, it keeps no record of wrongs. Love does not delight in evil but rejoices with the truth. It always protects, always trusts, always hopes, always perseveres. Love never fails.<\/strong><\/em><span style=\"color: #ff0000\"><strong> &lt;\/p&gt;<\/strong><\/span><br \/>\n<strong>&lt;\/div&gt;<\/strong><br \/>\n<strong> &lt;\/div&gt;<\/strong><br \/>\n<strong> &lt;\/div&gt;<\/strong><br \/>\n<strong> &lt;\/body&gt;<\/strong><br \/>\n<strong> &lt;\/html&gt;<\/strong><\/p>\n<blockquote><p>The uploaded document was successfully checked as XHTML 1.0 Transitional. This means that the resource in question identified itself as &#8220;XHTML 1.0 Transitional&#8221; and that we successfully performed a formal validation of it. The parser implementations we used for this check are based on\u00a0<a href=\"http:\/\/openjade.sourceforge.net\/\" target=\"_blank\" rel=\"noopener noreferrer\">OpenSP<\/a>\u00a0(SGML\/XML) and\u00a0<a href=\"http:\/\/xmlsoft.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">libxml2<\/a>\u00a0(XML).<\/p><\/blockquote>\n<p><a href=\"http:\/\/validator.w3.org\/check?uri=referer\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" alt=\"Valid XHTML 1.0 Transitional\" src=\"http:\/\/www.w3.org\/Icons\/valid-xhtml10\" width=\"88\" height=\"31\" \/><\/a><br \/>\n<a href=\"http:\/\/www.publicdomainpictures.net\/view-image.php?image=3491&amp;picture=blue-skies\" target=\"_blank\" rel=\"noopener noreferrer\">Blue Skies<\/a> by Sandra Lunsford<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Trying to be cute here&#8230; \u00a0The visual below is all code! \u00a0It consists of HTML, CSS, and three images of which two are a boy&#8217;s hand and a girl&#8217;s hand. \u00a0Their hands are two separate images aligned within the HTML using CSS. &#8220;I prefer my women like I prefer my HTML; validated and standards compliant.&#8221; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1231,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-1211","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-allowthepoetthis"],"_links":{"self":[{"href":"https:\/\/jarodthornton.com\/bemis3lf\/wp-json\/wp\/v2\/posts\/1211","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jarodthornton.com\/bemis3lf\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jarodthornton.com\/bemis3lf\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jarodthornton.com\/bemis3lf\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jarodthornton.com\/bemis3lf\/wp-json\/wp\/v2\/comments?post=1211"}],"version-history":[{"count":0,"href":"https:\/\/jarodthornton.com\/bemis3lf\/wp-json\/wp\/v2\/posts\/1211\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jarodthornton.com\/bemis3lf\/wp-json\/wp\/v2\/media\/1231"}],"wp:attachment":[{"href":"https:\/\/jarodthornton.com\/bemis3lf\/wp-json\/wp\/v2\/media?parent=1211"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jarodthornton.com\/bemis3lf\/wp-json\/wp\/v2\/categories?post=1211"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jarodthornton.com\/bemis3lf\/wp-json\/wp\/v2\/tags?post=1211"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}