標籤:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><!--外部樣式表當樣式需要被應用到很多頁面的時候,外部樣式表將是理想的選擇。使用外部樣式表,你就可以通過更改一個檔案來改變整個網站的外觀。--><link rel="stylesheet" type="text/css" href="Untitled-1.css"><!--內部樣式表當單個檔案需要特別樣式時,就可以使用內部樣式表。你可以在 head 部分通過 <style> 標籤定義內部樣式表。--><style type="text/css">h1 {color:blue}p {color: blue}</style><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta http-equiv="Content-Language" content="zh-cn" /><title>第一個</title></head><body><h1>牛氣</h1><!--當特殊的樣式需要應用到個別元素時,就可以使用內聯樣式。 使用內聯樣式的方法是在相關的標籤中使用樣式屬性。樣式屬性可以包含任何 CSS 屬性。以下執行個體顯示出如何改變段落的顏色和左外邊距。以及底圖--><p style="color: red; margin-left:80px; background-image:url(TU/%E6%96%B0%E5%BB%BA%E6%96%87%E4%BB%B6%E5%A4%B9/ser_pic4.jpg)">這便是改變之後的樣式</p><a href="http://www.baidu.com" style="text-decoration:none" target="_blank">這是一個沒有底線的連結!</a></body></html>
html-----002