{"id":165,"date":"2009-10-26T09:54:22","date_gmt":"2009-10-26T08:54:22","guid":{"rendered":"https:\/\/blogs.ua.es\/pi\/?p=165"},"modified":"2013-05-02T01:11:23","modified_gmt":"2013-05-01T23:11:23","slug":"%c2%bfpor-que-escribir-html-valido-es-importante","status":"publish","type":"post","link":"https:\/\/blogs.ua.es\/pi\/2009\/10\/26\/%c2%bfpor-que-escribir-html-valido-es-importante\/","title":{"rendered":"\u00bfPor qu\u00e9 escribir HTML v\u00e1lido es importante?"},"content":{"rendered":"<p>Escribir HTML v\u00e1lido es muy importante y evita muchos problemas, como por ejemplo, que una p\u00e1gina no se vea igual en diferentes navegadores. \u00bfPor qu\u00e9? Porque cuando una p\u00e1gina contiene errores, cada navegador intenta corregir ese error de diferente forma. \u00bfPor qu\u00e9 de diferente forma? Porque el est\u00e1ndar dice c\u00f3mo se tienen que hacer bien las cosas, pero no dice nada para cuando se hace mal.<\/p>\n<p>Acabo de encontrar la p\u00e1gina <a href=\"http:\/\/carsonified.com\/blog\/features\/dev\/same-dom-errors-different-browser-interpretations\/\">Same DOM Errors, Different Browser Interpretations<\/a>, que explica que cuando se escribe HTML no v\u00e1lido, los navegadores construyen el \u00e1rbol DOM equivalente al documento de distinta forma. El art\u00edculo es un poco largo, pero es muy interesante y adem\u00e1s compara c\u00f3mo se comportan varios navegadores ante un mismo error.<\/p>\n<p>(Actualizaci\u00f3n 25\/05\/2012)<\/p>\n<p>He realizado unos v\u00eddeos en los que explico por qu\u00e9 es importante escribir c\u00f3digo HTML correcto:<\/p>\n<p>Parte 1:<\/p>\n<p>[kml_flashembed movie=&#8221;http:\/\/www.youtube.com\/v\/RnzKl8OA5gQ&#8221; width=&#8221;560&#8243; height=&#8221;315&#8243; wmode=&#8221;transparent&#8221; \/]<\/p>\n<p>Parte 2:<\/p>\n<p>[kml_flashembed movie=&#8221;http:\/\/www.youtube.com\/v\/_NHarDRZimw&#8221; width=&#8221;560&#8243; height=&#8221;315&#8243; wmode=&#8221;transparent&#8221; \/]<\/p>\n<p>Parte 3:<\/p>\n<p>[kml_flashembed movie=&#8221;http:\/\/www.youtube.com\/v\/fBQ8wE5Ffxs&#8221; width=&#8221;560&#8243; height=&#8221;315&#8243; wmode=&#8221;transparent&#8221; \/]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Escribir HTML v\u00e1lido es muy importante y evita muchos problemas, como por ejemplo, que una p\u00e1gina no se vea igual en diferentes navegadores. \u00bfPor qu\u00e9? Porque cuando una p\u00e1gina contiene errores, cada navegador intenta corregir ese error de diferente forma. &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/blogs.ua.es\/pi\/2009\/10\/26\/%c2%bfpor-que-escribir-html-valido-es-importante\/\"> <span class=\"screen-reader-text\">\u00bfPor qu\u00e9 escribir HTML v\u00e1lido es importante?<\/span> Leer M\u00e1s  &raquo;<\/a><\/p>\n","protected":false},"author":40,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[6231,26926,156163,411],"class_list":["post-165","post","type-post","status-publish","format-standard","hentry","category-general","tag-error","tag-html5","tag-pregunta","tag-video"],"_links":{"self":[{"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/posts\/165","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/users\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/comments?post=165"}],"version-history":[{"count":8,"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/posts\/165\/revisions"}],"predecessor-version":[{"id":2709,"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/posts\/165\/revisions\/2709"}],"wp:attachment":[{"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/media?parent=165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/categories?post=165"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.ua.es\/pi\/wp-json\/wp\/v2\/tags?post=165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}