亚洲免费在线-亚洲免费在线播放-亚洲免费在线观看-亚洲免费在线观看视频-亚洲免费在线看-亚洲免费在线视频

Andy Budd的樣式指南

系統 1762 0

Andy Budd的樣式指南

Andy Budd的樣式指南 keyword:cssMastery,andy Budd,style Guide,css樣式表組織與規劃.
下載地址: http://files.cnblogs.com/JustinYoung/Styleguide.rar
CSS Mastery 》作者 Andy Budd 提供的《 Style Guide 》.對web標準中的css組織和規劃很有指導意義.


Example Style Guide

The following document is a style guide to assist in the production, implementation and continuing development of the [Client] website. This document outlines the overall file structure, naming conventions, design and coding guidelines, styles and resources used in the construction of this site. To ensure design continuity and maintain the life span of this site, it is important that everybody involved in the development, maintenance and updating of this site read, understand and adhere to these guidelines.

1.0 Coding Standards

This sections details the minimum coding standards required by the [Client] site.

1.1 Validation

This site is designed to the XHTML 1.0 Strict and CSS2.1 specifications as laid down by the WC3 (World Wide Web Consortium). All new and existing pages must aim to validate against these specifications.

1.2 DOCTYPE Declaration

In order to conform to XHTML 1.0 Strict, every (X)HTML page on the site must start with the following DOCTYPE declaration.

          
            <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
          
        

1.3 Accessibility

This site aims to meet Double-A accessibility conformance as outlined in WCAG 1.0 (Web Content Accessibility Guidelines 1.0).

1.4 Browser Support

The following table outlines browser support requirements for this site.

Browser Family Support Level
IE 6+ Target
Firefox 1.x Target
Safari 2.x Target
Opera 8.x Supported
IE 5.5 Supported
Netscape 6 Supported
IE5.x/Mac Partially Supported
IE 5.0 Partially Supported
Opera 5.0-7.x Partially Supported
IE 4.0 Partially Supported
NN 4.0 Partially Supported
IE4.0/Mac Unsupported
  • Target – Most popular browsers at present. Everything must work as intended
  • Supported – Old but popular browser. All content and functionality must work with minimal degradation.
  • Partially supported – Old and buggy browsers. Not supported but not officially unsupported. Content and functionality must work. Degradation must be graceful and should not obscure content.
  • Unsupported – Buggy and unsupported browsers. Advice current users to upgrade.

1.5 Character Set

All pages should use the Unicode UTF-8 character set.

          
            <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
          
        

All special characters should be marked up using the correct named entity or Unicode equivalent in order for the page to display correctly across browsers and to validate. In particular, use the following codes for common special characters:

Name Symbol Code
Ampersand & &amp;
Left Double Quote &ldquo;
Right Double Quote &rdquo;
Less Than < &lt;
Greater Than > &gt;
en-dash - &endash;
em-dash &emdash;
Ellipsis &helip;

Take special care when inputting content created in a word processor.

1.6 Title, Keywords and Descriptions

To encourage ease of navigation and good search engine ranking, all pages should contain a title, description and keywords. These content elements should be created by the content editor and not left to the developer.

Page title should be simple, descriptive and distinct, avoiding marketing hyperbole. For consistency, all titles should be in the format:

          
            <title>
            
              [Client] – [Section]:[Page]
            
            </title>
          
        

Page descriptions should describe the content and purpose of the page in 1-3 short sentences.

          
            <meta name="Description" content="Page summary goes here." />
          
        

Page keywords are used to add synonyms and additional meaning to a page. Keywords should not be used to add irrelevant or unrelated words to a page.

<meta name="keywords" content="word 1, word 2, word n" />
        

1.7 Alternative Text for Images

Alternative text is required for every image element on the site. Alt text must provide an adequate description of the content or function of the image. Alternative text is content and must be created by the content editor. It must not be left for the web developer to decide.

          
            <img src="/img/xxxx.gif" 
            
              alt="Add image description text here."
            
             width="xx" height="xx" />
          
        

If the image is purely decorative, the alt text can be left blank.

          
            <img src="/img/pretty.gif" 
            
              alt=""
            
             width="xx" height="xx" />
          
        

1.8 Links

The text within links should be unique and describe the destination of the link. Links saying “Click Here” or “More” should be avoided.

          
            <a href="news.php">More News Stories</a>
          
        

