Introducción a CSS: Aplicación de estilos HTML

Editor en by con 1201 comentarios

En este curso de Aplicación de Estilos en HTML de Profexor.com, Mariano Carrizo nos comenta que en un sitio de contenido HTML se pueden aplicar estilos de diferentes maneras. La manera más básica es aplicando la etiqueta “Style”. Esta etiqueta correspondiente al HTML permite definir en su interior el lenguaje de estilos CSS con el que se aplicarán las reglas a cada uno de los elementos del contenido HTML. Si bien no existe una regla básica de dónde se debe definir esa etiqueta “Style”, es recomendable hacerlo dentro de la etiqueta “head” (entre el comienzo de la etiqueta “head”… (VER FOTO #1)

…y el final de la etiqueta barra-“head”. En el interior de esta etiqueta, dice el profesor, se van a aplicar siempre las reglas no visuales, es decir, elementos que no se verán en el navegador web a la hora de revisar este contenido HTML, por lo tanto será aquí –en el sitio indicado- donde insertaremos nuestras definiciones de estilos CSS. El profesor aplica la etiqueta “Style” en el espacio que ha determinado. (VER FOTO 2)

Esta etiqueta no tiene un parámetro obligatorio, pero siempre será recomendable aclarar que el tipo de contenido que va a tener va a ser del tipo “texto/css”, de esta manera, cualquier intérprete del contenido HTML tendrá en cuenta que lo que está dentro de esa etiqueta va a ser definición de estilos CSS. El profesor cierra la etiqueta “Style”. En este caso Dreamweaver coloca un color violeta a la etiqueta para poder resaltar que lo que está allí es una definición de estilos (VER FOTO ANTERIOR)

Mariano indica que, adicionalmente, se va a agregar siempre a la declaración de la etiqueta “Style” un comentario de HTML. Esto no es obligatorio, pero sí es una regla que permitirá tener compatibilidad con cualquier tipo de dispositivos, aun cuando no soporte estilos CSS. Las etiquetas de comentario de HTML permitirán que, si un navegador web no soporta estilos CSS, lo que quede dentro de esta etiqueta va a ser comentado como si fuera un comentario básico de HTML, por lo tanto, no incurrirá en errores para la visualización de la página. Una vez adentro, se pueden colocar las definiciones de los estilos. Si bien más adelante se habla de cómo se asignan los estilos, vamos a definir una regla básica que aplicará un diseño al encabezado de tipo h1 que tenemos en esta página HTML (VER FOTO #3)

Por ejemplo, el profesor establece el color, escribe “rojo” (VER FOTO #4)

de esa forma él acaba de definir una regla de estilo CSS. Salva el documento y hace una previsualización en el navegador web. Dice que ahora, el contenido HTML tiene aplicados estilos CSS a través de una etiqueta “Style” (VER FOTO #5)

VER VIDEO


40 thoughts on “Introducción a CSS: Aplicación de estilos HTML

  1. Felicitaciones, este sitio tiene mucha pesquisa práctica y buen delineamiento. Me ineteresaría darle las gracias por ofrecer sus ideas y invertir tiempo originando escritos. Buen trabajo!

    • Siempre hay publicaciones nuevas que son una razón para que regreses. Mil gracias por escribir. Saludos

  2. Introducción a CSS: Aplicacion de estilos en html | Blog | Profexor.com I was suggested this web site by my cousin. I am not sure whether this post is written by him as nobody else know such detailed about my trouble. You’re amazing! Thanks! your article about Introducción a CSS: Aplicacion de estilos en html | Blog | Profexor.comBest Regards Cassetta

  3. Nice post at Introducción a CSS: Aplicacion de estilos en html | Blog | Profexor.com. I was checking continuously this blog and I’m impressed! Extremely helpful info specially the last part 🙂 I care for such info much. I was seeking this particular information for a very long time. Thank you and best of luck.

  4. Excellent post at Introducción a CSS: Aplicacion de estilos en html | Blog | Profexor.com. I was checking constantly this blog and I am impressed! Extremely useful information particularly the last part 🙂 I care for such info a lot. I was looking for this particular info for a very long time. Thank you and good luck.

  5. Introducción a CSS: Aplicacion de estilos en html | Blog | Profexor.com Very nice post. I just stumbled upon your weblog and wanted to say that I have truly enjoyed surfing around your blog posts. In any case I will be subscribing to your feed and I hope you write again soon!

  6. Introducción a CSS: Aplicacion de estilos en html | Blog | Profexor.com I was recommended this website by my cousin. I’m not sure whether this post is written by him as nobody else know such detailed about my problem. You’re wonderful! Thanks! your article about Introducción a CSS: Aplicacion de estilos en html | Blog | Profexor.comBest Regards Cindy

  7. This is the proper Introducción a CSS: Aplicacion de estilos en html | Blog | Profexor.com blog for anyone who wants to essay out out around this content. You respond so some its almost wearing to discourse with you (not that I real would want…HaHa). You definitely put a new reel on a substance thats been backhand virtually for geezerhood. Overnice meaninglessness, simply extraordinary!

  8. This is the penalize Introducción a CSS: Aplicacion de estilos en html | Blog | Profexor.com diary for anyone who wants to move out out about this matter. You observation so much its virtually exhausting to present with you (not that I real would want…HaHa). You definitely put a new extend on a topic thats been scrawled nearly for life. Metropolis hooey, just extraordinary!

  9. Wow, marvelous blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your site is wonderful, as well as the content!. Thanks For Your article about Introducción a CSS: Aplicacion de estilos en html | Blog | Profexor.com .

  10. My brother suggested I might like this blog. He was totally right. This post truly made my day. You cann’t imagine simply how much time I had spent for this information! Thanks!

  11. Pingback: Goozle Zone

  12. Wow, incredible blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your web site is wonderful, let alone the content!. Thanks For Your article about Introducción a CSS: Aplicacion de estilos en html | Blog | Profexor.com .

  13. Attractive section of content. I just stumbled upon your blog and in accession capital to assert that I acquire in fact enjoyed account your blog posts. Any way I will be subscribing to your augment and even I achievement you access consistently fast.

  14. Nice post at Introducción a CSS: Aplicacion de estilos en html | Blog | Profexor.com. I was checking constantly this blog and I’m impressed! Very useful information specially the last part 🙂 I care for such information much. I was looking for this certain information for a long time. Thank you and best of luck.

  15. Great post at Introducción a CSS: Aplicacion de estilos en html | Blog | Profexor.com. I was checking continuously this blog and I’m impressed! Very helpful info specifically the last part 🙂 I care for such info a lot. I was seeking this certain information for a very long time. Thank you and best of luck.

  16. Wow, fantastic blog layout! How long have you been blogging for? you made blogging look easy. The overall look of your site is excellent, let alone the content!. Thanks For Your article about Introducción a CSS: Aplicacion de estilos en html | Blog | Profexor.com .

  17. Wow, marvelous blog layout! How long have you been blogging for? you made blogging look easy. The overall look of your site is magnificent, as well as the content!. Thanks For Your article about Introducción a CSS: Aplicacion de estilos en html | Blog | Profexor.com .

  18. Wow, superb blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your website is wonderful, as well as the content!. Thanks For Your article about Introducción a CSS: Aplicacion de estilos en html | Blog | Profexor.com .

  19. I’m commenting to make you be aware of of the useful encounter our daughter obtained checking your webblog. She discovered a good number of details, most notably what it is like to have a great coaching mindset to get the others with no trouble fully understand several advanced subject areas. You really did more than people’s expected results. Thanks for providing these beneficial, trustworthy, informative and also cool guidance on that topic to Julie.

  20. I and also my friends were actually looking at the great hints found on the blog and then instantly I had an awful suspicion I had not thanked the web site owner for them. Those young boys were so stimulated to see them and have now certainly been loving those things. Appreciation for simply being really accommodating and then for picking some essential information most people are really eager to understand about. My personal honest apologies for not expressing gratitude to you earlier.

  21. I just wanted to construct a brief message to be able to express gratitude to you for all of the remarkable hints you are giving out on this site. My rather long internet investigation has now been rewarded with incredibly good strategies to share with my company. I would say that many of us website visitors are extremely blessed to be in a fabulous network with very many wonderful people with valuable strategies. I feel very much lucky to have seen your entire weblog and look forward to plenty of more entertaining moments reading here. Thank you again for all the details.

  22. Thanks so much for providing individuals with remarkably terrific chance to discover important secrets from here. It is always very amazing and as well , stuffed with a great time for me personally and my office colleagues to search your web site really three times a week to read through the new stuff you have. And definitely, we’re usually fulfilled for the good advice you give. Certain 4 facts in this article are honestly the best we have had.

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *