Index

• Symbols • • A • & (ampersand) element. See also links beginning entities, 21 for absolute links, 93 displaying on Web page, 22–23 CSS styles for, 145–146, 161–163, 165 * (asterisk) for JavaScript comments, 229 href attribute, 91, 93, 94, 99, 100, 101, 102 : (colon) before CSS pseudo-classes, 162 with image triggering links, 115–116 , (comma) in CSS declarations, 128 for named locations, 98–100 { } (curly braces) for CSS markup, 13 opening page in new window, 97 = (equals sign) overview, 91 reading and writing array elements, 242 for relative links, 94–95 setting JavaScript variables, 230 target attribute, 97 ! (exclamation mark) beginning comments abbr attribute for tables, 210 (), 23 components, 292 for HTML tags, 12 design considerations, 291–292 - (hyphen) instead of spaces in fi lenames, 35 Ed Tittel’s page, 26–28, 298 @import statement, 135 markup, 292–297 < (less-than sign) more complex version, 294 beginning comments (), 23 size, 166 for HTML tags, 12 text treatments, 170–174 greeked text, 311 tips for choosing fonts, 296, 302 green color coding in this book, 17 font-size property (CSS), 166 Greenspan, Jay (MySQL/PHP Database font-style property (CSS), 172 Applications), 323 font-weight property (CSS), 170–171 footer ID with tables, 204 for loops (JavaScript), 237–238, 242 forcing page refresh, 342 • H •

