01_CSS外部文件與內嵌樣式表\01_外部引用CSS檔

01_CSS外部文件與內嵌樣式表\01_外部引用CSS檔

01_CSS外部文件與內嵌樣式表\01_外部引用CSS檔

 

相關網址:http://tohtml.com/html/

css file

p.demo {
color: white;
background-color: black;
}

html file

<!--
p.demo {
    color: white;
    background-color: black;
}
-->
<html>
<head>
<title>網頁標題</title>
<linkrel="stylesheet"type="text/css"href="demo01.css">
</head>
<body>
<pclass="demo">
You ever have that feeling where you're not sure if
you're awake or still dreaming?</p>
<p>A prison for your mind.</p>
<pclass="demo">
Free your mind.</p>
<p>Believe the unbelievable.</p>
<pclass="demo">
There is no spoon.</p>
<p>I can only show you the door, you have to walk through it.</p>
<pclass="demo">
Choice. The problem is choice.</p>
<p>Then tomorrow we may all be dead, but how would that be different from any other day?</p>
<pclass="demo">
I have dreamed a dream, but now that dream has gone
from me.</p>
<p>Choice is an illusion, created between those with power, and those without.</p>
<pclass="demo">
Because I choose to.</p>
<p>Everything that has a beginning has an end.</p>
</body>
</html>

 

 

 

 


發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *