Index
absolute but fl exible layout. Special Characters See also layout and Numerics creating, 328–329 description, 326 (comment) tag, 13 heights, 329 != (not equal) operator, 363, 545 margins, 329 $ (dollar sign), 460 overview, 326 % (percent sign), 680 percentages, 326–328 & (ampersand), 528 widths, 329 * (asterisk), 461, 464 absolute layout . (period), 460, 463 CSS, 324–325 / (slash), 12, 342, 462 overview, 322–324 : (colon), 162, 368, 419, 551 XHTML, 324 ; (semicolon), 162, 342, 510, 666 absolute measurements, 189–190 { (left brace), 362, 369 absolute positioning { } (curly braces), 162, 363, 368–369, 464 absolute but fl exible layout } (right brace), 362, 368 creating, 328–329 + (plus sign), 355, 461, 464 description, 326 < (less than) operator, 363, 545 heights, 329 <= (less than or equal to) operator, 545 margins, 329 <> (angle braces), 12 overview, 326 = (equal sign), 364, 528, 678 percentages, 326–328 == (equality) operator, 363, 545, 678 widths, 329 > (greater than) operator, 363, 375, 544–545 absolute layout >= (greater than or equal to) operator, CSS, 324–325 375, 545 overview, 322–324 , (comma), 419 XHTML, 324 “ “ (double quotes) description, 317 coding with, 510 HTML, 318 double quote interpolation, 515 position guidelines, 318–319 embedding quotes within, 431 settings, 319–320 local styles, 242 COPYRIGHTEDz-index MATERIAL property, 320–322 ‘ ‘ (single quotes), 666 absolute references, 89 3D Button fi lter (IrfanView), 113 Accordion tool (jQuery UI), 798, 824–827 action attribute, 524, 534 addClass( ) event, 763 A addContactCSV.php program, 602–603 a value, 593 addContact.php program, 596–597 (anchor) tag, 84–86 addInput.html program, 357–358
559_9780470537558-bindex.indd9_9780470537558-bindex.indd 985985 110/7/100/7/10 99:01:01 PMPM 986 HTML, XHTML & CSS All-in-One For Dummies, 2nd Edition
Adobe Fireworks, 942 AJAXtabs.html program, 831–832 Adobe Flash AJAXtest.html program, 844–845 binary encoding, 262 alert( ) method, 342 disadvantages of, 261–262 alert statement, 345 search engine problems, 262 Align tool (Gimp), 952 technical issues, 262 alt attribute, 98 updating issues, 262 alternate text, 98 in Web-based fonts, 184 ampersand (&), 528 Adobe Photoshop, 942 anchor () tag, 84–86 Airbrush tool (Gimp), 945 AND clause, 725 AJAX (Asynchronous JavaScript and XML) angle braces (<>), 12 asynchronous transactions, 733 animate( ) method, 489, 492, 785 client-side inclusion, 964–966 :animated fi lter (jQuery), 796 CMS, building with, 766–769 animated GIFs, 105 connections animate.html program, 779–782 asynchronous, 741–742 animation checking status, 740–741 automatic motion getAJAX( ) function, 743–744 code, 484–485 HTML forms, building with, 737 overview, 483–485 opening to server, 739 setInterval( ) call, 485–486 overview, 734–737 boundaries, checking, 474–475 reading responses, 745
559_9780470537558-bindex.indd9_9780470537558-bindex.indd 986986 110/7/100/7/10 99:01:01 PMPM Index 987
CSS in, 775–776 moving sprites, 497 events, setting up, 782–783 overview, 490–492 fading elements in and out, 779 swapping, 492 fi lters, 796 updating images, 497 framework, creating, 782 reading input from keyboard, 475–476 hiding and showing content, sprite div, 467–468 771–773, 777 timer-based movement, 484–485 HTML in, 775–776 anti-aliasing, 945 initializing code, 792 antsFunction.html program initializing page, 776–777 chorus( ) function, 400 JSON object, 785 code, 397–399 modifying elements, 786–791 distraction, 401 move( ) function, 784 passing data to and from functions, node chaining, 783–784 398–401 page, building, 791 text, creating, 401–402 relative motion, 785–786 verse function, 400–401 resetting page, 795–796 antsParam.html program, 398–399 sliding elements, 778 Apache, 644, 872–873 speed attribute, 785 append( ) method, 792, 821 text, adding, 792–793 append mode, 598 time-based animation, 785 Apple Safari, 52 toggling visibility, 778 Apple Webkit framework, 52 transition support, 773–775 Aptana Studio. See also Integrated wrap method, 794–795 Development Environments (IDE) keyboard, reading input from automatic end tag generation, 58 event handlers, 478 on CD-ROM, 981 init( ) function, 477–478 changing extension, 61 key codes, 480 changing initial contents, 61 overview, 475–476 changing view, 61 page, building, 476–477 code completion, 338 responding to keystrokes, 479–480 customizing, 60–61 mouse-following effect debugging, 380–381 followMouse.html, 481–482 error detection, 58, 339 initializing code, 482 features of, 58–60 listener, 483 fi le management tools, 58 moving sprites, 472–474 help fi les, 338–339 overview, 467–468 HTML editor preferences, 60 preloading images issues with, 61 building code, 494–495 Outline view, 58–59 global variables, 495–496 Page preview, 58 initializing data, 496 syntax completion, 58, 338 loadImages( ) method, 496–497 writing JavaScript editor with, 338–339 movement, 492 XHTML template, 58
559_9780470537558-bindex.indd9_9780470537558-bindex.indd 987987 110/7/100/7/10 99:01:01 PMPM 988 HTML, XHTML & CSS All-in-One For Dummies, 2nd Edition
arguments, defi ned, 583 associative arrays. See also arrays arrays creating, 567 accessing, 405–406 extracting rows as, 620 associative foreach, using with, 568–570 creating, 567 normal arrays versus, 568 extracting rows as, 620 asterisk (*), 461, 464 foreach, using with, 568–570 asynch.html program, 742–743 normal arrays versus, 568 Asynchronous JavaScript and XML (AJAX) breaking strings into, 574–577 asynchronous transactions, 733 code, 405 client-side inclusion, 964–966 creating CMS, building with, 766–769 with explode, 574–575 connections overview, 559 asynchronous, 741–742 with preg_split, 576–577 checking status, 740–741 defi ned, 395 getAJAX( ) function, 743–744 description, 355 HTML forms, building with, 737 fi lling, 559–560 opening to server, 739 in HTML, 565–567 overview, 734–737 loops reading responses, 745 for loop, 406–407 sending requests and parameters, 740 foreach loop, 564–565, 568–570 setting up program, 743 overview, 562–567 XMLHttpRequest object, 738–739 multidimensional, 570–574 description, 731 objects, 395 features of, 731–732 one-dimensional JavaScript in, 733 creating, 559 libraries, 747–748 fi lling, 559–560 multipass application preloading, 562 HTML framework, setting up, 849–850 viewing elements of, 560–561 loadlist.php program, 851–852 preloading, 562 overview, 847–849 two-dimensional responding to selections, 852–853 calculating distance with, 573–574 select element, loading, 850 code, 411 showHero.php script, 853–854 description, 409 sending requests main( ) function, 411–412 overview, 843–844 setting up, 410–411 PHP, simplifying, 846–847
559_9780470537558-bindex.indd9_9780470537558-bindex.indd 988988 110/7/100/7/10 99:01:01 PMPM Index 989
attributes, defi ned, 75 basicColors.html program, 159–161 audience basicDL.html program, 73 broadband access, 900 basicForm.html program, 123 browsers used by, 900 basicLinks.html program, 85 computers used by, 900 basicOL.html program, 67–68 determining, 899–900 basicTable.html program, 74–75 mobile devices used by, 900 batch processing, 101, 115–117 profi ciencies, 900 Bezier path, 948
559_9780470537558-bindex.indd9_9780470537558-bindex.indd 989989 110/7/100/7/10 99:01:01 PMPM 990 HTML, XHTML, & CSS All-in-One For Dummies, 2nd Edition
borders (continued) Firefox, 51–52 codes, 220 advantages of, 51–52 colors, 220 on CD-ROM, 981 dashed, 221 code view, 52 dotted, 221 debugging, 383 double, 221 displaying XHTML pages on, 26–27 groove, 221 error-handling, 52 inset, 221 extensions, 52, 57 outset, 221 history, 50 overview, 219 HTML Validator, 54–55 partial, 222–224 Web Developer toolbar, 55–56, 170–172 ridge, 221 incompatibility, 19 shaded, 220 Internet Explorer shortcut, 222 debugging JavaScript, 381–383 solid, 221 displaying XHTML pages on, 26–27 styles, 221 history of, 50 temporary, 283–284 older versions of, 51 two-column design, 285–287 overview, 50–51 width, 220 support for HTML 5, 156 boundaries loading page into, 11 animation, 474–475 Mosaic, 49 word, 464 Mozilla, 52 box model. See also borders multiple, 43 block-level elements, 224–225 Netscape, 49 border, 225–228 Opera, 52 centering in, 226–228 portable, 53 description, 224 Safari, 52 inline elements, 224–225 text-only, 53 margins, 225–228 use in Web development, 44 overview, 224–225 Webkit framework, 52 paddings, 225–228 buildBlock.html program, 973–976
tags, 623 buildBlock.php program, 976–977 break statement, 370 buildContact.sql script, 666–667, 673 breakpoint, 387, 389 bullets, 66 brightness, 109 business rules, 703 broadband access, 900 button events, 428 browsers
559_9780470537558-bindex.indd9_9780470537558-bindex.indd 990990 110/7/100/7/10 99:01:01 PMPM Index 991
radio, 134–136 quote problems in, 242 check boxes versus, 135 readability of, 242 code, 135–136, 456 using, 241 creating, 134–136 overriding styles, 249–250 description, 122 overview, 170 name attribute, 455 precedence of style defi nitions, 250–251 Reset, 138 user preference, 250 Submit, 138 CDATA element, 438 turning links into, 301–302 CD-ROM Aptana Studio 2.0, 981 C author-created material, 981 customer care, 984 .ca domain, 87 Dia, 981 caches, defi ned, 750 FileZilla, 981 camel-casing, 584 Firefox, 981
559_9780470537558-bindex.indd9_9780470537558-bindex.indd 991991 110/7/100/7/10 99:01:01 PMPM 992 HTML, XHTML, & CSS All-in-One For Dummies, 2nd Edition
changeDocument.html program, client-side programming, 501–502 788–790 clone( ) function, 793–794 CHAR data type, 640, 642–643 clone( ) method, 820–821 character class, 463 clone button (jQuery), 786 chdir( ) function, 609 Clone tool (Gimp), 945 check boxes. See also multiple selections CMS (content management system) code, 133 characteristics, 916 creating, 132–134 content, adding, 925–926 description, 122, 452 CSS fi les, modifying, 939 ID, 134 data-based pages, creating, 452–453 blocks, adding, 976–978 radio buttons versus, 135 blockType table, 979 responding to, 453–454 CMS versus, 978 checkBounds( ) function, 474 cmsPage table, 979 checked property, 453 code, 967–969 Chrome, 52 creating, 967–978 classes. See also objects pageView view, 979–980 adding to pages, 207–208 PHP page to read from table, 970–972 combining, 208–210 user-generated content, 973–976 CSS classes, 208–210 Drupal, 919–920 defi ning, 206–207 functionality, adding new, 934–935 pseudo-classes, 213–215 index.php, modifying, 938–939 classes.html program, 208 info.php fi le, changing, 937–938 clear attribute, 276–278 installing, 922–924 Click event (jQuery), 763 Moodle, 917–918 clients communication tools, 918 defi ned, 869 online assignment creation/ error codes, 741 submission, 917 expectations, 897–898 online grade book, 917 individual users, 869 online testing, 918 limited, 870 specialized educational content, 918 resources, 869 student and instructor management, 917 temporary connections, 869 overview, 42, 916 in three-tiered architecture, 644 templates turning off, 870 adding additional, 932–933 client-side development system changing, 931–932 browser extensions, 870 packaging, 939–940 Integrated Development Environment, 871 prebuilt, 935–937 text editor, 870–871 themes, creating custom, 935–940 Web browsers, 870 Website Baker, 920–935
559_9780470537558-bindex.indd9_9780470537558-bindex.indd 992992 110/7/100/7/10 99:01:01 PMPM Index 993
WordPress, 918–919 split complementary, 175 WYSIWYG editor, 927–931 tetrad, 176 adding lists, links and images, 927 triad, 175 multiple paste options, 927 specifying in CSS, 163–168 overview, 17, 41, 927–931 style sheets predefi ned fonts and styles, 927 overview, 160–161 cmsAJAX page, 766–769 setting up, 161–162 cmsPage table, 979 value, 172–173 code maintenance, 42 Web-safe palette, 167–169 colon (:), 162, 368, 419, 551 colorTester.html program, 168 color attribute, 162 colspan attribute, 79–80 color balance, 109, 954 columns. See also rows; tables color palette defi ned, 638 GIF images, 103 spanning Web-safe, 167–168 multiple, 79 color parameter, 431 overview, 77–79 Color Picker tool (Gimp), 950 .com domain, 87 Color Scheme Designer, 173–175 Comic Sans font, 179 Color Selector tool (Gimp), 950 comma (,), 419 Colorize fi lter (Gimp), 954–955 command line, 645 colors comment () tag, 13 adding, 170 comparison condition, 363 background-color attribute, 162 comparison operators, 363–364, 545 changing, 162–164, 941, 955–956 compiled language, 504 choosing, 168–169 CONCAT function (SQL), 706 color attribute, 162 concatenation hex codes, 163–165 including spaces in, 347 hexadecimal notation, 165 literals, 347 hue, 172, 174 overview, 345–346 modifying, 169–170 in PHP, 512–513 names, 163–164 text editor, 346 overview, 159 variables, 347 saturation, 172 conditional comments scheme designer, 173–175 description, 252 schemes Internet Explorer accented analogic, 176 checking version, 256 analogic, 176 code specifi c to, 252–253 complementary, 175 using with CSS, 253–255 monochromatic, 175 overview, 175–176
559_9780470537558-bindex.indd9_9780470537558-bindex.indd 993993 110/7/100/7/10 99:01:01 PMPM 994 HTML, XHTML, & CSS All-in-One For Dummies, 2nd Edition
conditions CSS fi les, modifying, 939 Boolean functions, 363 data-based Boolean variables, 363 blocks, adding, 976–978 comparison, 363 blockType table, 979 comparison operators, 363 CMS versus, 978 defi ned, 363 cmsPage table, 979 description, 539 code, 967–969 else clause, 364–365, 367 creating, 967–978 expressions, creating, 368–369 pageView view, 979–980 if statements PHP page to read from table, 970–972 nesting, 370–372 user-generated content, 973–976 overview, 362–363 Drupal, 919–920 if-else structure, 365–367 functionality, adding new, 934–935 nested, 371–372 index.php, modifying, 938–939 switch structure, 367–370 info.php fi le, changing, 937–938 connections installing, 922–924 AJAX Moodle, 917–918 asynchronous, 741–742 communication tools, 918 checking status, 740–741 online assignment creation/ getAJAX( ) function, 743–744 submission, 917 HTML forms, building with, 737 online grade book, 917 opening to server, 739 online testing, 918 overview, 734–737 specialized educational content, 918 reading responses, 745 student and instructor management, 917 sending requests and parameters, 740 overview, 42, 916 setting up program, 743 templates XMLHttpRequest object, 738–739 adding additional, 932–933 creating, 617 changing, 931–932 database name, 616 packaging, 939–940 database password, 616 prebuilt, 935–937 database username, 616 themes, creating custom, 935–940 hostname, 616 Website Baker, 920–935 console object, 386–387 WordPress, 918–919 console.log function, 387 WYSIWYG editor, 927–931 constructors, defi ned, 416 adding lists, links, and images, 927 contactTable.php program, multiple paste options, 927 625–626, 633–634 overview, 17, 41, 927–931 :contains(text) fi lter (jQuery), 796 predefi ned fonts and styles, 927 content management system (CMS) context, selecting in, 216–217 characteristics, 916 contrast, 109 content, adding, 925–926 control and confi guration tools, 872
559_9780470537558-bindex.indd9_9780470537558-bindex.indd 994994 110/7/100/7/10 99:01:01 PMPM Index 995
control structures overriding styles, 249–250 conditions, 539 overview, 170 else clause, 543–545 precedence of style defi nitions, 250–251 if statement, 540–543 user preference, 250 if-else if structure, 552 CSS 3 embedded fonts, 184 for loop, 552–555 css method, 821 switch, 549–552 CSV fi les while loop, 555–558 creating, 685–687 cookies, 590 description, 685–687 corrupted database, rebuilding, 666 storing data in, 601–603 costs, 42 viewing data directly, 603–604 $count variable, 589 curly braces ({ }), 162, 363, 368–369, 464 counting loops, 373–374 CURRDATE( ) function (SQL), 706 CREATE TABLE command (SQL), 667–668 CURRTIME( ) function (SQL), 706 Crop tool (Gimp), 952 cursive fonts, 180 cropping, 101 custom bullets, 93 CSS (Cascading Style Sheets) customer care, 984 body style, 250 changing, 170–172 D class, 250 codes, 247–248 dashed border, 221 conditional comments, 251–256 data connections container elements, 250 AJAX design, 898 asynchronous, 741–742 element id, 250 checking status, 740–741 element styles, 250 getAJAX( ) function, 743–744 external style sheets, 242–246 HTML forms, building with, 737 hierarchy of styles, 248–249 opening to server, 739 incompatibility, 251–252 overview, 734–737 inheriting styles, 247–248 reading responses, 745 Internet Explorer-specifi c code, 252–253 sending requests and parameters, 740 local styles setting up program, 743 awkwardness of, 242 XMLHttpRequest object, 738–739 code, 240–241 creating, 617 description, 239 database name, 616 disadvantages of, 242 database password, 616 highest precedence in, 250 database username, 616 ineffi ciency of, 242 hostname, 616 lack of separation in, 242 Data Defi nition Language (DDL), 638 quote problems in, 242 readability of, 242 using, 241
559_9780470537558-bindex.indd9_9780470537558-bindex.indd 995995 110/7/100/7/10 99:01:01 PMPM 996 HTML, XHTML, & CSS All-in-One For Dummies, 2nd Edition
data normalization passwords, 616, 658 defi ned, 691, 700 printing data, 622–623 entity-relationship diagrams processing input, 632–633 components, 695 processing results, 619–620 defi ned, 695 responding to search requests, 630–632 drawing, 696 searching one-to-many relationship, 719 for any text in fi eld, 681 table defi nition, 696–699 for ending value of fi eld, 679–680 fi rst normal form, 700–701 with partial information, 679–680 second normal form, 701–702 with regular expressions, 681–682 third normal form, 702–703 selecting Data Query Language (DQL), 638 few fi elds, 675–677 data server, 644, 871 subset of records, 677–679 data storage, variables for, 344 sorting responses, 682–683 data types, 639–640 tables, adding to, 658 data-based content management system updating records in, 684 (dbCMS) user interaction, 628–634 blocks, adding, 976–978 username, 616 blockType table, 979 XHTML search form, 629–630 CMS versus, 978 XHTML tables for output, 625–627 cmsPage table, 979 date( ) function, 522 code, 967–969 DATE data type, 640 creating, 967–978 date values pageView view, 979–980 adding calculation to get years, 709 PHP page to read from table, 970–972 calculating, 707–713 user-generated content, 973–976 CONCAT function, 712–713 databases DATEDIFF( ) function, 708–709 connections to, creating, 617 MONTH( ) function, 711–712 corrupted, rebuilding, 666 YEAR( ) function, 711–712 creating DATEDIFF( ) function (SQL), 707–709 overview, 892–893 datePicker( ) method, 834–836 with phpMyAdmin, 659–663 Datepicker tool (jQuery UI), 799, 834–836 defi ned, 639 DAY( ) function (SQL), 707 defi nition lists, 623–625 dbCMS (data-based content management deleting records in, 684–685 system) editing records in, 682–683 blocks, adding, 976–978 extracting rows, 620–622 blockType table, 979 generating output, 633–634 CMS versus, 978 host name, 616 cmsPage table, 979 name, 616 code, 967–969 output format, 623–634 creating, 967–978 passing queries to, 618–619 pageView view, 979–980
559_9780470537558-bindex.indd9_9780470537558-bindex.indd 996996 110/7/100/7/10 99:01:01 PMPM Index 997
PHP page to read from table, 970–972 distance.php program, 571–572 user-generated content, 973–976 div element, 211, 213–217 DblClick event (jQuery), 763
- tag, 72 DDL (Data Defi nition Language), 638 DNS (Domain Name System), 888 debugging doctype, 29 Aptana, 380–381 tag, 22–23 changing DOM properties with, 425 Document Object Model (DOM) console output, 386–387 button events, 428–431 debug mode, 390–391 changeColor( ) function, 431 debugger directive, 389–390 description, 423 Firebug, 383–384 document object, examining, 425–426 Firefox, 383 embedding quotes within quotes, 431 interactive, 387–388 event-driven programming, 432–433 JavaScript on Internet Explorer, 381–383 getElementById( ) method, 434–435 logging to console, 386–387 HTML framework, 436–437 logic errors, 384–387 JavaScript code, 427–428 PHP, 557 navigating, 423–424 setting breakpoint, 389 objects, 426 setting up debugger, 388–389 page colors, controlling, 427–428 steps in, 392 properties, changing with Firebug, 425 dedicated server, 878 text fi elds, manipulating, 435 def property, 628 text input and output, 431–436 defi nition description, 72 writing to document, 436–438 defi nition lists, 65, 72–73, 623–625 XHTML form, creating, 433–434 defi nition terms, 72 document type does not allow DELETE command, 684–685 error, 33 delimited data document variable, 424 reading CSV data in PHP, 604–607 $(document).ready( ) function, storing data in CSV fi le, 601–603 755–756, 765 viewing CSV data directly, 603–604 Dodge/Burn tool (Gimp), 950 delimiter, 601 DOJO, 748 Dia (drawing tool), 901, 981 dollar sign ($), 460 dialog( ) method, 840–842 DOM (Document Object Model) Dialog tool (jQuery UI), 799 button events, 428–431 digital cameras, 98 changeColor( ) function, 431 digits, specifying, 464 description, 423 directories document object, examining, 425–426 changing, 608–609 embedding quotes within quotes, 431 generating list of fi le links, 609–611 event-driven programming, 432–433 opening, 608 getElementById( ) method, 434–435 reading, 608–609 HTML framework, 436–437
- tags, 72, 625 utilities, 950–952 dx parameter, 473 Windows Paint, 942 dy parameter, 473 XnView, 102
559_9780470537558-bindex.indd9_9780470537558-bindex.indd 998998 110/7/100/7/10 99:01:01 PMPM Index 999
text endless loops, 379–380 building tables in, 77 enhanced text editors, 43–44 in client-side development system, entities, 695 870–871 entity-relationship diagrams. See also Emacs, 48–49, 339 data normalization enhanced, 43–44 components, 695 features lacking in, 43 defi ned, 695 jEdit, 49, 339, 982 drawing, 696 Microsoft Word, 44 one-to-many relationship, 719 Notepad, 16, 44 table defi nition, 696–699 Notepad ++, 45–46, 339, 983 environment variables, 527, 530 opening, 9–10 EOT font format, 148 Scintilla, 49, 339 :eq (equals) fi lter, 795 SynEdit, 49 equal sign (=), 364, 528, 678 TextEdit, 44 equality (==) operator, 363, 545, 678 tools to avoid, 44–45 equals (:eq) fi lter, 795 VI, 339 Eraser tool (Gimp), 945 VIM, 339 error codes, 741 WYSIWYG error messages, 30–31 adding lists, links, and images, 927 eval( ) function, 356–357 multiple paste options, 927 event handlers, setting up, 478 overview, 17, 41 event-driven programming, 432–433 predefi ned fonts and styles, 927 Excel, 687 .edu domain, 87 execute permission, 884 element-level style. See local CSS styles explode method, 574–575 Ellipse Select tool (Gimp), 947 explode.php program, 574–575 else clause, 364–365, 367, 543–545 expressions, creating, 368–369 tag, 96, 204, 438 Extensible Hypertext Markup Language Emacs (text editor), 48–49, 339 (XHTML) email input element, 145 askName.html, 523 embedded fonts, 147–149, 184 building with PHP, 508–509 embedded images, 93, 96–97 coding, 898 embeddedFont.html program, 148 documents embeddedImage.html program, 96–97 code, 22 Emboss fi lter (IrfanView), 113 creating, 22–24 emphasis tag, 22–23 adding, 204 meta tag, 23 strong, 204–206 validator, 23–24 :empty fi lter (jQuery), 796 xmlns attribute, 23 ems, 191 fixedWidth.html, 293–294
559_9780470537558-bindex.indd9_9780470537558-bindex.indd 999999 110/7/100/7/10 99:01:01 PMPM 1000 HTML, XHTML, & CSS All-in-One For Dummies, 2nd Edition
Extensible Hypertext Markup Language for two-column design, 281–282 (XHTML) (continued) twoColumn.html, 281 forms validation, 21 buttons, 123 Extensible Markup Language (XML). See check boxes, 122, 132–134 also AJAX (Asynchronous JavaScript code, 123 and XML) with complex elements, 532–534 attributes, 856 creating, 433–434, 523–525, 629–630 container for elements, 856 drop-down list, 130–132 data elements, 122–123 in AJAX, 734 fi eldsets, 123–126 creating, 690 fl oating layout, 270–275 creating HTML, 858 get method, 527–529 manipulating with jQuery, 857–858 getting data from, 530–531 processing results, 859 input-style buttons, 137–138 retrieving, 858–859 labels, 123–126 storing, 854–855 legends, 123 data nodes, 856 multi-line text input, 128–130 description, 20 password boxes, 122 doctype, 855–856 password fi eld, 127–128 namespace, 23 radio buttons, 122, 134–136 nesting elements, 856 reading with PHP program, 525–526 extensions, 15–16 receiving data, 525–526 external style sheets Reset button, 138 code, 243 responding to, 535–537 defi ning styles, 243–244 search form, 629–630 description, 242–246 select lists, 122 link tags, 245–246 sending to PHP program, 527–529 reusing, 244–245 Submit button, 138 specifying external link, 246 text areas, 122 externalImage.html program, 94 text boxes, 122 externalStyle.html program, 243 text fi eld, 126–127 transmitting data, 529–530 F nestedList.html, 305–306 for site prototype, 908–909 fade in button, 773 standards, 20–21 fadeIn( ) method, 779 switching from PHP to, 517–518 fadeout( ) method, 779 tags Fantasy fonts, 181 , 22–23 fclose( ) function, 591, 594 meta, 23 feof( ) function, 600 template, 898, 907–909 fgets( ) function, 591, 600
559_9780470537558-bindex.indd9_9780470537558-bindex.indd 10001000 110/7/100/7/10 99:01:01 PMPM Index 1001
fi elds interactive debugging, 388 defi ned, 619, 638 logging to console with, 386–387 hidden, 438 setting breakpoint, 389 primary key, 641–642 setting up, 388–389 in records, 639 viewing generated source with, 444 searching for any text in, 681 Firefox searching for ending value of, 680 advantages of, 51–52 selecting, 675–676 on CD-ROM, 981
559_9780470537558-bindex.indd9_9780470537558-bindex.indd 997997 110/7/100/7/10 99:01:01 PMPM 998 HTML, XHTML, & CSS All-in-One For Dummies, 2nd Edition
DOM (Document Object Model) (continued) dynamic data, 354–355 JavaScript code, 427–428 dynamic graphs, 154 navigating, 423–424 dynamic length, 641 objects, 426 dynamic lists. See also lists page colors, controlling, 427–428 creating, 304–310 properties, changing with Firebug, 425 hiding inner lists, 306–307 text fi elds, manipulating, 435 nested lists, 304–306 text input and output, 431–436 showing inner lists on cue, 307–310 writing to document, 436–438 XHTML form, creating, 433–434 E Domain Name System (DNS), 888 domain names each( ) method, 859 description, 87, 887–888 easing, 784 IP addresses, 888 echo statement, 511 registering, 888–891 editor.css fi le, 937 subdomain, 87 editors Don Ho Notepad ++, 45–46, 339, 983 graphic dotted border, 221 Adobe Fireworks, 942 double border, 221 Adobe Photoshop, 942 DOUBLE data type, 640 building banner graphics with, 956–958 double quotes (“ “) building tiled background, 958–960 coding with, 510 changing colors with, 955–956 double quote interpolation, 515 choosing, 942 embedding quotes within, 431 creating image, 944–945 local styles, 242 description, 942 DQL (Data Query Language), 638 fi le format, 957 drag-and-drop, 155 Gimp, 942–960, 982 drag.html program, 803 GimpShop, 102 DROP command, 684 IrfanView, 101–102, 106–116, 982 drop-down lists modifi cation tools, 949–950 advantages of, 130 multiple windows, 942–943 building form for, 446–447 painting tools, 945–946 code, 131, 446–447 Paint.net, 102, 942 getting input from, 445–446 Pixia, 102 reading list box, 447–448 selection tools, 947–948 droplets, 934 toolbox, 943 Drupal, 919–920 uses for, 941