element, 251–252 h elements (h1 through h6). See headings form handlers handicaps. See accessibility CGI scripts for, 265–266 hard returns defi ned, 251 ignored in block elements, 75 ISP support for, 266 in preformatted text, 76 online sources of, 266 element prerequisites for creating, 264–265 clock code in, 279, 281 receiving data by e-mail, 266–267 described, 34, 62 forms. See also data-collection forms; input forcing page refresh, 342 controls for forms header section overview, 24 breaking into sections, 267 element in, 63–66 checking hosting support for, 265 metadata in, 63–65 creating, 251–252 placement of, 62 cues for users, 267 scripts in, 224 data as driver for, 247 text rollovers in, 277 designing to be user-friendly, 267–268 element in, 34, 62–63 gateway page for, 268 header scripts, 224–225 header section. See <head> element</p><p>333_2384793_238479 bbindex.inddindex.indd 337373 44/10/08/10/08 9:50:149:50:14 PMPM 374 HTML, XHTML & CSS For Dummies, 6th Edition </p><p> headings href attribute (<a> element) browser display of, 72–74 for absolute links, 93 CSS styles for, 74, 144–145, 164–165 for fi le downloads, 101 elements for, 24, 72 for intradocument links, 99 font sizes for, 74 for mailto: links, 102 formatting, 72 for named locations, 99, 100 overview, 24 overview, 91 with tables, 204 for relative links, 94 uses for, 72 hspace attribute ( element), height attribute ( element), 114–115 110–111 .htm or .html suffi x, 35 “Hello World!” Letter example HTML editors code listing, 33 helpers, 348–350 editing the page, 37–39 previewing capabilities of, 29–30 planning, 31–32 text editors versus, 30 posting the page, 37–39 WYSIWYG, 350–351 saving the page, 34–35 <html> element, 34, 61 viewing the page, 36–37 HTML Goodies site, 118, 365 writing HTML, 32–33 HTML (Hypertext Markup Language). See hexadecimal color codes, 158, 159–160 also XHTML; (X)HTML hidden fi elds, 257 as basis for Web pages, 10 “Hiding Your Email Address” (Chapman), 102 clock using, 278–279 Holden, Greg (Starting an Online Business For color coding in this book, 17 Dummies), 323 conventions in this book, 2–3 home page deprecated elements and attributes, 121, company site, 308, 309–311 157, 361–364 customizing template for your page, 311 in DHTML, 271 providing access from all areas of site, 49 DOCTYPE declaration, 60 home.html page, 308. See also home page DTDs, 358–360 HomeSite HTML editor, 348–349 importance of understanding, 334 h1 through h6 elements. See headings measurement values, 124 horizontal rules resources online, 364–366 attributes, 79–80 specifi cations for 4.01, 19 CSS for, 80 validating, 344 formatting, 79 XHTML versus, 16–17, 19 <hr> element for, 25, 78–80 HTML Link Validator, 354 uses for, 78, 80–81 HTML toolbox hosted e-commerce services, 323–324 collections, 356 hosting your site. See also Web servers fi nding good buys, 347 checking support for forms, 265 FTP clients, 356 costs of, 53 graphics tools, 351–353 domain name for, 53–54 HTML editors, 29–30, 348–351 fi nding a provider, 39 HTML validators, 355 host, defi ned, 51 link checkers, 353–354 hosting provider for, 53 HTML Toolbox (NetMechanic), 356 yourself, 52–53 HTML-Kit tools, 349–350, 355, 356 HotDog Pro WYSIWYG editor, 351 HTTP (Hypertext Transfer Protocol), 16 hover pseudo-class (CSS), 162–163 http:/, required for link URLs, 96 <hr /> element, 25, 79–80. See also http-equiv attribute, 65–66 horizontal rules hyperlinks. See links href attribute. See also href attribute (<a> hypertext, 10–11 element) Hypertext Markup Language. See HTML <area /> element, 117 hyphen (-) instead of spaces in fi lenames, 35 <link> element, 135</p><p>333_2384793_238479 bbindex.inddindex.indd 337474 44/10/08/10/08 9:50:149:50:14 PMPM Index 375</p><p> image maps using, 117–118 • I • for links in anchor tag, 115–116, 117 markup example, 107 icons in margins of this book, 6 src attribute, 20, 107 if statements (JavaScript), 235 triggering links, 115–116 if/else statements (JavaScript), 235–236 vspace attribute, 114–115 image maps, 117–118 width attribute, 110–111 image rollovers @import statement, 135 adding to page, 273–274 importing external style sheets (CSS), 135 button generator for, 272 indenting paragraphs using CSS, 169–170 code listings, 273, 274–275 index.html page, 308. See also home page preloader enhancement for, 274–275 inheritance (CSS), 131–132 states, 272, 273 inline elements, 71, 93. See also specifi c text rollovers versus, 275 elements image-editing tools inline event handlers (JavaScript), 245 creating borders using, 113 inline styles (CSS), 133, 135 fi nding hexadecimal color codes using, 160 <input /> element overview, 351–353 for check boxes, 255–256 images. See also element checked attribute, 256 alignment, 113–114 for fi le-upload fi elds, 257 alternative text for, 108–109, 116 for hidden fi elds, 257 for auction sites, 300, 302 maxlength attribute, 254 borders for, 112–113 name attribute, 253, 255 copyright issues, 106 for password fi elds, 254 fi le format information online, 105 for radio buttons, 255–256 fi le formats for, 104–105 for Reset buttons, 262, 263 graphics tools, 351–353 size attribute, 254 image maps, 116–118 src attribute, 263 as links, 115–118 for Submit buttons, 262, 263 logo for company site, 309 for text fi elds, 253–254 off-site, avoiding direct links to, 50 type attribute, 253, 254, 257, 262, 263 optimization tutorials, 104 value attribute, 255, 262, 263 in pop-up windows, JavaScript for, 218–219 input controls for forms relative links for, 106 check boxes, 255–256 role in Web pages, 103–104 drop-down lists, 258–260 rollovers, 272–275 fi le-upload fi elds, 257–258 scaling by browsers, 111–112 hidden fi elds, 257 site map for alternative accessibility, 46 multi-line text boxes, 261 size specifi cation for, 110–112 overview, 219–220 spacers for empty table cells, 194 password fi elds, 254–255 spacing for, 114–115 radio buttons, 255–256 storage location for, 106 Reset button, 261–263 turning small image into lines and boxes, Submit button, 261–263 110, 111 text fi elds, 253–254 Web-friendly, creating, 104–105 internal style sheets (CSS) wise use of, 333 adding to page, 133–134 element turning into external style sheets, 146–147 align attribute, 113–114 Internet connection for Web server, 52 alt attribute, 108 Internet resources border attribute, 112 About Me page by Ed Tittel, 298 described, 19 browser color display test page, 159 as empty element, 106 browsers list, 14 height attribute, 110–111 button generator, 272 hspace attribute, 114–115 CGI information, 264, 265</p><p>333_2384793_238479 bbindex.inddindex.indd 337575 44/10/08/10/08 9:50:149:50:14 PMPM 376 HTML, XHTML & CSS For Dummies, 6th Edition </p><p>Internet resources (continued) character codes, 361 • J • Citixxperience site, 45 Java versus JavaScript, 214 companion site for this book, 1 JavaScript CSE HTML Validator, Lite Edition, 340 for arranging content dynamically, 215–217 CSS documentation in iPod format, 153 arrays overview, 241–242 CSS reference, 125 basic syntax rules, 228–229 CSS specifi cations, 358 body scripts, 224 “CSS Structure and Rules” tutorial, 131 canned, limitations of, 223 CSS style sheet validation service, 129 clock examples using, 278–281 defi nition lists discussion, 89 color coding in this book, 17 deprecated elements and attributes, 361 components, 228 Dictionary of HTML META Tags, 66 CSS with, 122 DOM specifi cation, 245 data types overview, 231 DTDs, 360 deferring execution of, 246 For Dummies site, 47 defi ned, 213 FirstGov site, 11 in DHTML, 271 form handling scripts, 266 disabling for older browsers, 281 FTP client software, 55, 356 Document Object Model (DOM), 245–246 ghost sites, 338 events and event handling, 243–245 graphics formats information, 105 expression statements, 234 graphics tools, 352, 353 expressions, defi ned, 231 greeked text, 311 external fi le for, 225–227 hexadecimal color codes, 160 for form validation, 219–220, 264 “Hiding Your Email Address,” 102 functions overview, 239–241 HTML 4.01 specifi cations, 19 further information, 246, 264 HTML helper editors, 349, 350 header scripts, 224–225 HTML resource sites, 364–366 help for users with function turned off, 46 HTML utility collections, 356 for image rollovers, 272–275 HTML validators, 344, 355 including scripts in Web pages, 224–225 image map tutorials, 118 Java versus, 214 image optimization tutorials, 104 loops overview, 236–239 JavaScript information, 264 objects overview, 243 link checkers, 354 operators overview, 231–234 Lynx, 335 for pop-up windows, 218–219, 281–284 MOMspider link checker, 342 referencing an external fi le, 225–226 <object> element information, 288 uses for, 214–222 PayPal, 324 variables overview, 229–231 spell checking, 340–341 window parameters, 283–284 templates from this book, 298 (X)HTML markup related to, 246 TextPad text editor, 30 JPEG (Joint Photographic Experts Group) top online references, 357–366 format, 105 UI design, 56 .js fi les, 225–227 White House home page, 103–104 Juicy Studio site, 288 W3C Core style sheets, 135 W3C’s Web Accessibility Initiative (WAI), 109 WYSIWYG editors, 350, 351 • K • XHTML specifi cations, 19, 357–358 keywords in <meta /> element, 64–65 Yahoo! Merchant Solutions, 323 Zen Cart shopping cart, 324 intradocument links, 98–100. See also links italics, applying to text, 172</p><p>333_2384793_238479 bbindex.inddindex.indd 337676 44/10/08/10/08 9:50:149:50:14 PMPM Index 377</p><p> off-site, considerations for, 49–51 • L • opening pages in new window, 96–97 between pages of site, 94–95 language attribute (<script> element), pseudo-classes for (CSS), 161–163 224, 281 redirecting users to another page, 66 less-than sign (<) relative, 93–95 beginning comments (<!--), 23 resources that can be linked to, 92 displaying on Web page, 22–23 text for, 51 for HTML tags, 12 tips for using, 337–338 letter-spacing property (CSS), 168 URL specifi cation for, 92, 93, 94, 95–96 <li> element LinkScan/QuickCheck link checker, 354 for bulleted lists, 20, 85 lists for defi nition lists, 88 bulleted, 20, 84–87 for numbered lists, 81–82 defi nition, 87–89 light green color coding in this book, 17 nesting, 89–90 line breaks numbered, 81–84 <br /> element for, 25, 77–78 overview, 25 ignored in block elements, 75, 77 logo for company site, 309 paragraphs versus, 77 loops (JavaScript) in preformatted text, 76 defi ned, 236 line-height property (CSS), 167 for, 237–238, 242 lines while, 238–239 horizontal rules, 25, 78–81 Lopuck, Lisa (Web Design For Dummies), 56 using small image to create, 110, 111 lowercase. See case line-through text, 173–174 low-scroll rule for navigation aids, 336 link checkers, 353–354 Lynx for testing, 335 <link> element for external style sheets (CSS), 134–135, 147 link pseudo-class (CSS), 162–163 links • M • absolute, 93 mailto: links, 102 anchor element for, 91 maintaining your site, 338 basic, 91–92 Mander, Richard (Web Usability For broken, avoiding, 341–342 Dummies), 56 broken, fi xing, 94–96 Mansfi eld, Richard (CSS Web Design For browser display of, 92 Dummies), 125 “click here,” avoiding, 51 <map> element, 117 CSS styles for, 145–146, 161–163, 165 mapping your site. See site map cut and paste method for, 95–96 margin shorthand property (CSS), 140–141 defi ned, 10, 91 markup. See also specifi c kinds to e-mail addresses, 102 color coding in this book, 16 to external style sheets (CSS), 134–135, 147 defi ned, 4, 11 for fi le downloads, 101–102 overview, 11–13 font family for (CSS), 165 Matt’s Script archive site, 266 forcing page refresh, 342 maxlength attribute (<input /> element), http:/ required for URLs, 96 254 images as, 115–118 measurement values for properties (CSS), 124 intradocument, 98–100 media styles (CSS) MOMspider link checker, 342 paged media, 153–155 to named locations, 98–100 visual media, 148–153 to non-HTML resources, 100–102 media types (CSS), 148</p><p>333_2384793_238479 bbindex.inddindex.indd 337777 44/10/08/10/08 9:50:149:50:14 PMPM 378 HTML, XHTML & CSS For Dummies, 6th Edition </p><p><meta /> element   (non-breaking space) character, 204 content attribute, 63–64 nesting elements http-equiv attribute, 65–66 CSS inheritance with, 131–132 keywords and page descriptions in, 64–65 lists, 89–90 name attribute, 63–64 overview, 20 redirecting users to another page, 65–66 <pre> elements inside <blockquotes>, 76 metadata tables, 206–207 defi ned, 63 NetMechanic’s HTML Toolbox, 356 <meta /> element for, 63–64 new operator, creating arrays using, 242 uses for, 64–65 Nielsen, Jakob (accessibility expert), 56 method attribute (<form> element), 251 non-breaking space ( ) character, 204 methods (JavaScript), calling, 243 noshade attribute (<hr> element), 80 Microsoft Word Notepad text editor, 30 avoiding for HTML creation, 10, 30 numbered lists saving documents as text fi les, 32 browser display of, 84 MOMspider link checker, 342 defi ned, 81 monospaced type in this book, 2 elements for, 81 moving fi les to Web server, 39–40, 54–56 formatting, 82–83 multi-line text boxes, 261 nesting, 89–90 multimedia numbering, 83–84 paged media styles (CSS), 153–155 visual media styles (CSS), 148–153 multiple attribute (<select> element), 259 • O • music in auction pages, avoiding, 302 <object> element, 287–288 MySQL/PHP Database Applications (Bulger, objects (JavaScript), 243, 246 Greenspan, and Wall), 323 off-site links. See also links absolute links for, 93 considerations for choosing, 49–50 • N • endorsement implied by, 50 name attribute guidelines for, 50 <input /> element, 253, 255 link text for, 51 <meta /> element, 63–64 to named locations, 100 <select> element, 259 to non-HTML resources, 100–102 namespaces, 61–62 opening in new window, 96–97 navbar class (CSS), 139–141 reviewing periodically, 50 navigation tools. See also UI (<a href="/tags/User_interface/" rel="tag">user interface</a>) <ol> element, 81, 83–84 defi ned, 26 On the Web icon, 6 For Dummies site example, 47–49 operators (JavaScript) to home page, 49 arithmetic, 232 images versus text, 180 assignment, 232 importance of, 336 comparison, 233–234 low-scroll rule for, 336 counting, 232–233 navigation bar using CSS, 139–141 defi ned, 231 off-site links, 49–51 <option> element for drop-down lists, 259, planning for expansion, 46 260 for product catalog, 319 orange color coding in this book, 17 simple text bar, 310 ordered lists. See numbered lists site map, 45–46 outside links. See off-site links site map as aid to creating, 44, 49 overlapping objects with CSS, 141–142 site size issues for, 47 overlining text, 173–174 test visitor for, 49 uses for, 43 visual scheme for, 49</p><p>333_2384793_238479 bbindex.inddindex.indd 337878 44/10/08/10/08 9:50:149:50:14 PMPM Index 379</p><p> mapping your site, 44–46 • P • moving fi les to your Web server, 39–40, 51–54 <p> element off-site link considerations, 49–51 align attribute, 71–72 overview, 31–32 closing tag for, 71 professional design help for, 44 creating paragraphs, 70–71 questions to ask, 42 described, 24 requirements determined by goals, 43 “Hello World!” Letter example, 34 setting goals for site, 42–43 with <input /> element, 253 table layout, 179–180 with tables, 204 UI design resources, 56 padding for tables under construction sections, avoiding, 45 cellpadding attribute for, 192–193 PNG (Portable Network Graphics), 105 CSS styles for, 194–195 populating table cells, 201–204 padding property (CSS) pop-up text for images, 109 shorthand property for white space, pop-up windows 140–141 adding to page, 283 for table cells, 194–195 JavaScript for, 218–219, 281–284 paged media styles (CSS), 153–155 JavaScript window parameters, 283–284 pageHit cookie, 284–286 opening linked documents in, 96–97 pageVisit cookie, 284–286 users’ dislike of, 97, 219, 281–282 Paint Shop Pro Photo X2, 352 post method, 252 paragraphs. See also <p> element posting fi les to Web server, 39–40, 54–56 alignment, 71–72 <pre> element, 76 formatting, 70–71 preformatted text, 75–76 indenting (CSS), 169–170 preloaders for rollovers, 274–275 line breaks versus, 77 press page for company site, 309 line breaks within, 77–78 print style sheet (CSS), 154–155 line height specifi cation (CSS), 167 product catalog password fi elds, 254–255 advantages of Internet for, 319 paths (URL component), 15 category-page template, 326–327 PayPal components, 319–320 adding shopping cart to site, 324–326 designing, 320 shopping cart from, 323 detail-page template, 327–328 Web site, 324 further information, 323 PDF fi les incorporating PayPal shopping cart, linking to, 100–102 324–326 off-site, avoiding direct links to, 50 navigation interface, 319 peer reviews, 344 resources used by, 321 percentage property measurement values, shopping-cart software for, 322–324 124 properties (CSS). See also specifi c properties period (.) for color defi nitions, 161 accessing object properties or methods, 243 defi ned, 126 after CSS selector, 129–130 measurement values, 124 in relative link notation (../), 94–95 for paged media styles, 154 Photoshop (Adobe), 352–353 shorthand, 140–141 Photoshop Elements (Adobe), 352 for table borders, 187–189 planning Web pages. See also designing; UI for visual media styles, 149–152 (user interface) protocols, 15, 16. See also specifi c protocols building navigation tools, 47–49 pseudo-classes (CSS), 161–163 getting critiques, 44 purple color coding in this book, 17 hosting considerations, 51–54 identifying elements needed, 43 importance of, 44</p><p>333_2384793_238479 bbindex.inddindex.indd 337979 44/10/08/10/08 9:50:149:50:14 PMPM 380 HTML, XHTML & CSS For Dummies, 6th Edition </p><p> search forms, 247, 248–249. See also forms • Q • <select> element for drop-down lists, 259–260 quotation marks (“) for attribute values, 20 selected attribute (<option> element), quotes, block, 74–75 260 selectors (CSS), 126, 128 semicolon (;) • R • in CSS declarations, 128 radio buttons, 255–256 ending entities, 21 reading array elements, 242 separating JavaScript statements, 229 redirecting users to another page, 65–66 servers. See Web servers relative links server-side scripting, 221 defi ned, 93 shape attribute (<area /> element), 117 guidelines for, 94 shopping-cart software for images, 106 Add to Cart button, 324–325 notation (../), 94–95 do-it-yourself, 324 simple, 94 functions provided by, 322 site links, 94–95 further information, 323 unaffected by server or domain change, 94 hosted e-commerce services for, 323–324 relative property measurement values, 124 incorporating PayPal into site, 324–326 Remember icon, 6 PayPal for, 323 Reset button for forms, 261–263 View Cart button, 325 revolutionary changes, avoiding, 337 shorthand properties (CSS), 140–141 RGB color values, 160 Simple Mail Transfer Protocol (SMTP), 16 rollovers SimpleText text editor, 30 defi ned, 272 site map image, JavaScript for, 272–275 benefi ts for users, 46 text, CSS for, 275–277 planning for expansion, 46 rows attribute (<textarea> element), 261 process of creating, 44 rows (table), <tr> element for, 182–183, under construction sections, avoiding, 45 195–196 using for development, 44–45, 340 rowspan attribute for tables, 198, 200–201 as visual guide for users, 45–46 rules attribute for tables, 210 “Site Redesign Tutorial” (Webmonkey), 56 site reviews, 344–345 size • S • for fonts, 74, 166 for horizontal rules, 79 saving Word document as text fi le, 32 image borders increasing, 113 scope attribute for tables, 210 of site, navigation and, 47 <script> element. See also client-side specifying for images, 110–112 scripts for text fi elds, 254 language attribute, 224, 281 size attribute processing order for multiple, 226 <hr> element, 79 src attribute, 225, 226 <input /> element, 254 type attribute, 224 slash (/) scripting. See also CGI (Common Gateway closing empty elements, 19 Interface); client-side scripts; JavaScript in HTML versus XHTML, 19 online sources for scripts, 266 for JavaScript comments, 229 server-side, 221 in relative link notation (../), 94–95 ScriptSearch site, 266 SmartFTP software, 55 search engines Smith, Bud (Web Usability For Dummies), 56 metadata used by, 64–65 SMTP (Simple Mail Transfer Protocol), 16 site map benefi ts for, 46 software. See also specifi c kinds <title> element used by, 63 fi nding good buys, 347</p><p>333_2384793_238479 bbindex.inddindex.indd 338080 44/10/08/10/08 9:50:149:50:14 PMPM Index 381</p><p>FTP clients, 55, 356 for visual layouts, 139–141 graphics tools, 351–353 z-index with, 141 HTML editors, 29–30, 348–351 style sheets. See CSS (Cascading Style HTML utility collections, 356 Sheets) HTML validators, 355 Submit button for forms, 261–263 link checkers, 353–354 summary attribute for tables, 210 shopping-cart, 322–324 syntax checkers, 335 text editors, 30 syntax, defi ned, 15 for Web servers, 52 spacing. See aligning; white space spammers, hiding e-mail addresses from, 102, • T • 315 <table> element span attribute for tables, 210 align attribute, 195–196 <span> element, applying CSS styles using, cellpadding attribute, 192–194 131 cellspacing attribute, 192–194 spell checking, 339, 340–341 optional attributes, 183 square brackets ([ ]) as array operator, 242 required for tables, 182 src attribute for simple table, 182–183 element, 20, 107 width attribute, 190–191 <input /> element, 263 width property (CSS), 192 <script> element, 225, 226 tables standards aligning, 195–198 HTML, 3, 16 basic structural elements of, 178–179 for tables, 205 basic (X)HTML elements of, 181–182 start attribute (<ol> element), 83 borders for, 186–188 start tags, 18 cell spans for, 178, 184, 198–201 Starting an Online Business For Dummies centering, 197–198 (Holden), 323 color for cells, 208–209 statements (JavaScript) creating a simple table, 182–183 conditional, 235–236 creating a table-based Web page, 183–184 defi ned, 228 dense, avoiding, 208 expression, 234 drafting, 180–181 Strict DOCTYPE declaration, 60, 61 empty cells for controlling layout, 194 strikethrough (line-through) text, 173–174 images versus text for navigation, 180 structure. See document structure nesting, 206–207 style attribute (CSS), 133, 135 other (X)HTML attributes, 209–210 <style> element other (X)HTML elements, 185 CSS style rules in, 133–134 overview, 25 turning internal to external style sheet, 147 padding and spacing for, 192–195 for visual layouts, 139–141 planning layout of, 179–180 style rules (CSS) populating cells, 201–204 changing dynamically with JavaScript, presentation-focused, 176 215–217 simple versus complex, 177–178 class attribute, 129–131 standards for, 205 defi ned, 126 testing, 205 inheritance, 131–132 tips for creating, 205–209 multiple per selector, 128 uses for, 175–178 for old and new browsers, 147 white space for markup, 206 for positioning elements, 141–142 width adjustments, 189–192 precedence for, 136, 163 (X)HTML and CSS for, 176 setting for entire document, 132 tags. See elements; specifi c elements site-wide style sheet, 309, 316–318 target attribute (<a> element), 97 <span> element with, 131 <tbody> element, 185, 197</p><p>333_2384793_238479 bbindex.inddindex.indd 338181 44/10/08/10/08 9:50:149:50:14 PMPM 382 HTML, XHTML & CSS For Dummies, 6th Edition </p><p><td> element text blocks. See also forms; tables; specifi c align attribute, 195–196 kinds border-spacing property (CSS), 194–195 aligning using CSS, 168–169 colspan attribute, 184, 198–200 bulleted lists, 20, 84–87, 89–90 creating cells using, 183–184 formatting ignored by browsers, 75 nesting <table> elements in, 206–207 headings, 24, 72–74, 144–145, 164–165, 204 padding property (CSS), 194–195 inline elements versus, 70 required for tables, 182 numbered lists, 81–84, 89–90 rowspan attribute, 198, 200–201 paragraphs, 24, 70–72, 77–78, 167, 169–170 for simple table, 182–183 quotes, 74–75 valign attribute, 196 types of, 69 width attribute, 190–191 text editors, 30. See also HTML editors; width property (CSS), 192 specifi c editors Technical Stuff icon, 6 text fi elds, 253–254 templates text rollovers for auction item presentation, 303–305 adding to page, 277 category page, 327–328 browser display of, 276 detail page, 327–328 code listing, 277 downloading, 298 CSS for, 275–278 testing on multiple browsers, 336 image rollovers versus, 275 using ones in this book, 298 text-align property (CSS) testing. See also validating for tables, 197 beta-testing, 343 for text, 169 Lynx for, 335 <textarea> element, 261 multiple browsers for, 335–336 text-decoration property (CSS), 173–174 navigation tools, 49 text-indent property (CSS), 169–170 pages for browsers disabling CSS, 128 text-only browsers peer reviews for, 344 alternative text for images, 108–109, 116 site reviews for, 344–345 headings display in, 74 tables, 205 need for, 13 tips for, 335–336 TextPad text editor, 30 user feedback for, 345–346 text-transform property (CSS), 172–173 text. See also font specifi cations using (CSS); TextWrangler HTML editor, 349 text blocks <tfoot> element, 185, 197 for auction sites, tips, 302 <th> element, 185, 197 boldface for, 170–171 <thead> element, 185, 197 color change using CSS, 161 Tip icon, 6 defi nition lists, 87–89 <title> element, 34, 62–63 for forms, 267 Tittel, Ed (About Me page), 26–28 greeked, 311 tools. See software horizontal rules, 25, 78–81 top-down page design, 332 HTML page as collection of blocks, 69 Totty, Brian (HTTP expert), 16 for hyperlinks, 51 <tr> element, 182–183, 195–196 hypermedia usage tips, 337–338 Transitional DOCTYPE declaration, 60, 61 as image alternative, 108–109, 116 Tricks of the Trade icon, 6 inline elements versus blocks, 70 type attribute. See also type attribute italics for, 172 (<input /> element) line breaks, 25, 77–78 <ol> element, 84 nesting lists, 89–90 <script> element, 224 positioning using CSS, 168–170 <ul> element, 85 preformatted, 75–76 type attribute (<input /> element) rollovers, 275–277 for check boxes, 255 spell checking, 339, 340–341 for fi le-upload fi elds, 257 tips for choosing fonts, 296 for hidden fi elds, 257</p><p>333_2384793_238479 bbindex.inddindex.indd 338282 44/10/08/10/08 9:50:149:50:14 PMPM Index 383</p><p> for password fi elds, 254 variables (JavaScript) for radio buttons, 255 declaring, 230–231 for Reset buttons, 262, 263 defi ned, 230 for Submit buttons, 262, 263 overview, 229–231 for text fi elds, 253 vertical-align property for tables (CSS), typos, avoiding, 339 197 View Cart button, 325 visited pseudo-class (CSS), 162–163 • U • visual layouts using CSS, 139–141 visual media styles (CSS), 148–153 UI (user interface). See also designing; vspace attribute ( element), navigation tools; planning Web pages 114–115 defi ned, 41 design resources, 56 Gmail’s use of JavaScript for, 222 importance of, 41 • W • site map, 44–46 Wall, David (MySQL/PHP Database visual scheme for, 49 Applications), 323 <ul> element, 20, 85–86 Warning! icon, 6 under construction sections, avoiding, 45 Web browsers. See browsers underlining text, 173–174 Web Design For Dummies (Lopuck), 56 underscore (_) instead of spaces in fi lenames, Web Design Group, 131, 365 35 Web Developer’s Virtual Library (WDVL), 365 Unicode character codes, 22, 361 “Web Graphics Overview” (Webmonkey), 105 unordered lists. See bulleted lists Web hosting. See hosting your site uploading fi les to Web server, 39–40, 54–56 Web Pages That Suck site, 56 uppercase. See case Web resources. See Internet resources URLs (Uniform Resource Locators). See also Web servers. See also hosting your site links dedicated, 52 components, 15 defi ned, 52 conventions in this book, 2 Internet connection for, 52 overview, 14–15 moving fi les to, 39–40, 51–54 for posting fi les to server, 54 overview, 13–14 redirecting users to another page, 65–66 relative links not affected by changing, 94 user feedback, 345–346 software for, 52 user interface. See UI Web Usability For Dummies (Mander and Smith), 56 WebCom.com site, 365 • V • Webmastering For Dummies (Wiley publication), 52 validating. See also testing Webmonkey forms, 219–220, 264 hexadecimal color codes, 160 HTML validators for, 344, 355 image optimization tutorials, 104 overview, 355 “Site Redesign Tutorial,” 56 spell checking, 339, 340–341 “Web Graphics Overview,” 105 style sheets, W3C service for, 129 Web site, 365 valign attribute for table elements, 196, 197 WebReference.com, 366 value attribute Web-safe colors, 159 <input /> element, 255, 262, 263 Westciv, CSS information from, 125, 153 <option> element, 259 while loops (JavaScript), 238–239 values. See also variables (JavaScript) White House home page, 103–104 CSS, 126 JavaScript, 229, 230</p><p>333_2384793_238479 bbindex.inddindex.indd 338383 44/10/08/10/08 9:50:159:50:15 PMPM 384 HTML, XHTML & CSS For Dummies, 6th Edition </p><p> white space cellspacing attribute for tables, 192–193 • X • CSS and <div> elements for, 76 XHTML. See also HTML (Hypertext Markup CSS properties for tables, 194–195 Language); (X)HTML CSS shorthand properties for, 140–141 color coding in this book, 17 ignored in block elements, 75 conventions in this book, 2–3 image settings for, 114–115 DOCTYPE declaration, 60–61 in JavaScript, 228–229 DTDs, 358–360 line breaks for, 77 HTML versus, 16–17, 19   (non-breaking space) character namespace, 61–62 for, 204 specifi cations for, 19, 357–358 in preformatted text, 76 (X)HTML. See also HTML (Hypertext Markup for table markup, 206 Language); XHTML uses for, 76 color coding in this book, 17 width attribute color names, 158–159 <hr> element, 79 color numbers, 159–160 element, 110–111 conventions in this book, 2–3 <table> or <td> element, 190–191 deprecation of formatting markup, 121, 157, width property for tables (CSS), 192 197 word processors, avoiding for HTML do’s and don’ts, 331–338 creation, 10, 30 DTDs, 358–360 word-spacing property (CSS), 168 examples online, 1 World Wide Web, 11 HTML versus XHTML, 16–17, 19 writing array elements, 242 specifi cations, 19 WS_FTP software, 55 well-structured, elements required for, W3C Link Checker, 354 23–24 W3C (World Wide Web Consortium) XML (eXtensible Markup Language), 16, 17 Core style sheets, 135 CSS3 specifi cation, 123 HTML standards kept by, 3, 16 HTML Validator, 344, 355 • Y • link to site, 92 Yahoo! <object> element information, 288 browsers list, 14 style sheet validation service, 129 Merchant Solutions, 323–324 Web Accessibility Initiative (WAI), 109 “Your Complete Guide to Web Design” online, Web site, 364 56 W3Schools site, 288, 365 WYSIWYG editors, 350–351 • Z • Zen Cart shopping cart, 324 Zvon’s site, 365</p><p>333_2384793_238479 bbindex.inddindex.indd 338484 44/10/08/10/08 9:50:159:50:15 PMPM</p> </div> </article> </div> </div> </div> <script type="text/javascript" async crossorigin="anonymous" src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8519364510543070"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.1/jquery.min.js" crossorigin="anonymous" referrerpolicy="no-referrer"></script> <script> var docId = 'be5b7a5bc7ee26a3dad2c0729f56a85b'; var endPage = 1; var totalPage = 18; var pfLoading = false; window.addEventListener('scroll', function () { if (pfLoading) return; var $now = $('.article-imgview .pf').eq(endPage - 1); if (document.documentElement.scrollTop + $(window).height() > $now.offset().top) { pfLoading = true; endPage++; if (endPage > totalPage) return; var imgEle = new Image(); var imgsrc = "//data.docslib.org/img/be5b7a5bc7ee26a3dad2c0729f56a85b-" + endPage + (endPage > 3 ? ".jpg" : ".webp"); imgEle.src = imgsrc; var $imgLoad = $('<div class="pf" id="pf' + endPage + '"><img src="/loading.gif"></div>'); $('.article-imgview').append($imgLoad); imgEle.addEventListener('load', function () { $imgLoad.find('img').attr('src', imgsrc); pfLoading = false }); if (endPage < 7) { adcall('pf' + endPage); } } }, { passive: true }); </script> <script> var sc_project = 11552861; var sc_invisible = 1; var sc_security = "b956b151"; </script> <script src="https://www.statcounter.com/counter/counter.js" async></script> </html>