{"id":4564,"date":"2025-03-03T12:34:13","date_gmt":"2025-03-03T11:34:13","guid":{"rendered":"https:\/\/sutilweb.eu\/?page_id=4564"},"modified":"2025-03-03T12:34:13","modified_gmt":"2025-03-03T11:34:13","slug":"11-diferencias-entre-etiquetas-de-bloque-y-en-linea","status":"publish","type":"page","link":"https:\/\/sutilweb.eu\/index.php\/lenguajes\/html5\/html5-practico\/11-diferencias-entre-etiquetas-de-bloque-y-en-linea\/","title":{"rendered":"11. Diferencias entre etiquetas de bloque y en l\u00ednea"},"content":{"rendered":"\n<p>De todas las etiquetas&nbsp;<strong>HTML<\/strong>, hay un conjunto que trabaja en linea y otro conjunto que trabaja en bloque. La etiqueta de bloque por excelencia es&nbsp;<strong><em>&lt;div&gt;.<\/em><\/strong>&nbsp;Y la etiqueta de linea por excelencia es&nbsp;<strong><em>&lt;span&gt;.<\/em><\/strong>&nbsp;Ambas no tienen contenido sem\u00e1ntico.<\/p>\n\n\n\n<p>Una&nbsp;<strong>etiqueta de bloque<\/strong>&nbsp;es aquella que genera un salto de linea con sus etiqueta hermana, mientras que una etiqueta en linea no los genera. Las&nbsp;<strong>etiquetas de bloque<\/strong>&nbsp;van a generar un&nbsp;<strong>salto de linea<\/strong>&nbsp;tanto hacia arriba como hacia abajo. Una&nbsp;<strong>etiqueta de bloque<\/strong>&nbsp;va a disponer todo el ancho disponible.<\/p>\n\n\n\n<p>Una&nbsp;<strong>etiqueta de linea<\/strong>&nbsp;s\u00f3lo ocupa el espacio necesario que tiene su contenido.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>De todas las etiquetas&nbsp;HTML, hay un conjunto que trabaja en linea y otro conjunto que trabaja en bloque. La etiqueta [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":89,"menu_order":10,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-4564","page","type-page","status-publish","hentry"],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"Sutil Web","author_link":"https:\/\/sutilweb.eu\/index.php\/author\/sutilweb\/"},"uagb_comment_info":0,"uagb_excerpt":"De todas las etiquetas&nbsp;HTML, hay un conjunto que trabaja en linea y otro conjunto que trabaja en bloque. La etiqueta [&hellip;]","_links":{"self":[{"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/pages\/4564","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/comments?post=4564"}],"version-history":[{"count":1,"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/pages\/4564\/revisions"}],"predecessor-version":[{"id":4565,"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/pages\/4564\/revisions\/4565"}],"up":[{"embeddable":true,"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/pages\/89"}],"wp:attachment":[{"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/media?parent=4564"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}