Standard era of website design for website design
Aja Saturday, April 10, 2004
This article is a view: Follow the Web Standards for website design and improvement. Reading object: Website Designers, Web App Developers Keywords: Web Standards, XML, XHML, CSS, DOM, DOCTYPE, Accessibility
Foreword
The change on the Internet is happening every day. When we feel that the website design technology is very simple and familiar. The concept of foreign website design standardization has already been quietly formed and quickly "spread" since 2000, most of the newly issued browser versions began to support website standards. The mainstream web editing tool also begins to fully support website standards, even some software consists entirely of XML files, such as Dreamweaver MX. Some famous large business websites began to use the website standard to rebuild (such as sports information www.espn.com), and others refuse non-standard browsers to browse their websites (such as connecting magazines www.wired.com). Many design websites (for example: www.k10k.net) and personal websites are the forerunners of standard promotion, and they have turned to XHTML CSS to build. February 4, 2004 XML1.1 recommended standards officially released, marking the standard era of website design has arrived.
The situation of foreign website standards is raging, but the domestic industry seems to know after knowing the post or not interested, let's take a look at the domestic three major portal websites on the website standard:
Check item check target website verification results code check (XHTML) (check address: http://validator.w3.org/, (http://www.htmlhelp.com/tools/validator/) WWW. Sina.com failed, mixed HTML, did not reach XHTML1. Yellow alert: The character set error. (Defined GB2312, but use non-GB2312 characters). Non-standard code 43. Www.163.com failed, Mixed HTML does not reach XHTML1. Red Alert: DOCTYPE: Non-standard code 41. Www.sohu.com failed, mixed HTML, did not reach XHTML1. Yellow alert: character set error. CSS2. CSS2. Check (check address: http://jigsaw.w3.org/css-validator/Validator-uri.html) Www.sina.com.cn 25 error. Www.163.com 1 warning, 10 errors Www.sohu.com 1 warning, 15 errors.
The verification results show that all portals are not in line with the website standard, and even the HTML4.0 standards are not followed. For example: label, as early as April 1998 HTML4.0 standard has been listed as "DepRecated" tab. But there are many code like on the top page of our three major portals. The simple list here is not to criticize these websites do not do well (in fact, most large business sites are not in the W3C strict correctness check), there are many reasons, such as the old information release. System, web design personnel technology and awareness are not enough. We just want to explain a little: even the website of the listed company is not realized to follow the standard, other commercial websites do not need to say that the domestic website is not sufficient.
Let us keep up with the pace of the new era, let's take a look at the website standard.
One. Why establish a website standard?
Most of us have a deep experience. Whenever we have upgraded the mainstream browser version, our new website may become too time, we need to upgrade or re-build a website. For example, 1996-1999, typical "Browser Wars", in order to be compatible with Netscape and IE, the website has to write different code for these two browsers. Similarly, whenever new network technology and interactive equipment, we also need to make a new version to support this new technology or new device, such as WAP technology that supports mobile Internet access. Similar questions: Website code is bloated, complicated to we waste our large bandwidth; for some browser's DHTML effect, some potential customers; unprystable code, disabled people can't browse the website, etc. This is a vicious circle and is a huge waste. How to solve these problems? People who have knowledge have already begun to think and need to establish a standard for universally identified standards to end this disorder and confusion. Commercial companies (Netscape, Microsoft, etc.) have finally recognized the benefits of unified standards, so under the organization of W3C (W3c.org), the website standard began to be established (the XML1.0 is released on February 10, 1998), and Promote the implementation of the website standard organization (WebStandards.org).
Simply put, the purpose of the website standard is:
Provide maximum benefits to ensure that any website text can be easily effectively simplified for a long time, reducing construction costs to make the website easier to use, can adapt to more different users and more network equipment When the browser version is updated, or new When network interactive devices, make sure all applications can continue correctly. For website design and developers, follow the website standard is the standard; for your website users, the website standard is the best experience.
Visitors Rank the world 4th, China No. 1 Sina website, also encountered non-standard DHTML issues. In the latest release of Netscape7 and Mozila 1.6 browsers, the floating ads of Sina's home failure, laminated in the lower left corner of the page. Perhaps those advertisers think that these potential users don't matter. (Screenshot Date on April 12, 2004)
two. What is a website standard?
The website standard is not a standard, but a collection of standards. The web page is mainly composed of three parts: structure, performance (presentation) and behavioral (BEHAVIOR). Corresponding standards are also divided into three aspects: structured standard language mainly include XHTML and XML, and the standard language mainly includes CSS, and behavioral standards mainly include object models (such as W3C DOM), ECMAScript, etc.. Most of these standards drafted and published by W3C, and some are standards for other standards organizations, such as ECMAScript standards of ECMA (European Computer Manufacturers Association). Let's briefly understand these standards:
1. Structural standard language
(1) XML
XML is the story of the Extensible Markup Language. It is currently recommended to follow the XML1.0 issued by W3C on October 6, 2000 (www.w3.org/tr/2000/rec-xml-20001006). Like HTML, XML is also from SGML, but XML is a language that can define other languages. The purpose of XML initially designed is to compensate for the shortcomings of HTML, with powerful scalability to meet the needs of network information, and later gradually use the conversion and description of network data. The benefits of XML and technical specifications are not more to say, there are many information on the Internet, and there are many books to be referenced. (2) XHTML
XHTML is the abbreviation of the Extensible Hypertext Markup Language extension identity. It is recommended to recommend XML1.0 on January 26, 2000 (refer to http://www.w3.org/tr/xhtml1) on January 26, 2000. Although the data conversion capacity is powerful, it can be replaced by HTML, but in the face of thousands of existing sites, it is also time to use XML. Therefore, based on HTML4.0, we use XML rules to expand it to get XHTML. Simply put, the purpose of establishing XHTML is to achieve HTML to XML transition.
2. Performance Standard Language
CSS is an abbreviation for the Cascading Style Sheets laminated style sheet. It is currently recommended that W3C recommended CSS2 on May 12, 1998 (refer to http://www.w3.org/tr/CSS2/). The purpose of the W3C creates a CSS standard is to replace the HTML table format layout, frame, and other languages. Pure CSS layout combined with structural XHTML can help designers separate the appearance and structure, making it easier for sites accessing and maintenance.
3. Behavior standard
(1) DOM
The DOM is an abbreviation for the Document Object Model Document Object Model. According to W3C DOM specification (http://www.w3.org/dom/), Dom is a browser, platform, language interface, so that you can access other standard components. Briefly, DOM solves the conflict between Netscaped JavaScript and Microsoft JScript, gives Web designers and developers a standard approach to access the data, scripts, and performance layer objects in their site.
(2) ECMAScript
ECMAScript is a standard scripting language (JavaScript) developed by ECMA (European Computer Manufacturers Association). It is currently recommended to follow ECMAScript 262 (http://www.ecma.ch/ecma1/stand/ecma-262.htm).
three. Follow the standard website and the traditional website
The traditional website is just the extension of the print media, the design goal is to ensure consistent in the 4-6 mainstream browser versions. The usual feature is:
Based on the table. The content is mixed together. A typical example is the tag. Garbage code (non-standard code). Not easy to use code. Semantic incorrect code. For example, if you don't explain, you don't understand this is the meaning of font. The website with the website standard is an extensive communication communication tool that accepts a variety of users and various devices. The general feature is:
Semantic correct logo. That is, it is useful to express a meanable tag. Ensure that the code can be correctly understood in a text browser, PDAS, and search engines. Correct and effective code. The correct code is correct by the W3C code check (http://validator.w3.org/). The code is easy to use to people, the machine. Access to users and equipment can be accessed, separated by CSS. It makes the code more concise, the download speed is faster, and the batch modification and custom expressions are easier. four. The benefits and disadvantages of the website standard 1. benefit
The benefits of website viewers:
File download and page display speed faster; content can be accessed by users (including disabilities, weak, color-blown); content can be accessed by a wider device (including screen readers, handheld equipment, search Robots, printers, refrigerators, etc.) Users can choose to customize their own performance interface All pages can provide the benefits of the website owner:
Less code and components, easy to maintain bandwidth requirements decrease (less code is more concise), and cost reduction. For example: After Espn.com uses the CSS revision, save more than two megabytes. Easier is easier to search for the search engine for easy, no change page content provides printing version without the need to reproduce the content to improve the website. In the United States, there are strict legal provisions (Section 508) to constrain government websites to reach certain ease of use, and other countries have similar requirements. 2. Disadvantage
It takes more time to study standards. Standards Note that the browser compatibility problem is used to implement some performance but stronger than the table. How to improve existing websites
Most of our designers are still using traditional table layouts to express websites with mixed structures. Learning to use XHTML CSS requires a process that makes existing websites in accordance with the website standards. The best way is to gradually enter, staged to gradually meet the target of the website standard. If you are a newbie, or is not very familiar with the code, you can also use the standard editing tool, such as Dreamweaver MX 2004, which is currently supporting the most complete tool for CSS standards.
1. Primary improvement
Add the right DOCTYPE for the page, many designers and developers don't know what to do, doctype is useful for DOCTYPE. DOCTYPE
It is the discument type's shorthand. Mainly used to explain what version you use XHTML or HTML. The browser explains the page code based on your DTD defined by your DOCTYPE. So, if you don't pay attention to setting the wrong Doctype, the result will make you very shocked. XHTML1.0 provides three DOCTYPE options:
Transitional
"http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
Strict strict shape (strict)
"http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd">
Frameset
"http://www.w3.org/tr/xhtml1/dtd/xhtml1-frameset.dtd"> For our primary improvement, you can use the transitional statement. It can still be compatible with your form layout, express identity, etc., not allowing you to think too much, it is difficult to master.
Tip: You are too lazy to enter the above transitional code, you can access the home page of http://www.macromedia.com/ website, then view the source code, copy the same code as the HEAD area to paste it.
Set a namespace (Namespace) to add the following code directly after the DOCTYPE declaration:
A NameSpace is a detailed DTD for collecting element types and attribute names, and the Namespace declaration allows you to identify your namespace via an online address. Just simply input the code.
Declare your coding language In order to be properly explained by the browser, all XHTML documents must declare the coding languages they use. code show as below:
The coding language that is declared here is Simplified Chinese GB2312, and if you need to make traditional content, you can define as BIG5.
Writing all labels XML with lowercase letters is sensitive to case sensitive, so XHTML is also different from cases. All XHTML elements and properties must be written. Otherwise your document will be considered invalid by the W3C check. For example, the following code is incorrect:
The correct way of writing is:
Similarly,
is changed to
, to change to and so on. This conversion is simple.
Add the alt property for the picture to add Alt properties for all images. The Alt property specifies that the replacement text is displayed when the picture cannot be displayed, so that the normal user can have no, but it is critical to the plain text browser and the user using the screen reader. Only the ALT property is added, the code will be passed by the W3C correctness. Note that we have to add meaningful ALT properties, which is meaningless:
Correct way:
Give all attribute values in HTML, you can add quotes to attribute values, but in XHTML, they must be quoted.
Example: Height = "100" instead of Height = 100.
Close all labels in XHTML, each open tag must be turned off. Just like this:
Every open tag must be turned off. p>
HTML can accept the non-closed standard, XHTML is not. b>
This rule can avoid HTML chaos and trouble. For example: if you don't close the image tag, a CSS display problem may occur in some browsers. Use this method to ensure that the page is displayed as you design. It should be noted that the empty tag is also turned off, and a positive slash "/" is used in the tail of the tab. For example:
After the above seven rules are processed, the page is basically in line with XHTML1.0 requirements. But we also need to verify that it is really in line with the standard. We can use W3C to provide free verification services (http://validator.w3.org/). Improve the error after the error is found. In the list of resource lists, we also provide additional verification services and the URL for the verification, which can be supplemented as a W3C check. When I finally passed the XHTML verification, I congratulated you have taken a big step to the website standard. It's not that difficulty imagined!
2. Intermediate improvement
Next, our improvements are mainly separated by structures and performance, which is not easy to implement in the first step, and we need to transform on the concept, and the learning and application of CSS2 technology. But learning any new knowledge requires some time, isn't it? The trick is to do while doing. If you have been using the form layout, I haven't used CSS at all, nor I have to hurry to say goodbye to the form layout, you can use the style sheet to replace the Font label. As you have learned, the more you can do. Ok, let's take a look at what we need to do:
Using CSS Defining Elements We have developed habits when writing logo, when you want the font to use
text can become huge, bold,
H1, H2, H3, H4, H5, H6 {
FONT-FAMILY: Song, Serif;
FONT-SIZE: 12PX;
}
Many people who use structural elements instead of meaningless rubbish may never know that HTML and XHTML element design is intended to express structures. Many of us have become accustomed to control performance with elements, not structures. For example, a list of content may use the following identity:
Sentence 1BR />
Sentence class
Sentences 3
If we use a unordered list, it will be better:
ul>
You may say "But
Give each table and a form to give a unique, structural tag, for example,
tag. Only one adhered tag (tag "Menu" ID tag can be required to perform a special performance layer in a separate style table for a clean, compact code tag. Intermediate improvement of us three main three points, but there is a lot of content and knowledge points, we need to learn and master them gradually until the final implementation of CSS without using any form to implement layout. It is limited to this paper to guide the promotion, not disclosing.
Finally, we need to add an additional introduction to the ease of use of the website. It is easy to use and the website standard has a standard connection. Like the website standard, it is to allow our website to accept more user access. . In 1990, W3C established Web Accessibility Initiative (WAI), providing website builders to implement accessibility methods and policies (http://www.w3.org/wai/gl/). The strategy of improving ease of use and research interaction design (recommended VB's parent Alan Cooper book) can improve your development technology and open vision. Improve you as a professional web designer's value, making you more competitive. This is the goal that every website owner and each designer or developer must work hard. six. Website standard resources 1. Website standard http://www.zeldman.com/ http://webstandards.org/ http://webstandardsgroup.org/ http://www.nypl.org/styleguide/ 2. Summer code http://brainstormsandraves.com/articles/semantics/structure/ 3. Validation http://validator.w3.org/ http://www.htmlhelp.com/tools/validator/ http://webboy.net/pesentation/validation.cfm 4. Accessibility http://www.joeclark.org/ http://www.accessify.com/ http://www.juicystudio.com/ 5. Style table CSS http://webboy.net/pesentation/ICT2004/01.htm http://webboy.net/pesentation/ICT2004/02.htm http://webboy.net/pesentation/ICT2004/03.htm http://westciv.com/style_master/academy/css_tutorial/ http://css.maxdesign.com.au http://www.thenoodleincident.com/tutorials/css/ 6. Instance Site (XHTML CSS) http://www.macromedia.com/ http://www.k10k.net http://www.fyrebase.com/ http://www.onetruefit.com/ http://pixeltable.com/ http://www.fishmarketing.net/ Attached. Reference article and website Jeffrey ZELDMAN (www.zeldman.com) Works "Design With Web Standards", the book has been introduced by the Electronic Industry Press and is about to issue Chinese. Max Design articles: "! The benefits of Web Standards to your visitors, your clients and you" http://www.maxdesign.com.au/presentation/benefits/index.htm Mark Pilgrim "Dive Into Accessibility" http: / /DiveIntoaccessibility.org Website Standards Www.Webstandards.org Website Standard Group www.WebstandardsGroup.org - Author: helloguo May 27, 2004, Thursday, 10:45 Reply (0) | Trackbacks (0) Content Management System (CMS) in the design and selection of content management system (CMS) in the design and selection of: car east Email: chedongatbigfoot.com/chedongatchedong.com Writes: 01/22/2005 12:56:09 Feed Back >> 04/27/2004 16: 08: 52guestbook Copyright Notice: You can reprint anything, please be sure to indicate the original source and author information and this statement by hyperlink. Http://www.chedong.com/tech/cms.html Keywords: "Content Manage System" CMS Content Management System abstract: Content Management System Overview Content Management System Selection Forum Selection Forum / Community System Selection Selected editor Image upload and file management components Content management system overview The content management system is a very broad concept: both from the news system from the commercial portal to the personal WebLog can be called a release system. Frame type: itself does not contain any application implementation, just provide the underlying framework, specific applications require a certain secondary development, such as cocoon, vignette; application: itself is a specific type of application implementation, already included news / comment management Some subsystems such as voting, forum, wiki. For example: postnuke XOOPS, etc .; But in any case, before publishing system selection, first understanding your actual needs: I want to move my demand in accordance with ready-made systems. Visits, permission control, and various functional needs. Every module and function are more clear, then go online to find a similar implementation: You will find that every one has a mature implementation, and it is still improving and developing, if not : Your needs are too special, or you can try to break down into smaller system combination implementation. The content management system is separated into the following levels: the demand for each level is preferred. Background Business Subsystem Management (Management Priority: Content Management): News entry system, BBS Forum Subsystem, full-text inspection subsystem, etc., the content of the convenient manager for different systems is entered: the editorial management interface you have obtained, clear Business Logic: Permissions Control Mechanism of Various Subsystems, etc .; Portal System (Performance Priority: Template Management): Most final output pages: Home, sub-channel / topic page, news details page is generally a variety of back subsystems The various combinations of modules are very rich. The Portal system is responsible for the combined manifestation management of these posterior subsystems; reception release (efficiency priority: release management): Backers for end users, and search engines Spider's URL design, etc ...... Separation of content management and performance: Many complete sets of CMS systems do not separate all subsystems and portal in the background, so that the content management logic of the template performance management and the news subsystem at the PORTAL layer Together, even the management of subsystems such as BBS is very high, the entire system will be very intebriring. Moreover, the comparison of each subsystem of each subsystem is difficult, and if the module in the background is difficult to change. However, if the sessile content management logic of the background, the performance / release of the front desk, the PORTAL and the background are only the relationship between the data transfer: Portal only decides to pay and perform the hits and performance of each subsystem data in the background, and the background Each subsystem is also very easy to swap. Separation of content management and data distribution: Take Cache Friendly Sex Design: CACHE Friendly Sexual Design: CMS Background Management and Publishing Mechanism, it should not take too much "efficiency" problem, as long as the final page output design Cacheable, efficiency issues can be solved by a more special cache server. In addition, in addition to facing the final browser user, pay attention to the URL design of search engine friendly (Search Engine Friendly): Turn through the URL REWRITE steering or PATH_INFO-based parameter analysis makes dynamic web pages in the link (URI) form more like static Directory structure, convenient website content is included in the search engine; ------------------------------------------- | News management subsystem | | BBS Forum | | Mall subsystem | ------------------------------------ ------- | / / | / / | ---------- | --- / / <== Business subsystem (Part Production) | / | / / Tube - ----------------------------- 理 | 理 专 制 子 | | | 全文 检 子 子 | ------ --------- | --------------- / | / ---------------------------------------------------------------------------------------------------------------------------------------------------------------- --- | --------------------------------- / | / Frequency --------------- Dao <== Portal system (product assembly) | Portal system | --------------------------------------- | ------- -------------------------------------- | Pre-| Taiwan <== Publishing System (Distribution Agent ) --------------- Hair | Front Release System | Cloth --------------- / / / --------- ------ --------------- | User browser | | Search Engine | --------------- ----- ---------- Here, I summarize some of the information found in the content distribution system selection: the selection of content management system Keywords: CMS Content Manage System CMS industry research http://www.cmswatch.com.comHttp: //www.cmsreview.comHttp://www.cmsinfo.org CMS discussion mailing list http://www.cms-list.org Business software and open source project list: http://directory.google.com/top/computers/software/internet/site_management/content_management/ Recommended: XML-based release frame http://cocoon.apache.org/ The specific implementation of complexity may vary depending on the demand, but the more large systems need to be divided into labor: content (data), performance (template) and application logic (program) are separated as much as possible and to these three management . Portal --- Portal Open source Projects: http://jportlet.sourceforge.net/ Apache Software Foundation: Jakarta JetSpeed 1.3JetSpeed home page: http://jakarta.apache.org/jetspeed/site/index.html JetSpeed Portlet API: http://cvs.apache.org/viewcvs/jakarta-jetspeed/proposals/portletapi/http://www.liferay.com/Home/index.jsp http://basicportal.com/ http: // www .jahia.org / http://jporta.sourceforge.net/ Business Software: Bea WebLogic Portal - http://edocs.bea.com/wlp/docs81/javadoc/com/bea/portal/model/portlet.html IBM WebSphere Portal - http://www.software.ibm.com/ WSDD / ZONES / Portal / Oracle Portal Developer Kit - http://portalstudio.Orcle.com/ Others: PSML - http://jakarta.apache.org/jetspeed/site/psml.htmlbea: Web Logic Portal 4.0 http://www.bea.com/products/weblogic/portal/index.shtmlibm: WebSphere Portal 2.1 HTTP : //www-4.ibm.com/software/webservers/portal/ iplanet: iplanet portal server 3.0 http://www.iplanet.com/products/iplanet_portal/home_portal.htmloracle: Oracle 9i Portal http: // www. Oracle.com/ip/deploy/ias/portal/index.htmlsap portal: http://www.iviewstudio.Comepiapicentric portal: http://www.epicentric.com/solutions/products/efs/ Reference: Wafer: Java Development Framework Http://www.waferproject.org/index.html Portal system related development framework: http://udoo.51.net/mt/archives/000011.html Advertising Management System Keywords: AD Server The separation of the advertising system and the content can greatly reduce the correlation between the system. Professional Industry Research Website: http://adres.internet.com Related vendors and open source projects: http://directory.google.com/top/computers/programming/ient/AD_Management/?i = 1 http: //directory.google.com/top/computers/software/internet /Servers/advertising/dc=1 http://www.jspin.com/home/apps/admanage?cob=winedithtp://www.scriptdex.com/dex/php_ad_management.shtml Recommended: http://www.phpadsnew.com/ Functional comparison http://oasis.sourceForge.net/ Free Based on logging and regular import MySQL statistics, you can load 500,000 requests / hourly If you value the 3-party feature of your ad, you can choose third-party services: http://www.doubleclick.net/http://www.allys.com/ Forum / Community System Keywords: BBS Forum Forum software introduction: http://directory.google.com/top/computers/internet/web_design_and_development/Message_Boards/ Recommended: http://www.phpbb.com PHP MySQL Open SourceHttp://www.vbulletin.com/order/ PHP MySQL has paid commercial support 85-160 $ Http://www.jivesoftware.com/products/priclesoft.jsp Business Forum system, 1000 $ -2500 $ has a knowledge base extension Apply http://yazd.yasna.com/features.jsp Based on Java The WySIWYG editor is more important in the management of the content, which is more important, which can greatly simplify the demand for layout in the system. Based on the browser-based WysiwyG (see the WYSIW) Editor is the main consideration of the editing tool in the CMS design. It is mainly implemented primarily through JavaScript call IE or other browser. Among them, IE5.5 browser is the most concise. Here is a complete example: building a wysiwyg html editor part 1 / 2building a Wysiwyg HTML Editor Part 2/2 Main features: Ability to achieve basic functions implemented by JavaScript: Bold, Intragoner, Cancel, Add Link, Add Picture, Mode Switch: HTML, and Text Mode Switching, Word Junk Code Filter Image Upload Interface: Image Upload is best implemented by other independent modules. Selection indicator: Do not rely on server-side code: Implementation of code only through JavaScript or client control, can ensure the convenience of the system migration. Word Swarf Code Filter Visual Editor Daquan: http://www.bris.ac.uk/is/projects/cms/ttw/ttw.html Recommended: http://www.aine.be/aynhtml/ Picture / File upload unstructured data such as images and files or other services are better than using additional services. This makes greatly simplifies the complexity of the CMS itself. Recommended: File Upload: Apache Commons Item http://jakarta.apache.org/commons/ ImageJ: Picture Processing Thumbnails Generate and Watermarking, etc. http://rsb.info.nih.gov/ij/ Original article: http://www.chedong.com/tech/cms.html << Back
转载请注明原文地址:https://www.9cbs.com/read-33997.html New Post(0)
|