html标准写法与dreamweaver自动生成的不一样
2014-07-13来源:易贤网

代码如下:

<!--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>

更多信息请查看IT技术专栏

推荐信息