Created
November 8, 2010 18:31
-
-
Save karlstolley/668045 to your computer and use it in GitHub Desktop.
Bare-bones XHTML plus jQuery for COM530
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>jQuery and DOM Scripting</title> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script> | |
<script type="text/javascript"> | |
/*Events to happen once the document/DOM has loaded:*/ | |
$(document).ready(function() { | |
}); | |
/*Events to happen on a resize of the window:*/ | |
$(window).resize(function() { | |
}); | |
</script> | |
</head> | |
<body> | |
<dl id="domtips"> | |
<dt>Progressively Enhance</dt> | |
<dd>Build your XHTML and CSS first, JavaScript later</dd> | |
<dt>Gracefully Degrade</dt> | |
<dd>Disable JavaScript using the Firefox Web-Developer Add-on and ensure your site is still accessible and usable</dd> | |
<dt>Use What's in the DOM</dt> | |
<dd>Make sure you're not embedding JavaScript in your XHTML elements, or javascript: calls in <code>href</code> attributes.</dd> | |
</dl> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment