GotAPI has one of the best list of web API resources. It has a searchable list of HTML, JavaScript DOM objects, and CSS tags. Its a good quick reference for tags and objects. There is also a list of web technologies including web frameworks, databases, and testing tools.
http://www.gota
Category Archives: Html
GotAPI – HTML, Javascript DOM, and CSS Resource List
Fix: Firefox 4 reports image corrupt or truncated: unknown
If you get the error message in Mozilla Firefox 4.0 Firebug
Image corrupt or truncated: <unknown>
Check to see if your site has the “favicon” setup correctly. Firefox 4.0 has a strict rule that requires your site to have the favicon.
You can set the path of the fav icon with the following HTML:
<link href="http://[YOURWEBSITE]/favicon.ico" rel="shortcut icon" type="image/x-icon" />
Dynamic Drive’s free tool for creating favicons:
http://tools.dynamicdrive.com/favicon/
The power of DOCTYPE in Internet Explorer
Absolute positioning of a DIV in Internet Explorer can be a pain, especially if your page works fine in Firefox, Safari, and Google Chrome. One thing I noticed with Internet Explorer is that it is very strict with their doctype. Internet Explorer will ignore the parent container for absolute positioning if you don’t have “HTML 4.0 Strict” inside the DOCTYPE.
Microsoft states “Internet Explorer 7 and greater: Fixed positioning is available through strict mode.” Including the doctype fixed my absolute positioning problems with Internet Explorer.
You can view my implementation of this here. The search suggestion box is centered within the parent element, even when the page is maximized.
The following DOCTYPE should allow you to run fixed positioning within a parent element (instead of the body)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Free image map tool: XMap
The best free Windows HTML image map tool I’ve found is XMap. I found it easy to use for some of my client’s websites that use image maps for site navigation. Very simple Windows install.