{"id":21201,"date":"2016-04-12T03:01:11","date_gmt":"2016-04-11T17:01:11","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=21201"},"modified":"2018-06-09T10:28:49","modified_gmt":"2018-06-09T00:28:49","slug":"w3c-xhtml-nu-checker-validation-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/w3c-xhtml-nu-checker-validation-primer-tutorial\/","title":{"rendered":"W3C XHTML Nu Checker Validation Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/xhtml_validator.jpg\"><img decoding=\"async\" style=\"float:left;border: 15px solid pink;\" alt=\"W3C XHTML Nu Checker Validation Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/xhtml_validator.jpg\" title=\"W3C XHTML Nu Checker Validation Primer Tutorial\"  \/><\/a><p class=\"wp-caption-text\">W3C XHTML Nu Checker Validation Primer Tutorial<\/p><\/div>\n<p>Have you ever had an out of body experience?  I have, twice, and that second one verifies the first, at least for me, in that it is hard to validate it, or believe that it definitely happened, exactly, that first time.  To me an out of body experience &#8230;<\/p>\n<ul>\n<li>has you looking back at yourself, and everything about yourself, with the utmost scrutiny and critical view, from afar, as if you are looking down (or up) on yourself<\/li>\n<li>has you wondering whether it will end, which I hoped for, as you feel a bit of lack of control<\/li>\n<li>has you wondering why it is happening, and looking back, have not seen reasons myself<\/li>\n<li>has you unsure of how long it lasted because you lose all track of time<\/li>\n<\/ul>\n<p> &#8230; and is all pretty overwhelming at the time.<\/p>\n<p>As you may surmise from these thoughts, there is some good and bad and &#8220;other&#8221; emotions that flow from this.<\/p>\n<p>So what&#8217;s that got to do with the &#8220;W3C XHTML Nu Checker Validation Primer Tutorial&#8221;, our blog posting title, where, &#8220;W3C&#8221; to us, represents the <a target=_blank title='World Wide Web Consortium' href='https:\/\/www.w3.org\/'>&#8220;World Wide Web Consortium&#8221;<\/a>, the standard bearer for Internet protocols and formats and procedures?  Well, that first listing is the objective view of an out of body experience that can help you improve as an analyst\/programmer or coder, if you occasionally, or even frequently, use outside sanity checkers into your &#8220;programming life&#8221;, and lay yourself open to scrutiny.  Alas, we had not subjected ourselves to that scrutiny with our RJM Programming Landing Page set of web pages for some time, and lo and behold, when we did, we were gobsmacked by the fact that one of our favourite things to do with HTML div elements and HTML h1 elements around here <b>was<\/b> to use &#8230;<\/p>\n<p><code><br \/>\n&lt;div <b>align='center'<\/b>&gt;&lt;\/div&gt;<br \/>\n<\/code><\/p>\n<p> &#8230; but, as in our heart of hearts we felt coming, alas, it is now causing validation errors at the <a target=_blank title='W3C XHTML Validator' href='https:\/\/validator.w3.org\/'>W3C XHTML Validator<\/a> we use to sanity check the validity of the HTML of for our RJM Programming Landing Page set of webpages.  So now, it&#8217;s official around here that what we prefer to use <b>is<\/b>  &#8230;<\/p>\n<p><code><br \/>\n&lt;div <b>style='text-align:center;width:100%;'<\/b>&gt;&lt;\/div&gt;<br \/>\n<\/code><\/p>\n<p> &#8230; where you may need to tweak the &#8220;100%&#8221; width (and please read more ideas about this <a target=_blank title='Useful link' href='http:\/\/stackoverflow.com\/questions\/9277311\/horizontally-aligning-divs'>here<\/a>, thanks) &#8230; which, as you can see from today&#8217;s <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/\/HTMLCSS\/xhtml_validator.jpg\" title='Click picture'>tutorial picture<\/a>, makes the W3C XHTML Validator a lot happier with your HTML work.<\/p>\n<p>Please forgive us through our code, with lots of usage of <b>align=&#8217;center&#8217;<\/b> but please transfer to your thinking that we should have been using <b>style=&#8217;text-align:center;width:100%;&#8217;<\/b> instead, and we&#8217;ll endeavour to fix HTML code into the future and the past, as time goes on.  And thanks, W3C XHTML Validator, for the heads up.<\/p>\n<p>Regarding validation thoughts, you&#8217;ll want to know what W3C understands <a target=_blank title='W3C's view of deprecated HTML elements' href='https:\/\/www.w3.org\/WAI\/wcag-curric\/sam87-0.htm'>&#8220;deprecated&#8221;<\/a> to mean.<\/p>\n<p><b>Did you know?<\/b><\/p>\n<p>To us, validation of PHP is easier still, via Linux or Unix or Windows command line usage like &#8230;<\/p>\n<p><code><br \/>\nphp -l myphpcode.php<br \/>\n<\/code><\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d21201' onclick='var dv=document.getElementById(\"d21201\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/html\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d21201' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Have you ever had an out of body experience? I have, twice, and that second one verifies the first, at least for me, in that it is hard to validate it, or believe that it definitely happened, exactly, that first &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/w3c-xhtml-nu-checker-validation-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1848,12,37],"tags":[281,1852,327,342,576,997,1319,1358,1359,1395,1459,1850],"class_list":["post-21201","post","type-post","status-publish","format-standard","hentry","category-software-coding","category-elearning","category-tutorials","tag-css","tag-deprecated","tag-did-you-know","tag-div","tag-html","tag-programming","tag-tutorial","tag-validation","tag-validator","tag-w3c","tag-world-wide-consortium","tag-xhtml"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/21201"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=21201"}],"version-history":[{"count":11,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/21201\/revisions"}],"predecessor-version":[{"id":21304,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/21201\/revisions\/21304"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=21201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=21201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=21201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}