Links that open in a new window should be avoided. However if there is a good usability reason for doing so (i.e. providing contextual help), the link text must inform the user.

          
            <a href="help.php">Help (open new window)</a>
          
        

Links to downloadable documents – such as PDF’s – should contain the document size, format and the fact that they are downloads rather than links to another page.

          
            <a href="minutes.pdf">Download the Minutes in PDF format (25KB)</a>
          
        

You can provide additional, non-critical link information in the form of a tool-tip by adding a title attribute.

          
            <a href="news.php" title="News Archive">More News Stories</a>
          
        

1.9 Meaningful HTML

All pages should be coded using meaningful rather than presentational XHTML. Meaningful elements include, but are not limited to, the following:

  • h1, h2 etc
  • ul, ol and dl
  • strong and em
  • blockquote and cite
  • abbr, acronym, code
  • fieldset, legend and label
  • caption, thead, tbody and tfoot

Deprecated elements and attributes should be avoided.

1.10 Abbreviations and Acronyms

Abbreviations and acronyms should be marked up and defined the first time they appear on each page.

          
            
<abbr title="UK">United Kingdom</abr>
<acronym title="NATO">North Atlantic Treaty Organisation</ acronym >

          
        

1.11 Tables

Tables are reserved for data and should not be used for page layout. Data tables should be marked up using appropriate meaningful elements such as; <th>, <td>, <thead>, <tbody> and <tfoot> and appropriate meaningful attributes such as; summary, id and headers.

2.0 Styles

This document contains details of all the styles used on this site, how they are applied and how they are rendered.

2.1 General Typography

[add your styles here]

2.2 Colors

[add your styles here]

2.3 Inline Images

[add your styles here]

2.4 Headline Styles

[add your styles here]

2.5 Link Styles

[add your styles here]

2.6 Pull Quote/Testimonial Styles

[add your styles here]

2.7 “error” Class

[add your styles here]

2.8 “feedback” Class

[add your styles here]

2.9 “news-story” Class

[add your styles here]

2.9 “box” Class

[add your styles here]

3.0 Resources

This document contains useful resources for the site such as links and descriptions of all the XHTML and CSS files used, links to Photoshop templates and further coding resources.

3.1 Photoshop Files

Original Photoshop files.

3.2 Mark-up Guides

Images showing the general page layouts, naming conventions, sizes and colours

3.3 XHTML Templates

All the pages on the site can be made up from these core XHTML/CSS templates.

3.4 CSS Files

  • Basic - Basic typography for older browsers. This file imports the layout, general and forms file.
  • Layout - The overall page layout. Won't need to touch this one unless the layout changes.
  • General - Colours, typography, non structural layout. This is the file you're most likely to need to edit.
  • Forms - Form layout and styling. Could break this up into separate page specific files if you wanted.
  • Home - Stylesheet to control the homepage and override some of the more general styles
  • Print - A basic print stylesheet.fdsf

3.5 Useful Links

List of useful XHTML/CSS links

3.6 Useful Books

Andy Budd的樣式指南


更多文章、技術交流、商務合作、聯系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦!!!

發表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 久热在线视频 | 亚洲成在人网站天堂一区二区 | 欧洲美女啪啪 | 真实国产乱子伦精品免费 | 日韩不卡一级毛片免费 | 狠狠色噜噜狠狠狠狠97老肥女 | 亚洲性夜夜时 | 国产一区二区精品在线观看 | 中文字幕福利视频 | 国产精品第一页爽爽影院 | 久久精品成人免费网站 | 99精品在线播放 | 欧美伊人 | 婷婷五月色综合香五月 | 五月婷婷开心综合 | 色网在线免费观看 | 久久久精品久久 | 一级毛片高清大全免费观看 | 亚洲精品国产一区二区三区四区 | 饥饿游戏在线 | 亚洲毛片在线看 | 毛片网站免费在线观看 | 九九热精品视频 | 久久不射视频 | 伊人精品影院一本到欧美 | 性欧美一级毛片在线播放 | 国产一级强片在线观看 | 精品国产91乱码一区二区三区 | 久久综合九色综合91 | 在线免费观看中文字幕 | 国产福利午夜自产拍视频在线 | 天天干夜夜操美女 | 日本成人tv | 九九九九在线精品免费视频 | 天堂亚洲国产日韩在线看 | 免费黄色影院 | 四虎永久免费网站免费观看 | 久久是精品 | 久久影院一区 | 久久国产欧美日韩高清专区 | 日本一区二区三区免费高清在线 |