{"id":227,"date":"2024-11-08T13:14:42","date_gmt":"2024-11-08T10:14:42","guid":{"rendered":"https:\/\/planeta21vek.ru\/elina732\/isp\/?p=227"},"modified":"2025-11-20T21:28:50","modified_gmt":"2025-11-20T18:28:50","slug":"metadatos-html-con-ejemplos-y-contenido-head","status":"publish","type":"post","link":"https:\/\/planeta21vek.ru\/elina732\/isp\/2024\/11\/08\/metadatos-html-con-ejemplos-y-contenido-head\/","title":{"rendered":"Metadatos HTML con ejemplos y contenido HEAD"},"content":{"rendered":"<p style=\"text-align: justify;\">La metaetiqueta contiene metadatos sobre el documento HTML. Puede incluir informaci\u00f3n como el nombre del autor, t\u00edtulo del documento, palabras clave y juego de caracteres.<\/p>\n<p><!--more--><br \/>\n<img decoding=\"async\" src=\"https:\/\/planeta21vek.ru\/elina732\/isp\/wp-content\/uploads\/2024\/11\/tegi0811241.jpg\"\/><\/p>\n<p style=\"text-align: justify;\">\nAtributos meta:<br \/>\ncharset &#8211; Especifica la codificaci\u00f3n del documento.<br \/>\ncontent &#8211; Establece el valor de un atributo especificado con name o http-equiv.<br \/>\nhttp-equiv &#8211; Dise\u00f1ado para convertir metaetiquetas en t\u00edtulos HTTP.<br \/>\nname &#8211; El nombre de la metaetiqueta tambi\u00e9n establece indirectamente su finalidad.\n<\/p>\n\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;head&gt;\r\n  &lt;meta charset=&quot;UTF-8&quot;&gt;\r\n  &lt;meta name=&quot;description&quot; content=&quot;Esta es la descripci\u00f3n de la p\u00e1gina web&quot;&gt;\r\n  &lt;meta name=&quot;keywords&quot; content=&quot;HTML, CSS, JavaScript&quot;&gt;\r\n  &lt;meta name=&quot;author&quot; content=&quot;Iv\u00e1n Ivanov&quot;&gt;\r\n  &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;\r\n&lt;title&gt;Mi pagina de prueba&lt;\/title&gt;\r\n&lt;\/head&gt;\r\n<\/pre>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;meta name=&quot;twitter:title&quot; content=&quot;MDN Web Docs&quot; \/&gt;\r\n<\/pre>\n<p style=\"text-align: justify;\">Uno de los resultados de agregar estos metadatos es que cuando agregas un enlace MDN Web Docs en facebook, Se mostrar\u00e1 con una imagen y descripci\u00f3n, mejorando la experiencia del usuario _(User eXperience, UX)_:<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;meta\r\n  property=&quot;og:image&quot;\r\n  content=&quot;https:\/\/developer.mozilla.org\/mdn-social-share.png&quot; \/&gt;\r\n&lt;meta\r\n  property=&quot;og:description&quot;\r\n  content=&quot;La documentaci\u00f3n web sobre MDN proporciona\r\nproporciona informaci\u00f3n sobre tecnolog\u00edas web abiertas, incluidas HTML, CSS y varias API de sitios web\r\ny aplicaciones web progresivas. El sitio tambi\u00e9n contiene materiales para desarrolladores sobre tales\r\nProductos de Mozilla como herramientas para desarrolladores Firefox.&quot; \/&gt;\r\n&lt;meta property=&quot;og:title&quot; content=&quot;MDN Web Docs&quot; \/&gt;\r\n<\/pre>\n<p style=\"text-align: justify;\">Puede especificar diferentes iconos para diferentes dispositivos. Por ejemplo, en la p\u00e1gina principal MDN:<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;link rel=&quot;shortcut icon&quot; href=&quot;favicon.ico&quot; type=&quot;image\/x-icon&quot; \/&gt;\r\n&lt;!-- Para iPad 3 con pantalla Retina de alta definici\u00f3n: --&gt;\r\n&lt;link rel=&quot;apple-touch-icon-precomposed&quot; sizes=&quot;144x144&quot; href=&quot;https:\/\/developer.mozilla.org\/static\/img\/favicon144.png&quot; \/&gt;\r\n&lt;!-- Para iPhone con pantalla Retina de alta definici\u00f3n: --&gt;\r\n&lt;link rel=&quot;apple-touch-icon-precomposed&quot; sizes=&quot;114x114&quot; href=&quot;https:\/\/developer.mozilla.org\/static\/img\/favicon114.png&quot; \/&gt;\r\n&lt;!-- Para iPad primera y segunda generaci\u00f3n: --&gt;\r\n&lt;link rel=&quot;apple-touch-icon-precomposed&quot; sizes=&quot;72x72&quot; href=&quot;https:\/\/developer.mozilla.org\/static\/img\/favicon72.png&quot; \/&gt;\r\n&lt;!-- Para iPhone, iPod Touch sin Retina y dispositivos con Android 2.1+: --&gt;\r\n&lt;link rel=&quot;apple-touch-icon-precomposed&quot; href=&quot;https:\/\/developer.mozilla.org\/static\/img\/favicon57.png&quot; \/&gt;\r\n&lt;!-- Para otros casos - normal favicon --&gt;\r\n&lt;link rel=&quot;shortcut icon&quot; href=&quot;https:\/\/developer.mozilla.org\/static\/img\/favicon32.png&quot; \/&gt;\r\n<\/pre>\n<p style=\"text-align: justify;\">Conexi\u00f3n CSS y JavaScript<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;link rel=&quot;stylesheet&quot; href=&quot;my-css-file.css&quot; \/&gt;\r\n&lt;script src=&quot;my-js-file.js&quot;&gt;&lt;\/script&gt;\r\n<\/pre>\n<p style=\"text-align: justify;\">Incorporado CSS y JavaScript<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;script&gt;\r\n..............\r\n&lt;\/script&gt;\r\n&lt;style&gt;\r\n.................\r\n&lt;\/style&gt;\r\n<\/pre>\n<p style=\"text-align: justify;\">Idioma principal de la p\u00e1gina HTML<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;html lang=&quot;ru&quot;&gt;\r\n&lt;html lang=&quot;en-US&quot;&gt;\r\n<\/pre>\n\n","protected":false},"excerpt":{"rendered":"<p>La metaetiqueta contiene metadatos sobre el documento HTML. Puede incluir informaci\u00f3n como el nombre del autor, t\u00edtulo del documento, palabras clave y juego de caracteres.<\/p>\n","protected":false},"author":1,"featured_media":228,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,7],"tags":[112,13,113],"class_list":{"0":"post-227","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-htmlverstka","8":"category-programmirovanie","9":"tag-head","10":"tag-html","11":"tag-meta"},"_links":{"self":[{"href":"https:\/\/planeta21vek.ru\/elina732\/isp\/wp-json\/wp\/v2\/posts\/227","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/planeta21vek.ru\/elina732\/isp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/planeta21vek.ru\/elina732\/isp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/planeta21vek.ru\/elina732\/isp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/planeta21vek.ru\/elina732\/isp\/wp-json\/wp\/v2\/comments?post=227"}],"version-history":[{"count":2,"href":"https:\/\/planeta21vek.ru\/elina732\/isp\/wp-json\/wp\/v2\/posts\/227\/revisions"}],"predecessor-version":[{"id":272,"href":"https:\/\/planeta21vek.ru\/elina732\/isp\/wp-json\/wp\/v2\/posts\/227\/revisions\/272"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/planeta21vek.ru\/elina732\/isp\/wp-json\/wp\/v2\/media\/228"}],"wp:attachment":[{"href":"https:\/\/planeta21vek.ru\/elina732\/isp\/wp-json\/wp\/v2\/media?parent=227"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/planeta21vek.ru\/elina732\/isp\/wp-json\/wp\/v2\/categories?post=227"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/planeta21vek.ru\/elina732\/isp\/wp-json\/wp\/v2\/tags?post=227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}