{"id":5008,"date":"2018-10-25T15:26:06","date_gmt":"2018-10-25T13:26:06","guid":{"rendered":"https:\/\/www.mjcachon.com\/?p=5008"},"modified":"2022-07-13T01:51:19","modified_gmt":"2022-07-12T23:51:19","slug":"head-html","status":"publish","type":"post","link":"https:\/\/laikateam.com\/blog\/head-html\/","title":{"rendered":"\u00bfC\u00f3mo debe ser el &quot;head&quot; HTML?"},"content":{"rendered":"<p>[Este post fue escrito originalmente por <a href=\"http:\/\/saskiamoreno.com\/\" target=\"_blank\" rel=\"noopener\">Saskia Moreno<\/a>, en su paso por nuestra agencia SEO, antes llamada \u00abSomos Mjcachon\u00bb]<\/p>\n<p><span style=\"font-weight: 400;\">\u00bfTe preguntas qu\u00e9 elementos contiene el HEAD en html y en qu\u00e9 orden deben ir?<br \/>\n<\/span><span style=\"font-weight: 400;\">Has llegado al sitio adecuado.<\/span><br \/>\n<span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">La etiqueta <strong>&lt;head&gt;<\/strong> la analizamos y repasamos dentro de nuestra <\/span><a href=\"https:\/\/www.mjcachon.com\/blog\/checklist-seo-auditoria\/\"><span style=\"font-weight: 400;\">auditor\u00eda SEO<\/span><\/a><span style=\"font-weight: 400;\"> en la parte de maquetaci\u00f3n, puesto que la etiqueta HEAD forma parte de la codificaci\u00f3n HTML.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">\u00bfQu\u00e9 es el &lt;head&gt;?<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Pues bien, antes de optimizar nada deber\u00edamos saber qu\u00e9 es el &lt;head&gt; html y d\u00f3nde se ubica.<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">Estructura de una web<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">La <strong>estructura tradicional<\/strong> de una p\u00e1gina web en cuanto al c\u00f3digo html consta de 2 apartados o secciones:<\/span><\/p>\n<pre><span style=\"font-weight: 400;\">&lt;html&gt;\n<\/span><span style=\"font-weight: 400;\">&lt;head&gt;Elementos como meta etiquetas, no visibles en front-end&lt;\/head&gt;<\/span>\n<span style=\"font-weight: 400;\">&lt;body&gt;Elementos visibles en el front-end&lt;\/body&gt;\n<\/span><span style=\"font-weight: 400;\">&lt;\/html&gt;<\/span><\/pre>\n<p><span style=\"font-weight: 400;\">En <strong>HTML5<\/strong> se permite eliminar estas etiquetas, formando una estructura como lo podr\u00eda ser esta:<\/span><\/p>\n<pre><span style=\"font-weight: 400;\">&lt;<\/span><span style=\"font-weight: 400;\">!DOCTYPE<\/span><span style=\"font-weight: 400;\"> html<\/span><span style=\"font-weight: 400;\">&gt;<\/span>\n<span style=\"font-weight: 400;\">&lt;<\/span><span style=\"font-weight: 400;\">title<\/span><span style=\"font-weight: 400;\">&gt;<\/span><span style=\"font-weight: 400;\">T\u00edtulo de la p\u00e1gina<\/span><span style=\"font-weight: 400;\">&lt;<\/span><span style=\"font-weight: 400;\">\/title<\/span><span style=\"font-weight: 400;\">&gt;<\/span>\n<span style=\"font-weight: 400;\">&lt;<\/span><span style=\"font-weight: 400;\">h1<\/span><span style=\"font-weight: 400;\">&gt;<\/span><span style=\"font-weight: 400;\">Encabezado<\/span><span style=\"font-weight: 400;\">&lt;<\/span><span style=\"font-weight: 400;\">\/h1<\/span><span style=\"font-weight: 400;\">&gt;<\/span>\n<span style=\"font-weight: 400;\">&lt;<\/span><span style=\"font-weight: 400;\">p<\/span><span style=\"font-weight: 400;\">&gt;<\/span><span style=\"font-weight: 400;\">Texto<\/span><span style=\"font-weight: 400;\">&lt;<\/span><span style=\"font-weight: 400;\">\/p<\/span><span style=\"font-weight: 400;\">&gt;<\/span><\/pre>\n<p><span style=\"font-weight: 400;\">No obstante, no es una pr\u00e1ctica recomendada ya que puede generar, entre otros problemas, errores en navegadores m\u00e1s antiguos. Y cuando se trata de nuestra web, \u00a1es mejor ir a lo seguro! \ud83d\ude09<\/span><br \/>\n<a href=\"https:\/\/www.mjcachon.com\/pruebas\/url-9.html\" rel=\"nofollow\">test9<\/a><\/p>\n<h3><span style=\"font-weight: 400;\">Elementos del &lt;head&gt;<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">En la cabecera &lt;head&gt; insertamos todas las etiquetas tan valiosas para SEO como lo son Title, Description, la codificaci\u00f3n o conjunto de caracteres (charset) y otros elementos como enlaces a archivos CSS y JS.<\/span><br \/>\n<span style=\"font-weight: 400;\">\u00bfPero&#8230; c\u00f3mo? \u00bfA lo loco? \u00a1No! Las etiquetas del &lt;head&gt; tienen un orden ideal para que los rastreadores y navegadores puedan entender correctamente el contenido de nuestro sitio y, por tanto, ahorrarle tiempo.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">\u00bfCu\u00e1l es el orden \u00f3ptimo del &lt;head&gt;?<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Llegamos al quid de la cuesti\u00f3n. Tanto el orden de los elementos como los propios elementos que contiene la secci\u00f3n del Head html es importante para SEO y para los navegadores.<\/span><br \/>\nLo verdaderamente trascendental es indicarle el charset (conjunto de caracteres) en la primera l\u00ednea, ya que gracias a esto los navegadores y bots podr\u00e1n leer correctamente el contenido, en los caracteres correctos en los que hemos codificado la web.<br \/>\n<span style=\"font-weight: 400;\">En cuanto a las dem\u00e1s etiquetas incluidas en el &lt;head&gt;, realmente depende del orden en el que queramos que se carguen los elementos, si CSS antes que JS, etc.<\/span><br \/>\n<span style=\"font-weight: 400;\">Por lo general, siempre recomendamos tener el charset lo primero, la etiqueta Base (aunque esta no se ve en todas las webs), el Viewport, despu\u00e9s el Title ya que es esencial para SEO, seguido de la Description, que no falte.<\/span><br \/>\n<strong>Proponemos la siguiente estructura de &lt;head&gt;:<\/strong><\/p>\n<ol>\n<li style=\"font-weight: 400;\">\n<pre><span style=\"font-weight: 400;\">Meta Charset (encoding de la p\u00e1gina)<\/span><\/pre>\n<\/li>\n<li style=\"font-weight: 400;\">\n<pre><span style=\"font-weight: 400;\">Etiqueta Base<\/span><\/pre>\n<\/li>\n<li style=\"font-weight: 400;\">\n<pre><span style=\"font-weight: 400;\">Meta Viewport (para webs responsive)<\/span><\/pre>\n<\/li>\n<li style=\"font-weight: 400;\">\n<pre><span style=\"font-weight: 400;\">Title<\/span><\/pre>\n<\/li>\n<li style=\"font-weight: 400;\">\n<pre><span style=\"font-weight: 400;\">Etiquetas:<\/span><\/pre>\n<ol>\n<li style=\"font-weight: 400;\">\n<pre><span style=\"font-weight: 400;\">Meta Description<\/span><\/pre>\n<\/li>\n<li style=\"font-weight: 400;\">\n<pre><span style=\"font-weight: 400;\">Meta Robots<\/span><\/pre>\n<\/li>\n<li style=\"font-weight: 400;\">\n<pre><span style=\"font-weight: 400;\">Canonical<\/span><\/pre>\n<\/li>\n<\/ol>\n<\/li>\n<li style=\"font-weight: 400;\">\n<pre><span style=\"font-weight: 400;\">Ficheros CSS<\/span><\/pre>\n<\/li>\n<li style=\"font-weight: 400;\">\n<pre><span style=\"font-weight: 400;\">Ficheros JS<\/span><\/pre>\n<\/li>\n<li style=\"font-weight: 400;\">\n<pre><span style=\"font-weight: 400;\">Resto de etiquetas (OG, otras llamadas y metas)<\/span><\/pre>\n<\/li>\n<\/ol>\n<h3><span style=\"font-weight: 400;\">\u00bfY los meta Keywords?<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Para los que os pregunt\u00e1is si no incluimos la etiqueta meta keywords: no. Es una etiqueta anticuada a la que los bots no le prestan atenci\u00f3n. Serv\u00eda de truquito SEO hasta que los webmasters y SEOs sobreoptimizaron esa parte para alterar los rankings y aparecer para el mayor n\u00famero de keywords. Esto ha tra\u00eddo como (l\u00f3gica) consecuencia que los motores de b\u00fasqueda ya no lo consideran una meta v\u00e1lida. Ahora nos lo tenemos que \u201ccurrar\u201d con un buen texto bien optimizado.<\/span><br \/>\n<span style=\"font-weight: 400;\">As\u00ed que\u2026 \u00a1manos a la obra con nuestro &lt;head&gt; y nuestras redacciones SEO!<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>[Este post fue escrito originalmente por Saskia Moreno, en su paso por nuestra agencia SEO, antes llamada \u00abSomos Mjcachon\u00bb] \u00bfTe preguntas qu\u00e9 elementos contiene el HEAD en html y en qu\u00e9 orden deben ir? Has llegado al sitio adecuado. La etiqueta &lt;head&gt; la analizamos y repasamos dentro de nuestra auditor\u00eda SEO en la parte de<\/p>\n","protected":false},"author":8,"featured_media":6469,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[6,2],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u00bfC\u00f3mo debe ser el Head HTML? Gu\u00eda para un Head \u00f3ptimo | MJ Cach\u00f3n<\/title>\n<meta name=\"description\" content=\"\u00bfQuieres optimizar la etiqueta Head para SEO? Te contamos c\u00f3mo hacerlo y qu\u00e9 orden \u00f3ptimo deben tener los elementos de esta etiqueta. \u00a1Optimiza tu HEAD ya!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/laikateam.com\/blog\/head-html\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u00bfC\u00f3mo debe ser el Head HTML? Gu\u00eda para un Head \u00f3ptimo | MJ Cach\u00f3n\" \/>\n<meta property=\"og:description\" content=\"\u00bfQuieres optimizar la etiqueta Head para SEO? Te contamos c\u00f3mo hacerlo y qu\u00e9 orden \u00f3ptimo deben tener los elementos de esta etiqueta. \u00a1Optimiza tu HEAD ya!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/laikateam.com\/blog\/head-html\/\" \/>\n<meta property=\"og:site_name\" content=\"LaikaTeam\" \/>\n<meta property=\"article:published_time\" content=\"2018-10-25T13:26:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-07-12T23:51:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/laikateam.com\/blog\/wp-content\/uploads\/2018\/10\/head-html.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1080\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@laikateam_es\" \/>\n<meta name=\"twitter:site\" content=\"@laikateam_es\" \/>\n<meta name=\"twitter:label1\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/laikateam.com\/blog\/#organization\",\"name\":\"Laika\",\"url\":\"https:\/\/laikateam.com\/blog\/\",\"sameAs\":[\"https:\/\/www.instagram.com\/laika_team\",\"https:\/\/www.linkedin.com\/company\/laika-team\/\",\"https:\/\/twitter.com\/laikateam_es\"],\"logo\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/laikateam.com\/blog\/#logo\",\"inLanguage\":\"es\",\"url\":\"https:\/\/laikateam.com\/blog\/wp-content\/uploads\/2021\/06\/logo-laika.png\",\"contentUrl\":\"https:\/\/laikateam.com\/blog\/wp-content\/uploads\/2021\/06\/logo-laika.png\",\"width\":318,\"height\":350,\"caption\":\"Laika\"},\"image\":{\"@id\":\"https:\/\/laikateam.com\/blog\/#logo\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/laikateam.com\/blog\/#website\",\"url\":\"https:\/\/laikateam.com\/blog\/\",\"name\":\"LaikaTeam\",\"description\":\"Strategic &amp; SEO Consulting\",\"publisher\":{\"@id\":\"https:\/\/laikateam.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/laikateam.com\/blog\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"es\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/laikateam.com\/blog\/head-html\/#primaryimage\",\"inLanguage\":\"es\",\"url\":\"https:\/\/laikateam.com\/blog\/wp-content\/uploads\/2018\/10\/head-html.jpg\",\"contentUrl\":\"https:\/\/laikateam.com\/blog\/wp-content\/uploads\/2018\/10\/head-html.jpg\",\"width\":1920,\"height\":1080},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/laikateam.com\/blog\/head-html\/#webpage\",\"url\":\"https:\/\/laikateam.com\/blog\/head-html\/\",\"name\":\"\\u00bfC\\u00f3mo debe ser el Head HTML? Gu\\u00eda para un Head \\u00f3ptimo | MJ Cach\\u00f3n\",\"isPartOf\":{\"@id\":\"https:\/\/laikateam.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/laikateam.com\/blog\/head-html\/#primaryimage\"},\"datePublished\":\"2018-10-25T13:26:06+00:00\",\"dateModified\":\"2022-07-12T23:51:19+00:00\",\"description\":\"\\u00bfQuieres optimizar la etiqueta Head para SEO? Te contamos c\\u00f3mo hacerlo y qu\\u00e9 orden \\u00f3ptimo deben tener los elementos de esta etiqueta. \\u00a1Optimiza tu HEAD ya!\",\"breadcrumb\":{\"@id\":\"https:\/\/laikateam.com\/blog\/head-html\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/laikateam.com\/blog\/head-html\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/laikateam.com\/blog\/head-html\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Portada\",\"item\":\"https:\/\/laikateam.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\\u00bfC\\u00f3mo debe ser el &quot;head&quot; HTML?\"}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/laikateam.com\/blog\/head-html\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/laikateam.com\/blog\/head-html\/#webpage\"},\"author\":{\"@id\":\"https:\/\/laikateam.com\/blog\/#\/schema\/person\/85324b9d37a6585f109582eef56cfbd7\"},\"headline\":\"\\u00bfC\\u00f3mo debe ser el &quot;head&quot; HTML?\",\"datePublished\":\"2018-10-25T13:26:06+00:00\",\"dateModified\":\"2022-07-12T23:51:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/laikateam.com\/blog\/head-html\/#webpage\"},\"wordCount\":533,\"commentCount\":7,\"publisher\":{\"@id\":\"https:\/\/laikateam.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/laikateam.com\/blog\/head-html\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/laikateam.com\/blog\/wp-content\/uploads\/2018\/10\/head-html.jpg\",\"articleSection\":[\"Formaci\\u00f3n\",\"SEO\"],\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/laikateam.com\/blog\/head-html\/#respond\"]}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/laikateam.com\/blog\/#\/schema\/person\/85324b9d37a6585f109582eef56cfbd7\",\"name\":\"Equipo Laikateam\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/laikateam.com\/blog\/#personlogo\",\"inLanguage\":\"es\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ee6b146e019910d72e1a0089dbbba823?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ee6b146e019910d72e1a0089dbbba823?s=96&d=mm&r=g\",\"caption\":\"Equipo Laikateam\"},\"sameAs\":[\"https:\/\/www.laikateam.com\/\"],\"url\":\"https:\/\/laikateam.com\/blog\/author\/equipo-laika\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/laikateam.com\/blog\/wp-json\/wp\/v2\/posts\/5008"}],"collection":[{"href":"https:\/\/laikateam.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/laikateam.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/laikateam.com\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/laikateam.com\/blog\/wp-json\/wp\/v2\/comments?post=5008"}],"version-history":[{"count":2,"href":"https:\/\/laikateam.com\/blog\/wp-json\/wp\/v2\/posts\/5008\/revisions"}],"predecessor-version":[{"id":6837,"href":"https:\/\/laikateam.com\/blog\/wp-json\/wp\/v2\/posts\/5008\/revisions\/6837"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/laikateam.com\/blog\/wp-json\/wp\/v2\/media\/6469"}],"wp:attachment":[{"href":"https:\/\/laikateam.com\/blog\/wp-json\/wp\/v2\/media?parent=5008"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/laikateam.com\/blog\/wp-json\/wp\/v2\/categories?post=5008"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/laikateam.com\/blog\/wp-json\/wp\/v2\/tags?post=5008"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}