Buy Refactoring HTML by Elliotte Rusty Harold - Bookswagon
close menu
Bookswagon
search
My Account
Home > Computing and Information Technology Books > Computer programming / software engineering > Programming and scripting languages: general > Refactoring HTML: Improving the Design of Existing Web Applications(Addison-Wesley Signature Series (Fowler))
Refactoring HTML: Improving the Design of Existing Web Applications(Addison-Wesley Signature Series (Fowler))

Refactoring HTML: Improving the Design of Existing Web Applications(Addison-Wesley Signature Series (Fowler))


     0     
5
4
3
2
1



Out of Stock


Notify me when this book is in stock
X
About the Book

Like any other software system, Web sites gradually accumulate “cruft” over time. They slow down. Links break. Security and compatibility problems mysteriously appear. New features don’t integrate seamlessly. Things just don’t work as well. In an ideal world, you’d rebuild from scratch. But you can’t: there’s no time or money for that. Fortunately, there’s a solution: You can refactor your Web code using easy, proven techniques, tools, and recipes adapted from the world of software development.

In Refactoring HTML, Elliotte Rusty Harold explains how to use refactoring to improve virtually any Web site or application. Writing for programmers and non-programmers alike, Harold shows how to refactor for better reliability, performance, usability, security, accessibility, compatibility, and even search engine placement. Step by step, he shows how to migrate obsolete code to today’s stable Web standards, including XHTML, CSS, and REST—and eliminate chronic problems like presentation-based markup, stateful applications, and “tag soup.”

The book’s extensive catalog of detailed refactorings and practical “recipes for success” are organized to help you find specific solutions fast, and get maximum benefit for minimum effort. Using this book, you can quickly improve site performance now—and make your site far easier to enhance, maintain, and scale for years to come.

Topics covered include

•    Recognizing the “smells” of Web code that should be refactored
•    Transforming old HTML into well-formed, valid XHTML, one step at a time
•    Modernizing existing layouts with CSS
•    Updating old Web applications: replacing POST with GET, replacing old contact forms, and refactoring JavaScript
•    Systematically refactoring content and links
•    Restructuring sites without changing the URLs your users rely upon

This book will be an indispensable resource for Web designers, developers, project managers, and anyone who maintains or updates existing sites. It will be especially helpful to Web professionals who learned HTML years ago, and want to refresh their knowledge with today’s standards-compliant best practices.
This book will be an indispensable resource for Web designers, developers, project managers, and anyone who maintains or updates existing sites. It will be especially helpful to Web professionals who learned HTML years ago, and want to refresh their knowledge with today’s standards-compliant best practices.



Table of Contents:

Foreword by Martin Fowler xvii
Foreword by Bob DuCharme xix
About the Author xxi

Chapter 1 Refactoring 1
Why Refactor 3
When to Refactor 11
What to Refactor To 13
Objections to Refactoring 23
 
Chapter 2 Tools 25
Backups, Staging Servers, and Source Code Control 25
Validators 27
Testing 34
Regular Expressions  48 
Tidy  54 
TagSoup  60 
XSLT  62 

Chapter 3 Well-Formedness  65 
What Is Well-Formedness?  66 
Change Name to Lowercase  69 
Quote Attribute Value  73 
Fill In Omitted Attribute Value  76 
Replace Empty Tag with Empty-Element Tag  78 
Add End-tag  81 
Remove Overlap  85 
Convert Text to UTF-8  89 
Escape Less-Than Sign  91 
Escape Ampersand  93 
Escape Quotation Marks in Attribute Values  96 
Introduce an XHTML DOCTYPE Declaration  98 
Terminate Each Entity Reference  101 
Replace Imaginary Entity References  102 
Introduce a Root Element  103 
Introduce the XHTML Namespace  104 


Chapter 4  Validity  107 
Introduce a Transitional DOCTYPE Declaration  109 
Remove All Nonexistent Tags  111 
Add an alt Attribute  114 
Replace embed with object  117 
Introduce a Strict DOCTYPE Declaration  123 
Replace center with CSS  124 
Replace font with CSS  127 
Replace i with em or CSS  131 
Replace b with strong or CSS  134 
Replace the color Attribute with CSS  136 
Convert img Attributes to CSS  140 
Replace applet with object  142 
Replace Presentational Elements with CSS  146 
Nest Inline Elements inside Block Elements  149 

Chapter 5  Layout  155 
Replace Table Layouts  156 
Replace Frames with CSS Positions  170 
Move Content to the Front  180 
Mark Up Lists as Lists  184 
Replace blockquote/ul Indentation with CSS  187 
Replace Spacer GIFs  189 
Add an ID Attribute  191 
Add Width and Height to an Image  195 

Chapter 6 Accessibility  199 
Convert Images to Text  202 
Add Labels to Form Input  206 
Introduce Standard Field Names  210 
Turn on Autocomplete  216 
Add Tab Indexes to Forms  218 
Introduce Skip Navigation  222 
Add Internal Headings  225 
Move Unique Content to the Front of Links and Headlines  226 
Make the Input Field Bigger  228 
Introduce Table Descriptions  230 
Introduce Acronym Elements  235 
Introduce lang Attributes  236 

Chapter 7  Web Applications  241 
Replace Unsafe GET with POST  241 
Replace Safe POST with GET  246 
Redirect POST to GET  251 
Enable Caching  254 
Prevent Caching  258 
Introduce ETag  261 
Replace Flash with HTML  265 
Add Web Forms 2.0 Types  270 
Replace Contact Forms with mailto Links  277 
Block Robots  280 
Escape User Input  284 

Chapter 8 Content  287 
Correct Spelling  287 
Repair Broken Links  292 
Move a Page 298
Remove the Entry Page  302 
Hide E-mail Addresses  304 

Appendix A Regular Expressions  309 
Characters That Match Themselves  309 
Metacharacters  311 
Wildcards  312 
Quantifiers  313 

Index  327 







About the Author :
Elliotte Rusty Harold is an internationally respected writer, programmer, and educator. His Cafe con Leche Web site has become one of the most popular sites for information on XML. In addition, he is the author and coauthor of numerous books, the most recent of which are Java I/O (O’Reilly, 2006), Java Network Programming (O’Reilly, 2004), Effective XML (Addison-Wesley, 2003), and XML in a Nutshell (O’Reilly, 2002).


Best Sellers


Product Details
  • ISBN-13: 9780132701877
  • Publisher: Pearson Education (US)
  • Publisher Imprint: Pearson Education (US)
  • Language: English
  • Sub Title: Improving the Design of Existing Web Applications
  • ISBN-10: 0132701871
  • Publisher Date: 02 Nov 2012
  • Binding: Digital (delivered electronically)
  • Series Title: Addison-Wesley Signature Series (Fowler)


Similar Products

Add Photo
Add Photo

Customer Reviews

REVIEWS      0     
Click Here To Be The First to Review this Product
Refactoring HTML: Improving the Design of Existing Web Applications(Addison-Wesley Signature Series (Fowler))
Pearson Education (US) -
Refactoring HTML: Improving the Design of Existing Web Applications(Addison-Wesley Signature Series (Fowler))
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

Refactoring HTML: Improving the Design of Existing Web Applications(Addison-Wesley Signature Series (Fowler))

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    Fresh on the Shelf


    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!
    Your IP: 216.73.216.252 IN