2006-8-16 作者:佚名 来源:blueidea.com 点击:1358
web标准让大家学会了手写代码,显然这样的效率不够高。关于高效开发早已提到了web标准推广的日程上来了,可是现在的成效还不是很让人满意,我个人观点,开发的时候从整体到局部,提高开发效率的时候要从局部到整体,因为这是一种组装,比如head区域,文章显示块,内容列表块,表单块......让你的代码复用起来。
现在web标准化版面的讨论有点沉闷,也没有了当年的火热,我打算每月搞一次专题讨论,带动大家的热情和对问题的集中解决。
下面是我以前的文章,希望能引起大家的讨论。
小毅已经整理很很多了,但是没有针对DW的,我个人比较喜欢DW,界面美观方便,而且提供多种浏览器预览,做法就是将常用的XHTML代码作成存入DW的剪辑库,不需要的部分就删除掉,现在还在整理中,先列出一部分,也希望大家给以补充。
TOP Code/头部代码
CODE:
CODE:
CODE:
fildset & legend:fildset套在表单外,legend用于描述表单内容。
CODE:
CODE:
CODE:
CODE:
CODE:
现在web标准化版面的讨论有点沉闷,也没有了当年的火热,我打算每月搞一次专题讨论,带动大家的热情和对问题的集中解决。
下面是我以前的文章,希望能引起大家的讨论。
小毅已经整理很很多了,但是没有针对DW的,我个人比较喜欢DW,界面美观方便,而且提供多种浏览器预览,做法就是将常用的XHTML代码作成存入DW的剪辑库,不需要的部分就删除掉,现在还在整理中,先列出一部分,也希望大家给以补充。
TOP Code/头部代码
CODE:
<!--(1)过渡型(Transitional )-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--(2)严格型(Strict )-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--(3)框架型(Frameset )-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<!--设定一个名字空间(Namespace)lang="zh-CN"/-->
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">
<head>
<!--声明你的编码语言:GB2312/UTF-8/Unicode/ISO-8859-1-->
<meta http-equiv="Content-Type" content="text/html; charset=GB2312" />
<meta http-equiv="Content-Language" content="zh-CN" />
<!--为搜索引擎准备的内容-->
<!--允许搜索机器人搜索站内所有链接。如果你想某些页面不被搜索,推荐采用robots.txt方法-->
<meta content="all" name="robots" />
<!--设置站点作者信息-->
<meta name="author" content="ajie@netease.com‚阿捷" />
<!--设置站点版权信息-->
<meta name="Copyright" content="www.w3cn.org‚自由版权‚任意转载" />
<!--站点的简要介绍(推荐)-->
<meta name="description" content="新网页设计师。web标准的教程站点,推动web标准在中国的应用" />
<!--站点的关键词(推荐)-->
<meta content="designing‚ with‚ web‚ standards‚ xhtml‚ css‚ graphic‚ design‚ layout‚ usability‚ ccessibility‚ w3c‚ w3‚ w3cn‚ ajie" name="keywords" />
<!--收藏夹小图标-->
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<title>网页标题</title>
<!--连接样式表-->
<link rel="stylesheet" rev="stylesheet" href="css/style.css" type="text/css" media="all" />
<style type="text/css" media="all">@import url( css/style01.css );</style>
<!--RSS-->
<link rel="alternate" type="application/rss+xml" title="greengnn's space" href="http://www.jluvip.com/blog/feed.asp" />
<!--JS-->
<script src="js/common.js" type="text/javascript" language="javascript" "></script>
</head>
<body></body>
</html>
Example:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--(2)严格型(Strict )-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--(3)框架型(Frameset )-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<!--设定一个名字空间(Namespace)lang="zh-CN"/-->
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">
<head>
<!--声明你的编码语言:GB2312/UTF-8/Unicode/ISO-8859-1-->
<meta http-equiv="Content-Type" content="text/html; charset=GB2312" />
<meta http-equiv="Content-Language" content="zh-CN" />
<!--为搜索引擎准备的内容-->
<!--允许搜索机器人搜索站内所有链接。如果你想某些页面不被搜索,推荐采用robots.txt方法-->
<meta content="all" name="robots" />
<!--设置站点作者信息-->
<meta name="author" content="ajie@netease.com‚阿捷" />
<!--设置站点版权信息-->
<meta name="Copyright" content="www.w3cn.org‚自由版权‚任意转载" />
<!--站点的简要介绍(推荐)-->
<meta name="description" content="新网页设计师。web标准的教程站点,推动web标准在中国的应用" />
<!--站点的关键词(推荐)-->
<meta content="designing‚ with‚ web‚ standards‚ xhtml‚ css‚ graphic‚ design‚ layout‚ usability‚ ccessibility‚ w3c‚ w3‚ w3cn‚ ajie" name="keywords" />
<!--收藏夹小图标-->
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<title>网页标题</title>
<!--连接样式表-->
<link rel="stylesheet" rev="stylesheet" href="css/style.css" type="text/css" media="all" />
<style type="text/css" media="all">@import url( css/style01.css );</style>
<!--RSS-->
<link rel="alternate" type="application/rss+xml" title="greengnn's space" href="http://www.jluvip.com/blog/feed.asp" />
<!--JS-->
<script src="js/common.js" type="text/javascript" language="javascript" "></script>
</head>
<body></body>
</html>
CODE:
<!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" lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="Content-Language" content="zh-CN" />
<meta content="all" name="robots" />
<meta name="author" content="ajie33(at)gmail.com‚阿捷" />
<meta name="Copyright" content="www.w3cn.org‚自由版权‚任意转载" />
<meta name="description" content="新网页设计师‚web标准的教程站点‚推动web标准在中国的应用." />
<meta content="web标准‚web标准教程‚网站重构‚ css布局‚ xhtml‚ css‚xhtml+css‚layout‚ usability‚ w3cn‚ CSS+DIV" name="keywords" />
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="http://www.w3cn.org/favicon.ico" type="image/x-icon" />
<title>网页设计师:怎样过渡</title>
<!-- 调用样式表 -->
<link rel="stylesheet" href="http://www.w3cn.org/style/001/001.css" type="text/css" media="all" charset="utf-8"/>
</head>
<body id="w3cn">
</body>
</html>
</code>
Flash嵌入代码<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="Content-Language" content="zh-CN" />
<meta content="all" name="robots" />
<meta name="author" content="ajie33(at)gmail.com‚阿捷" />
<meta name="Copyright" content="www.w3cn.org‚自由版权‚任意转载" />
<meta name="description" content="新网页设计师‚web标准的教程站点‚推动web标准在中国的应用." />
<meta content="web标准‚web标准教程‚网站重构‚ css布局‚ xhtml‚ css‚xhtml+css‚layout‚ usability‚ w3cn‚ CSS+DIV" name="keywords" />
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="http://www.w3cn.org/favicon.ico" type="image/x-icon" />
<title>网页设计师:怎样过渡</title>
<!-- 调用样式表 -->
<link rel="stylesheet" href="http://www.w3cn.org/style/001/001.css" type="text/css" media="all" charset="utf-8"/>
</head>
<body id="w3cn">
</body>
</html>
</code>
CODE:
<object
type="application/x-shockwave-flash" data="movie.swf"
width="400" height="300">
<param name="movie" value="movie.swf" />
</object>
From:http://www.alistapart.com/stories/flashsataytype="application/x-shockwave-flash" data="movie.swf"
width="400" height="300">
<param name="movie" value="movie.swf" />
</object>
fildset & legend:fildset套在表单外,legend用于描述表单内容。
CODE:
<form>
<fildset>
<legend>title</legend>
<ol>
<li><label for="user-name">用户名</label>
<input type="text" name="uname" id="uname"/></li>
<li><label for="user-password">密 码</label>
<input type="password" name="password" id="user-password" /></li>
</ol>
</fildset>
</form>
dl‚dt‚dd:当页面中出现第一行为类似标题/简述,然后下面为详细描述的内容时应该使用该标签<fildset>
<legend>title</legend>
<ol>
<li><label for="user-name">用户名</label>
<input type="text" name="uname" id="uname"/></li>
<li><label for="user-password">密 码</label>
<input type="password" name="password" id="user-password" /></li>
</ol>
</fildset>
</form>
CODE:
<dl>
<dt></dt>
<dd></dd>
<dt></dt>
<dd></dd>
</dl>
ul‚li无序列表<dt></dt>
<dd></dd>
<dt></dt>
<dd></dd>
</dl>
CODE:
<ul>
<li></li>
<li></li>
</ul>
ol‚li有序列表<li></li>
<li></li>
</ul>
CODE:
<ol>
<li></li>
<li></li>
</ol>
table表格<li></li>
<li></li>
</ol>
CODE:
<table id="mytable" cellspacing="0" summary="The technical specifications of the Apple PowerMac G5 series">
<caption>Table 1: Power Mac G5 tech specs </caption>
<tr>
<th scope="col" abbr="Configurations" class="nobg">Configurations</th>
<th scope="col" abbr="Dual 1.8">Dual 1.8GHz</th>
<th scope="col" abbr="Dual 2">Dual 2GHz</th>
<th scope="col" abbr="Dual 2.5">Dual 2.5GHz</th>
</tr>
<tr>
<th scope="row" abbr="Model" class="spec">Model</th>
<td>M9454LL/A</td>
<td>M9455LL/A</td>
<td>M9457LL/A</td>
</tr>
<tr>
<th scope="row" abbr="G5 Processor" class="specalt">G5 Processor</th>
<td class="alt">Dual 1.8GHz PowerPC G5</td>
<td class="alt">Dual 2GHz PowerPC G5</td>
<td class="alt">Dual 2.5GHz PowerPC G5</td>
</tr>
<tr>
<th scope="row" abbr="Frontside bus" class="spec">Frontside bus</th>
<td>900MHz per processor</td>
<td>1GHz per processor</td>
<td>1.25GHz per processor</td>
</tr>
<tr>
<th scope="row" abbr="L2 Cache" class="specalt">Level2 Cache</th>
<td class="alt">512K per processor</td>
<td class="alt">512K per processor</td>
<td class="alt">512K per processor</td>
</tr>
</table>
<caption>Table 1: Power Mac G5 tech specs </caption>
<tr>
<th scope="col" abbr="Configurations" class="nobg">Configurations</th>
<th scope="col" abbr="Dual 1.8">Dual 1.8GHz</th>
<th scope="col" abbr="Dual 2">Dual 2GHz</th>
<th scope="col" abbr="Dual 2.5">Dual 2.5GHz</th>
</tr>
<tr>
<th scope="row" abbr="Model" class="spec">Model</th>
<td>M9454LL/A</td>
<td>M9455LL/A</td>
<td>M9457LL/A</td>
</tr>
<tr>
<th scope="row" abbr="G5 Processor" class="specalt">G5 Processor</th>
<td class="alt">Dual 1.8GHz PowerPC G5</td>
<td class="alt">Dual 2GHz PowerPC G5</td>
<td class="alt">Dual 2.5GHz PowerPC G5</td>
</tr>
<tr>
<th scope="row" abbr="Frontside bus" class="spec">Frontside bus</th>
<td>900MHz per processor</td>
<td>1GHz per processor</td>
<td>1.25GHz per processor</td>
</tr>
<tr>
<th scope="row" abbr="L2 Cache" class="specalt">Level2 Cache</th>
<td class="alt">512K per processor</td>
<td class="alt">512K per processor</td>
<td class="alt">512K per processor</td>
</tr>
</table>
google搜索:web标准
声明:本站刊载此文不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。如有疑问请与站长联系。
相关链接更多...
- 猫扑网招聘网页设计师2006-8-16
- web标准如何实现高效开发2006-8-16
- 一万欧元征集网页设计 openBC设计大赛启动2006-8-16
- 优化策略:网页设计的七大注意事项2006-8-16
- 做WEB2.0网站可以参考的十九条规则2006-8-16
- 谷歌雅虎微软三巨头联手出击 打击点击欺诈2006-8-16
网友评论
目前没有评论!
全站精华
图文精彩
![2006夏装搭配的美丽之最,美女+靓衣[图]--时装魅影](http://www.fansart.com/uploadfile/200672243703881.jpg)
【2006-7-22 11:21:40】
2006夏装搭配的美丽之最,美女+靓衣
2006夏装搭配的美丽之最,美女+靓衣
![韩国室内设计效果图欣赏[图]--环境艺术](http://www.fansart.com/uploadfile/200671964096361.jpg)
【2006-7-19 15:11:59】
韩国室内设计效果图欣赏
韩国室内设计效果图欣赏
![2006夏装搭配的美丽之最,美女+靓衣[图]--时装魅影](http://www.fansart.com/uploadfile/200671463233205.jpg)
【2006-7-14 17:09:53】
2006夏装搭配的美丽之最,美女+靓衣
2006夏装搭配的美丽之最,美女+靓衣
![瓷砖画册设计[图]--平面广告](http://www.fansart.com/uploadfile/200662167119201.gif)
【2006-6-21 18:36:45】
瓷砖画册设计
瓷砖画册设计
![韩国知名三维制作者李素雅cg作品欣赏[图]--CG插画](http://www.fansart.com/uploadfile/20066967597489.gif)
【2006-6-9 18:40:03】
韩国知名三维制作者李素雅cg作品欣赏
韩国知名三维制作者李素雅cg作品欣赏
![王开立的象素画-"华容点翠"系列1[图]--网页设计](http://www.fansart.com/uploadfile/20066967740609.gif)
【2006-6-8 17:40:50】
王开立的象素画-"华容点翠"系列1
王开立的象素画-"华容点翠"系列1

【2006-5-10 18:31:05】
风景摄影欣赏molnies 1
风景摄影欣赏molnies 1
![人像摄影:《炫影》(1)[图]--摄影艺术](http://www.fansart.com/uploadfile/20065966294533.gif)
【2006-5-9 18:18:49】
人像摄影:《炫影》(1)
人像摄影:《炫影》(1)

【2006-5-8 11:37:48】
韩国品牌YSB夏装 冷艳美人异国风情(3)
韩国品牌YSB夏装 冷艳美人异国风情(3)

【2006-5-8 9:52:42】
MIKE H的CG插画作品欣赏(1)
MIKE H的CG插画作品欣赏(1)
![经典样本设计欣赏(国人作品)1[图]--平面广告](http://www.fansart.com/uploadfile/200642664631465.jpg)
【2006-4-26 17:57:18】
经典样本设计欣赏(国人作品)1
经典样本设计欣赏(国人作品)1

【2006-4-26 14:27:13】
新锐CG插画 Monday to Friday
新锐CG插画 Monday to Friday

【2006-4-26 13:34:46】
Natascha Roeoesli的人物CG插画作品欣赏(1)
Natascha Roeoesli的人物CG插画作品欣赏(1)
![水木清华地产广告欣赏[图]--平面广告](http://www.fansart.com/uploadfile/200642634295921.jpg)
【2006-4-26 9:31:54】
水木清华地产广告欣赏
水木清华地产广告欣赏
![2006夏日流行时尚,创意无限街头华丽[图]--时装魅影](http://www.fansart.com/uploadfile/200642261089093.jpg)
【2006-4-22 16:46:51】
2006夏日流行时尚,创意无限街头华丽
2006夏日流行时尚,创意无限街头华丽
![万科西山庭院.格.沉.尊[图]--平面广告](http://www.fansart.com/uploadfile/200642133015939.jpg)
【2006-4-21 9:08:35】
万科西山庭院.格.沉.尊
万科西山庭院.格.沉.尊
![泊林花园推广故事绘本(2)[图]--CG插画](http://www.fansart.com/uploadfile/200642042197577.jpg)
【2006-4-20 11:43:23】
泊林花园推广故事绘本(2)
泊林花园推广故事绘本(2)
![泊林花园推广故事绘本(1)[图]--CG插画](http://www.fansart.com/uploadfile/200642041664949.jpg)
【2006-4-20 11:34:33】
泊林花园推广故事绘本(1)
泊林花园推广故事绘本(1)
![房地产广告设计-之水墨风格1[图]--平面广告](http://www.fansart.com/uploadfile/200641457308753.jpg)
【2006-4-14 15:56:06】
房地产广告设计-之水墨风格1
房地产广告设计-之水墨风格1
![溯源居广告欣赏--小红人[图]--平面广告](http://www.fansart.com/uploadfile/200641453136345.jpg)
【2006-4-14 14:45:57】
溯源居广告欣赏--小红人
溯源居广告欣赏--小红人
