萬盛學電腦網

 萬盛學電腦網 >> 網頁制作 >> 腳本Html教程 >> html標准寫法與dreamweaver自動生成的不一樣

html標准寫法與dreamweaver自動生成的不一樣

 代碼如下:


<!--doctype指定文檔類型htm-->
<!doctype html>
<html>
<header>
<!--設置字符集 utf-8-->
<meta charset="utf-8">
<style>
<!--這裡寫你的css代碼-->
</style>
<script>
//這裡寫你的js代碼
</script>
</header>
<body>
<!--這裡bof體內容-->
</body>
</html>
接下來介紹html標簽
<br/> 換行標簽
//不換行
<nobr>
<img src="http://file.ynet.com/2/1403/26/8829944-148x86.jpg">
<img src="http://file.ynet.com/2/1403/26/8829944-148x86.jpg">
<img src="http://file.ynet.com/2/1403/26/8829944-148x86.jpg">
<img src="http://file.ynet.com/2/1403/26/8829944-148x86.jpg">
<img src="http://file.ynet.com/2/1403/26/8829944-148x86.jpg">
<img src="http://file.ynet.com/2/1403/26/8829944-148x86.jpg">
<img src="http://file.ynet.com/2/1403/26/8829944-148x86.jpg">
<img src="http://file.ynet.com/2/1403/26/8829944-148x86.jpg">
<img src="http://file.ynet.com/2/1403/26/8829944-148x86.jpg">
<img src="http://file.ynet.com/2/1403/26/8829944-148x86.jpg">
<img src="http://file.ynet.com/2/1403/26/8829944-148x86.jpg">
</nobr>
//居中樣式
<center>
<p>saddddddddddddddddddddddddddddddddd</p>
<img src="http://file.ynet.com/2/1403/26/8829944-148x86.jpg">
<img src="http://file.ynet.com/2/1403/26/8829944-148x86.jpg">
<img src="http://file.ynet.com/2/1403/26/8829944-148x86.jpg">
<img src="http://file.ynet.com/2/1403/26/8829944-148x86.jpg">
<img src="http://file.ynet.com/2/1403/26/8829944-148x86.jpg">
<img src="http://file.ynet.com/2/1403/26/8829944-148x86.jpg">
</center>  
copyright © 萬盛學電腦網 all rights reserved