September 2005
Beginner
576 pages
13h 6m
English
This hour's workshop uses Java's file-handling and property configuration capabilities to clean up web pages. The TagCleaner application transforms all HTML markup tags on pages to upper- or lowercase, making these formatting commands more readable.
Listing 20.3 contains an example web page, test.html, with markup tags capitalized in several different ways.
1: <HTML> 2: <Head> 3: <TITLE>PALINDROME</TITLE> 4: </head> 5: <Body BGCOLOR="#FFFFFF"> 6: <div ALIGN="Center"> 7: <P>Dennis and Edna sinned.</P> 8: </div> 9: </Body> 10: </HTML> |
The HTML markup tags in Listing 20.3 are enclosed within “<” and “>” characters. These tags are not displayed when the page displays ...
Read now
Unlock full access