<!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"> <head><title>title</title> <link rel="stylesheet" type="text/css" href="feuille.css" /> <link rel="stylesheet" media="print" type="text/css" href="f_p.css" /> <link rel="alternate stylesheet" title="joli" type="text/css" href="f_2.css" /> <style type="text/css"> @import url(http://style.com/basic); h1 { color: blue } </style> </head> <body> <h1>Titre bleu</h1> <p style="color:green">Le paragraphe est vert.</p> </body> </html>
Dans chaque document HTML :
<link rel="stylesheet" type="text/css" href="/global.css" />
Dans chaque document HTML :
<link rel="stylesheet" type="text/css" href="/global.css" /> <link rel="stylesheet" type="text/css" href="section.css" />
ou bien un seul link
et @import
au sommet
de la feuille de section :
<link rel="stylesheet" type="text/css" href="section.css" />
@import url("/global.css")
<link rel="stylesheet" type="text/css" href="/global.css" /> <style type="text/css"> .local { color: green } </style> ... <p class="local"><span style="color:#123">unique</span> bla</p>