|*Document Module*|
|body, head, html, title|
|*Structural Module*|
|address, blockcode, blockquote, div, h, h1, h2, h3, h4, h5, h6, p, pre, section, separator|
|*Text Module*|
|abbr, cite, code, dfn, em, kbd, l, quote, samp, span, strong, sub, sup, var|
|*Hypertext Module*|
| a|
|*List Module*|
|dl, dt, dd, label, nl, ol, ul, li|
|*Core Attributes Module*|
|class, id, and title attributes|
|*Hypertext Attributes Module*|
|href, hreftype, cite, target, rel, rev, access, nextfocus, prevfocus, and xml:base attributes|
|*Internationalization Attribute Module*|
|xml:lang attribute|
|*Bi-directional Text Module*|
|dir attribute|
|*Edit Attributes Module*|
|edit and datetime attributes|
|*Embedding Attributes Module*|
|src and type attributes|
|*Handler Module*|
|handler|
|*Image Map Attributes Module*|
|usemap, ismap, shape, and coords attributes|
|*Media Attribute Module*|
|media attribute|
|*Metainformation Attributes Module*|
|about, content, datatype, property, rel, resource, restype, and rev attributes|
|*Metainformation Module*|
|meta, link|
|*Object Module*|
|object, param, standby|
|*Style Attribute Module*|
|style attribute|
|*Stylesheet Module*|
|style element|
|*Tables Module*|
|caption, col, colgroup, summary, table, tbody, td, tfoot, th, thead, tr|
October 4th, 2005
Here are some good practices to follow for Javascript. Remember that when you are using any programing language or scripting language when you define variables try to use a meaningful name, remember to put some internal documentation like I did to help explain to you what the code is doing, becuase 6 months later it save you a heck of allot of time when you are trying to remember or figure out how everything works. When you develop other projects or your own and you leave them to develop other things you loose track and having internal documentation will help.
Remember to close your variables with a semicolon. Declatartions like statements, end with a semicolon and ca be split over several lines with each vfariable in the declaration separated by a comma. To declare multiple Variables in javascript try this:
<script type = "text/javascript">
<!--
var super, slick, and, lots, of, diff, names;
// -->
<script />
</script>
August 30th, 2005
Prompt and alert boxes can be used in Webpages to add input from users. This turtorial and script builds upon knowleadge which you would of got if you read all the javascript articles This script uses another predefined dialog box from the window object which is in this case the prompt dialog box which allows the user to input a value that the script can use. The program in this cases asks the user to input a name, the name is stored as a variable, it then echos or prints the name out using Javascript.
You can learn more about this by clicking here or here
For this we are going to be using a XHTML Strict Doc Type
< !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="UTF-8" />
<title>Fabio DRN tutorial on Prompt and Alert Boxes</title>
<script type="text/javascript">
<!--
var username //username is a variable set by the user
// this will make username variable equal to whatever the window prompt box input value
username = window.prompt("Please type in your name, "")
// try this
// username = window.prompt("Please type in your name, "and this will equal the default field so it will say something")
// javascript will then write it in, it works top to bottom sequentially
document.writein("<h1>" + username + " welcome to FabioDRN< /h1>"
// -->
</script>
</head>
<body>
</body>
</html>
August 30th, 2005