Professional Documents
Culture Documents
Snehal XHTML
Snehal XHTML
Snehal Monteiro
For CIS 764
Outline
What Youre In For Why XHTML & CSS? XHTML CSS Making the Transition The Future Good Web and Database design practices
What is XHTML
XHTML stands for eXtensible HyperText Markup Language XHTML is aimed to replace HTML XHTML is a stricter and cleaner version of HTML XHTML is HTML defined as a XML application XHTML is a W3C Recommendation
XHTML why?
Many pages on the WWW contain bad HTML XML is a markup language where everything has to be marked up correctly, which results in "well-formed"
documents. Hand held devices like PDAs and mobile phones do not have resources and power to interpret bad HTML code A mark-up language for now and for the future. Future browser versions may support only XHTMLso be prepared!!!
XHTML Benefits
A painless transition to more advanced technology (XML) Clean, more logical markup Increased interoperability Greater accessibility
Benefits:
Consumers more services, better user interface, easier-to-use Carriers more control over content, consistent look & feel, service loyalty Content providers presentation, functionality, consistency, familiar format Manufacturers Easier software
Strict:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Kick It Up a Notch: Enhance your web page with Cascading Style Sheets
CSS is a standard layout language for the Web Though precise and powerful, CSS is easy to author by hand. Replace HTML table-based layouts, frames, and other presentational hacks. Separate style from content
Benefits of CSS
Conserve bandwidth (less markup for visitors to download) Reduce design/development time Reduce updating and maintenance time Increased accessibility (fewer, or no, HTML tables; no invalid junk markup) Adhere to W3C recommendations, improving interoperability and ensuring greater longevity Better, more professional appearance (lineheight, borders, padding, margins) Increased readability (lineheight, borders, padding, margins) More easily transition in future to more powerful standards such as XML (because page content no longer contains junk markup)
In-line
<H1 style="color: maroon">
Similar to adding attributes to html tags Disadvantages
decreased accessibility increased file size harder to update
Advantages
ease of maintenance use less disk space increase accessibility
http://jigsaw.w3.org/css-validator/
An error report may also be generated that can identify remaining problems
Gradual:
Do all new things in XHTML/CSS Migrate old files as you update them for other reasons
The Future
Will XML replace HTML? It already has! Thats why youre here! XML will typically not be delivered to web clients; that is what XHTML will be for So, is this the last markup you have to learn? No way! Use this as a stepping-stone to XML, for which you will have many additional uses Remember Never stop learning!
Continued
When running queries on the database, use only the column names that you need to retrieve. This can reduce network traffic and disk operations. When running an insert action query, use the columns list into which to insert instead of the table name (when you want to insert data in all the current columns). This way, if new columns are added to the table, your query will still work.
References
W3C-Introduction to XHTML http://www.w3schools.com/xhtml/xhtml_intro.asp NYPL Online Style Guide: XHTML and CSS http://www.nypl.org/styleguide/xhtml/index.html Better Living through XHTML By, Jeffery Zeldman http://www.alistapart.com/stories/betterliving/ Good practices in database design http://www.interaktonline.com/Support/Articles/Details
Thank-you!
Questions ???