Every web page must declare a document type, or “DOCTYPE”. This line of code begins an HTML document and tells a validator what version of HTML or XHTML to use when checking the syntax and structure of the document for errors.
Doctype declarations, known as DTDs, go at the very beginning of your document, above the <head> tags.
Here are some of the most common DTDs.
Continue Reading “Document Type Declaration” »
Welcome back! If you’ve been following along our entire series of tutorials on building sites with Django, you’ll (by now) have built a blog website with date-based archives and some nice extras such as tagging and Markdown support.
Along the way, we also ported our app over to the new Newforms Admin version of Django so that we’ll be all ready to go when Django hits version 1.0. If you haven’t done that yet, be sure to do it before we continue.
Continue Reading “Integrate Web APIs into Your Django Site” »
This code was written based on a template by John Resig. The original can be found at John Resig’s addEvent function website.
Caching (pronounced CASH-ing) is a technique computers use to save memory by storing frequently accessed files.
Web browsers have caches that keep recently downloaded web pages handy. Browser caches are typically kept on your local drive, and you can usually adjust the amount of memory or disk space allotted for the cache. The benefit of web caches is that you can access a cached page much more quickly than if you downloaded it from a distant server.
To fill an image means to paint the inside of it with a selected color or pattern.
The fill can be used to create shading and other simple effects. In HTML, a popular technique is to fill tables with colors, especially in long lists of information. For example, if you are making a web page showing the 50 top-grossing movies of the year, it will be easier to read if you fill the rows of the table and alternate the background colors.