"fusionner" html5 et CSS3

Résolu
Bonjour,

voila je debute, et je voudrais creer un site suite a ce que l'on nous a demander en cour
mais je ne parvien pas "fusionner" mon fichier htlm avec mon fichier.css
quelqun peut il maider ?

s'il vous plait

4 réponses

  1. Contributeur
    Salut

    voila les 2 methodes pour mettre du CSS dans une page !

    en CSS embarque

    <!DOCTYPE HTML>
    <html>
    <head>
      <title></title>
      <meta charset="utf-8" />
      <!-- STYLE  EMBARQUE -->
      <style type="text/css">
       .test{
         height: 100px;
         width: 100px;
         background-color: #6B6B6B;
         margin: auto;
         margin-top: 50px;
    
       }
      </style>
      <!-- STYLE  EMBARQUE -->
    </head>
     <body>
       <div class="test">
       </div>
     </body>
    </html>


    ou avec un CSS externe

    <!DOCTYPE HTML>
    <html>
    <head>
      <title></title>
      <meta charset="utf-8" />
        <!-- LIEN VERS LA CSS EXTERNE  "style-externe.css" -->
        <link rel="stylesheet" href="style-externe.css" type="text/css" />
        <!-- LIEN VERS LA CSS EXTERNE  "style-externe.css" -->
    </head>
     <body>
       <div class="test">
       </div>
     </body>
    </html>


    code CSS dans "style-externe.css"
    .test{
         height: 100px;
         width: 100px;
         background-color: #6B6B6B;
         margin: auto;
         margin-top: 50px;
    
       }


    a+
    7
    1. aider moi
      svp c super urgent
      :-(
      0
      1. merci beaucoup je suis désolé je n'avais pas vu
        :(
        tu ma bien aider merci
        0