Using XHTML and CSS design reusability can rejuvenate website
So that we will have a three CSS document. SiteComm.css: Any site can use the style of the paper, the definition of the common html tags style. SiteLayout.css: Site layout documents, could apply to most of the structure of the site, details need to be adjusted. SiteStyle.css: Site unique style documents, the site can show unique style and adapted to site content.
Then we use external call law: These style sheets and linking pages.
<LINK Rev="stylesheet" media="all" href="css/SiteComm.css" type="text/css" rel="stylesheet">
<LINK Rev="stylesheet" media="all" href="css/SiteLayout.css" type="text/css" rel="stylesheet">
<LINK Rev="stylesheet" media="all" href="css/siteStyle.css" type="text/css" rel="stylesheet">
XHTML standards in line with the design, we use an external call, the benefits self-evident, HTML files will become very small, CSS documents exist browser cache, only need to download a can, and you only on the need to revise a document can change the style of the entire site.
And the way we can through client script, or server-side code easy to change the style sheet link address, and quickly realized rejuvenate function.
5, in accordance with user settings rejuvenate
Switching styles online website, many off-the-shelf javascript rejuvenate code, generally uses a cookie to store user settings, the requested page, change the CSS document pages can be connected.
Rejuvenate and server-side approach is based on the request of users, and dynamically generated CSS document access, user settings generally stored in a database or a cookie.
As we used three different functions CSS style documents to show that Web site, so we can design more flexible rejuvenate programmes and portfolio, such as the theme to retain only switch layout, and switching layout and theme, as well as various details, and so on.
Use three CSS style document additional benefits, when we design a new system, the style of almost style can be applied to most of the previous system (because we have adopted a similar model pages, although Show different, but the main framework is the same), so that we can accumulate a considerable amount and wind rich interface to the pattern.
6, through calibration
The whole process is the final step on the XHTML \ CSS code validation. There are different types of tools can help you verify the others.
Dreamweaver MX For example, I can check the sample code accessibility. You can choose the File menu and select Check Page Check Accessibility to achieve. Any error or warning will be displayed, including the emergence of location of the trip, as well as a brief explanation of the problem. You can Dreamweaver MX tools found in the Reference more information on these errors and warnings content.
And Microsoft ASP.NET 2.0 has many useful functions, we can also help with the design and generation XHTML and accessibility standards for Web site. Using Web standards generated ASP.NET 2.0 Web site http://www.microsoft.com/china/msdn/library/webservices/asp.net/ASPNETusStan.mspx
In addition, the World Wide Web Consortium (W3C) has provided over 30 can visit assessment tools links. W3C also provides HTML and CSS for the free Web-based validator.
So if you want to improve friendly web site, availability, accessibility, the new standards can be seen as an opportunity rather than an obstacle. To learn more about the new standards, and accessibility of the content, you can go to look at the World Wide Web Consortium in the Web Accessibility Initiative (WAI).
A total of seven. 9 7 1 2 3 4 5 6 7
Tags: xhtml css, xhtml elements xhtml source, xhtml grammar, xhtml Guide, xhtml markings xhtml manuals, xml xhtml






Leave a Reply