tailieunhanh - HTML and JavaScript for Visual Learners- P20

HTML and JavaScript for Visual Learners- P20:Shows how to build first-rate Web sites using HTML and Javascript. Over 150 screen shots and diagrams guide beginners step-by-step through common up a Web site -Format pages and text -Create links and insert graphics -Lay out pages with tables and frames -Enable interactivity with forms and style sheets -Employ practical Javascript to create rollover graphics and open new a tutorial on uploading sites. Spiral-bound to lay flat on a desktop. . | 90 9. Add the ALlGN right attribute to the TABLE tag TABLE WIDTH 200 BORDER 0 CELLPADDING 8 ALIGN right 10. Save the page and preview it in the browser. The page should look like this Download other Visibooks for free 91 Link to an external site using frames How to use frames Frames are a way to put more than one Web page at a time on acomputer s screen Page 1 Page 2 Alive example of frames can be seen at firames. Many sites that used frames have now eliminated them returning to single-page layouts. That s because frames have serious drawbacks Frames are difficult to update. Every screen involves three or more pages to keep track of the frameset itself and at least two others to go in the frames. Frame navigation is tricky. Links require special targets that go from page to frame. Frames often require people to scroll annoyingly in more than one place. However frames are useful for one thing they allow a user to get back to a site with one click while clicking through other sites linked to it. An example of this can be seen in the external links . The following exercise demonstrates how to use frames to provide convenient links to external sites. Download other Visibooks for free 92 1. On the Golden Gate Bridge page in a new paragraph below the first one type Visit the Web site for the Golden Gate bridge at . will be linked to the frameset page. 2. Create a new blank page with file name framesetgg. html. This will be the frameset page that holds two other pages. 3. Insert this HTML code into the new blank page HTML HEAD HEAD TITLE Golden Gate Frameset TITLE FRAMESET ROWS 50 FRAME NAME topframe SRC FRAME NAME bottomframe SRC http FRAMESET HTML Download other Visibooks for free .