DOM Enhance Markup


/ Published in: HTML
Save to your folder(s)

The very basic markup for the enhancement DOM script from a tutorial.


Copy this code and paste it in your HTML
  1. <!DOCTYPE html
  2. PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  3. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
  7. <meta name="keywords" content="" />
  8. <meta name="description" content="" />
  9. <title>JS Testing</title>
  10.  
  11. <!-- CSS Links -->
  12.  
  13.  
  14. <!-- Scripts Here -->
  15. <script src="/js/prototype.js" type="text/javascript"></script>
  16. <script src="/js/ch8.js" type="text/javascript"></script>
  17. </head>
  18. <ul id="navigation">
  19. <li><a href="home.html" accesskey="1">Home</a></li>
  20. <li><a href="search.html" accesskey="4">Search</a></li>
  21. <li><a href="contact.html" accesskey="0">Contact</a></li>
  22. </ul>
  23.  
  24. <h1>What is the Document Object Model?</h1>
  25. <p>
  26. The <abbr title="World Wide Web Consortium">W3C</abbr> defines
  27. the <abbr title="Document Object Model">DOM</abbr> as:</p>
  28. <blockquote cite="http://www.w3.org/DOM/">
  29. <p>
  30. A platform- and language-neutral interface that will allow programs
  31. and scripts to dynamically access and update the
  32. content, structure and style of documents.
  33. </p>
  34. <p>
  35. It is an <abbr title="Application Programming Interface">API</abbr> that can be used to navigate <abbr title="HyperText Markup Language">HTML</abbr> and <abbr title="eXtensible Markup Language">XML</abbr> documents.
  36. </p>
  37. </body>
  38. </html>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.