Explore BrainMass

Explore BrainMass

    Creating and Validating HTML files

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    Create a HTML page that must satisfy the following requirements:

    1. Document Validates as XHTML 1.0 Strict.
    2. The page is titled with the student's name.
    3. All of the following tags are used: p, b, i, hr
    4. 3 of the following tags are used: h1, h2, h3, h4, h5, h6, br
    5. Code Comments are used to identify the location of Rubric Objectives.
    6. Code Formatting is used to increase the readability of the HTML code.

    After creating the page, please explain to me how do I validate it.

    © BrainMass Inc. brainmass.com April 3, 2020, 9:39 pm ad1c9bdddf

    Solution Preview

    Images that accompany this explanation can be found in the .doc attachment.

    Step 1:

    Start notepad. If you are using Windows Operating System, then just click on Start→ Run→ Notepad

    Step 2:

    Then type the code given below. I have explained the code line by line after the code.
    <?xml version="1.0" encoding="iso-8859-1"?>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">
    <!--Comment 1: Rubric Objective 2: The page is titled with the student's name -->
    <title>Type your name here</title>
    <!--Comment 2: Rubric Objective 3 and 4: The use of h1,i, p and hr tags-->
    <i>About myself</i>
    <h2>My Hobbies</h2>
    Playing chess<br/>
    Listening Music<br/>
    Swimming <br/>
    <h3> My Favorite Movies</h3>
    Catch me If You can<br/>
    Jurassic Park<br/>
    Saving Private Ryan<br/>

    <h4> My favorite books</h4>
    Beneath a Marble Sky<br/>
    The Time Travelers Wife <br/>
    Water for ...

    Solution Summary

    This solution explains in detail how to create a simple HTML file and validate it using the W3C XHTML validator.