• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 2. Start Me Up!

Chapter 2. Start Me Up!

Enough of the warm up; it's time to get scripting. In this chapter, you'll learn where to put your scripts in your HTML; how to use alert boxes to communicate with the user; how you can check for the presence of browser plug-ins; use JavaScript to write your Web pages for you, and much more. We'll also introduce you to more aspects of the JavaScript language, such as loops and functions (don't let your eyes glaze over; we promise that it'll be easy). Let's get to it!

Table 2.1. Just Enough HTML—The Basics
Tag Attribute Meaning
HTML Contains the HTML part of the Web page
HEAD Contains the header part of the Web page
TITLE Contains the title of the Web page
BODY Contains the body part of the Web page
 BGCOLORSets the background color of the page
H1…H6 Contents of this tag are emphasized as heading information; H1 is largest heading size, down to H6 as the smallest heading
 ALIGNDescribes where the contents of this tag should be placed on the page in terms of horizontal or vertical alignment
A Links to another Web page
 HREFSpecifies where the user should go when the link is clicked
TABLE Presents tabular data on a Web page
 CELLPADDINGThe amount of space inside a cell, between the contents and the cell borders
 CELLSPACINGThe amount of space between different cells
TR Begins a row inside the table
 VALIGNThe vertical alignment of the row
TH Heading cells for the columns in the table
 BGCOLORBackground color of this header cell
TD Contains each cell in the table
 BGCOLORBackground color of this cell



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint