Explore BrainMass
Share

Creating and Validating HTML files

This content was STOLEN 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 December 20, 2018, 7:02 am ad1c9bdddf
https://brainmass.com/computer-science/files/creating-validating-html-files-393987

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">
<head>
<!--Comment 1: Rubric Objective 2: The page is titled with the student's name -->
<title>Type your name here</title>
</head>
<body>
<!--Comment 2: Rubric Objective 3 and 4: The use of h1,i, p and hr tags-->
<h1>
<b>
<i>About myself</i>
</b>
</h1>
<hr/>
<p/>
<h2>My Hobbies</h2>
<p>
Playing chess<br/>
Listening Music<br/>
Swimming <br/>
</p>
<h3> My Favorite Movies</h3>
<p>
Catch me If You can<br/>
Jurassic Park<br/>
Saving Private Ryan<br/>
</p>

<h4> My favorite books</h4>
<p>
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.

$2.19