Problème css

fafa576 Messages postés 109 Statut Membre -  
notobe Messages postés 2222 Statut Membre -
BONJOUR c katrina d australie j ai un problime avec css voila j utilise la methode a pour cela je dois ecrire le code comme cela
<head>
<title><P><I>Bienvenue sur mon site< </p></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<link rel="stylesheet" media="screen" type="text/css" title="style" href="style.css" />

</head>
evidament j ai crier un fichier dans mon dossier que j ai appeller style.css le problime c que qaund j ecris un code dans le fichier css rien napparit a ma page htlm merci aider moi s il vous plait

2 réponses

  1. avion-f16 Messages postés 19182 Date d'inscription   Statut Contributeur Dernière intervention   4 511
     
    Inutile de mettre le DTD XHTML 1.0 Strict si tu ne respectes pas ce standards !
    J'espère que ton site n'est pas à but professionnel !

    En valide XHTML 1.0 Strict, ça donne ça :
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
    <head>
    	<title>Bienvenue sur mon site</title>
    	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    
    	<link rel="stylesheet" media="screen" type="text/css" title="style" href="style.css" />
    </head>
    <body style="background:url('alah.jpg');">
    
    <h1 style="color:red;">Mr. Stophe Weblife</h1>
    
    <div style="text-align:center;">
    	<h3 style="color:red; font-style:italic;">Présentation :</h3>
    	
    	<p style="color:white;">
    		Je suis <strong>Mr. Mustafa</strong>, âgé de 28 ans, j'habite à Gadir au Maroc.<br/>
    		Ma profession est informaticien.<br/>
    	</p>
    	
    	<p style="color:white;">
    		J'aime la poésie, la lecture, le sport, la musique mon chanteur préféré est Gorge Wassouf.
    	</p>
    
    	<a href="mailto:afouk_musta@hotmail.com">Me contacter</a><br/>
    	
    	<img src="photo50.jpeg" style="width:500px; height:375px;" alt="Photo de mustapha" /><br/>
    	<a href="mon2eme_fichier.html#images">images</a>
    </div>
    
    </body>
    </html>
    1
    1. fafa576 Messages postés 109 Statut Membre 1
       
      j aimerai connaitre la methode la plus simple pour attacher ma page html a mon code css comment faire se rattachement merci
      0
    2. notobe Messages postés 2222 Statut Membre 213
       
      Pas la peine de faire 2 topics pour la même chose !
      0
  2. rudak Messages postés 590 Date d'inscription   Statut Membre Dernière intervention   46
     
    tu peux montrer le code du reste de ta page stp ?
    (la page en entier)
    0
    1. fafa576 Messages postés 109 Statut Membre 1
       
      oui avec plaisir le voila
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
      <head>
      <title><P><I>Bienvenue sur mon site< </p></title>
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

      <link rel="stylesheet" media="screen" type="text/css" title="style" href="style.css" />


      </head>

      <body background="alah.jpg"> <p><FONT color="red "><h1><B><KBD>mr stophe weblife </KBD> </B> <h1></FONT>
      </P>
      <blockquote>
      <p><FONT color="red "><h3> <em><SUP>presentation:</sup></em> </h3></FONT> <FONT color="white "><CENTER> <h4>je suis <strong> mr mustafa</strong> 28 ans ,j habite agadir from morocco ma profession est informaticien<h4></P></br>
      <P> <h4>j aime la poésie,lecture,sport,musique mon chanteur préféré est gorge wassouf</CENTER><h4></FONT> </p>
      <p>

      <a href="mailto:afouk_musta@hotmail.com">contacter moi </a><br/>
      <p>

      <center>
      <img src="photo50.jpeg" width="500" height="375"alt="Photo de mustapha" /></center>
      </p>
      <center>
      <a href="mon2eme_fichier.html#images">images</a></center>

      </p>
      </blockquote>
      </body>
      </html>
      0