untitled

(John Hannent) #1

Test the W3C HTML validation now by following these steps:



  1. From this book’s Web page, copy this code:
    <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01
    Transitional//EN”


“http://www.w3.org/TR/html4/loose.dtd”>

<html>

<head>

<style>

body { margin-top: 20px; color: lightgray;}

</style>

</head>

<body>

<P>This is paragraph one.</P>

</body>
</html>


  1. Paste the code into Notepad.

  2. Choose File➪Save As in Notepad.
    A Save dialog box opens.

  3. Click the down arrow symbol to change the Save As Type list box
    from Text Documents (*.txt) to All Files.

  4. Type in myfirst.htmas the filename.

  5. Click the down arrow symbol next to the Save in list box.
    A list displays various locations on your hard drive.

  6. Navigate through the list to locate the c: drive (the main root direc-
    tory of c:).

  7. Click the c:.


Your save now puts this file on the c: drive.


  1. Click the Save button.


The file myfirst.htm is now located on c:.

Chapter 17: Testing and Debugging 311

Free download pdf