Home » CSS INTRODUZIONE Lezione HTML/CSS (5)

CSS INTRODUZIONE Lezione HTML/CSS (5)

  • stefano 

CSS Introduzione

Possiamo attribuire un colore o un formato ad un qualsiasi elemento.

 esempi: 
 h1{ 
   color: blue;
   font-size:30px;
 }  
 
 Img{
   border-color: yellow;
   border-width: 3px; 
 } 

Il linguaggio css si può scrivere direttamente nella pagina del codice html, ma è consigliato scriverlo a parte. 

 esempio:

 <head> 
   <title> css </title>
   <style type = "text/css">
   li{
      color: blue;
   } 
   </style>
 </head> 

File esterno CSS

 <head>
    <title> css colors </title> 
    <link rel = ”stylesheet" type = "text/css" href = “style.css”>
 </head> 

si usa il link(tag) per indirizzare il codice css ad una pagina html

link utili: W3Schools

Skill