{"id":566,"date":"2024-06-16T21:18:45","date_gmt":"2024-06-16T19:18:45","guid":{"rendered":"https:\/\/blog.sutilweb.eu\/?page_id=566"},"modified":"2024-06-16T21:18:45","modified_gmt":"2024-06-16T19:18:45","slug":"01-introduccion-a-css3","status":"publish","type":"page","link":"https:\/\/sutilweb.eu\/index.php\/lenguajes\/css3\/css3-basico\/01-introduccion-a-css3\/","title":{"rendered":"01. Introducci\u00f3n a CSS3"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>CSS<\/strong> es el lenguaje que se usa para dotar de estilo a una p\u00e1gina web.<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\">Qu\u00e9 es CSS<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>CSS<\/strong> significa <strong>Cascading Style Sheets<\/strong> (hojas de estilo de cascada)<\/li>\n\n\n\n<li><strong>CSS<\/strong> describe c\u00f3mo se deben mostrar los elementos HTML en la pantalla, el papel o en otros medios<\/li>\n\n\n\n<li><strong>CSS<\/strong> ahorra mucho trabajo. Puede controlar el dise\u00f1o de varias p\u00e1ginas web a la vez<\/li>\n\n\n\n<li>Las hojas de estilo externas se almacenan en archivos <strong>CSSa<\/strong><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Por qu\u00e9 usar CSS<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>CSS<\/strong> se usa para definir estilos para sus p\u00e1ginas web, incluido el dise\u00f1o, el dise\u00f1o y las variaciones en la visualizaci\u00f3n para diferentes dispositivos y tama\u00f1os de pantalla.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Ejm<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n&lt;head&gt;\n<strong>&lt;style&gt;<\/strong>\n<strong>body {<\/strong>\n<strong>background-color: lightblue;<\/strong>\n<strong>}<\/strong>\n\n<strong>h1 {<\/strong>\n<strong>color: white;<\/strong>\n<strong>text-align: center;<\/strong>\n<strong>}<\/strong>\n\n<strong>p {<\/strong>\n<strong>font-family: verdana;<\/strong>\n<strong>font-size: 20px;<\/strong>\n<strong>}<\/strong>\n<strong>&lt;\/style&gt;<\/strong>\n&lt;\/head&gt;\n&lt;body&gt;\n\n&lt;h1&gt;My First CSS Example&lt;\/h1&gt;\n&lt;p&gt;This is a paragraph.&lt;\/p&gt;\n\n&lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">CSS resuelve un gran problema<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>HTML<\/strong> NUNCA tuvo la intenci\u00f3n de contener etiquetas para formatear una p\u00e1gina web.&nbsp;<strong>HTML<\/strong> fue creado para describir el contenido de una p\u00e1gina web, como:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>&lt;h1>Este es un encabezado&lt;\/h1><\/li>\n\n\n\n<li>&lt;p>Esto es un p\u00e1rrafo.&lt;\/p><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Cuando se agregaron etiquetas como <strong><em>&lt;font&gt;<\/em><\/strong> y atributos como <strong><em>color<\/em><\/strong> a la especificaci\u00f3n HTML 3.2, comenz\u00f3 una pesadilla para los desarrolladores web. El desarrollo de grandes sitios web, donde se a\u00f1ad\u00eda informaci\u00f3n de fuentes y colores a cada p\u00e1gina, se convirti\u00f3 en un proceso largo y costoso. Para resolver este problema, el <strong>World Wide Web Consortium<\/strong> (<strong>W3C<\/strong>) cre\u00f3 <strong>CSS<\/strong>. \u00a1<strong>CSS<\/strong> elimin\u00f3 el formato de estilo de la p\u00e1gina <strong>HTML<\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">CSS nos ahorra un mont\u00f3n de trabajo<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Las definiciones de estilo normalmente se guardan en archivos .<strong><em>css<\/em> <\/strong>externos. \u00a1Con un archivo de hoja de estilo externo, puedes cambiar el aspecto de un sitio web completo cambiando solo un archivo!.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CSS es el lenguaje que se usa para dotar de estilo a una p\u00e1gina web.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":563,"menu_order":0,"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-566","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":"CSS es el lenguaje que se usa para dotar de estilo a una p\u00e1gina web.","_links":{"self":[{"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/pages\/566","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=566"}],"version-history":[{"count":1,"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/pages\/566\/revisions"}],"predecessor-version":[{"id":567,"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/pages\/566\/revisions\/567"}],"up":[{"embeddable":true,"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/pages\/563"}],"wp:attachment":[{"href":"https:\/\/sutilweb.eu\/index.php\/wp-json\/wp\/v2\/media?parent=566"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}