TAILIEUCHUNG - HTML and JavaScript for Visual Learners- P24

HTML and JavaScript for Visual Learners- P24: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. . | 110 3. Put these values in the drop-down list California The Rockies The Midwest 4. When finished save the page and preview it in the browser. It should look like this Download other Visibooks for free Ill Use style sheets The pros and cons of style sheets Style sheets are a flexible powerful tool for laying out and formatting Web pages. They allow every page in a site to get display instructions from just one style sheet. For instance if you created a 1 000 page Web site using style sheets and you wanted to change the link color on every page you d only need to change the link color on one style sheet. Without style sheets you d have to change 1 000 individual pages. Style sheets can also create display effects. An example of this is at . When you roll your- cursor over links they become underlined if you re viewing the page with the Internet Explorer browser. That s the disadvantage of using style sheets they re interpreted differently by each browser. A style sheet-based page viewed in Internet Explorer may look different than it does in Netscape Navigator or other browsers. Download other Visibooks for free 112 Create a style sheet 1. Create a new page with file name . 2. Save it in a new folder on the C drive called CSS Site. Tip This is a style sheet not a Web page. It s a file that gives Web pages formatting instructions but isn t ever seen. It contains no HTML and has a different file extension .css rather than .html. 3. On the page insert the following instruction .bodytext font-family Courier New Courier mono font-size 11pt font-weight bold color ff0000 background-color ccccff Here are the component parts of the formatting instructions for the .bodytext style .bodytext The type of text to be formatted. fontfamily The fonts in which the text should be displayed. First the computer looks for Courier New then Courier then a monospaced font. The quotes in Courier New allow the

Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.