₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,329,452 members, 8,440,667 topics. Date: Tuesday, 07 July 2026 at 11:40 AM

Toggle theme

XHTML Debugging Challenge For Webmasters - Webmasters - Nairaland

Nairaland ForumScience/TechnologyWebmastersXHTML Debugging Challenge For Webmasters (1014 Views)

1 Reply (Go Down)

XHTML Debugging Challenge For Webmasters by Nobody:
Assuming that the following code is intended to be XHTML Strict 1.0 compliant, identify and correct the errors. (Hint: if there is something missing, that should be counted as error and added.)

Problem 1

1 <html>
2 <head>
<title>Sample Web Page<title>
3 </head>
4 <body>
5 <em><h2>Welcome to my Web page!</h2></em>
6 <strong>Here are some samples of my HTML expertise:</strong><br>
7 <BIG>Here’s some big text.</BIG><br>
8 <smaller>Here’s some smaller text.</smaller><br>
9 <p>And here’s a new paragraph to round things out.
10 </html>

Problem 2

1 <html>
2 <head>
<title>Red Mountain Consulting</title>
3 <externalstyle>
REL="stylesheet"
TYPE="text/css"
HREF="mystyles.css"
4 </externalstyle>
5 <internalstyle type="text/css">
h2 {color:lightgreen; bgcolor:yellow}
p {textalign:justify; text-weight:bold}
p intro {textalign:center; color:blue}
6 </internalstyle>
7 </head>
8 <body>
9 <h1>Red Mountain Consulting</h1>
10 <h2>Our Services</h2>
11 <p.intro>We specialize in project management consulting. Our partners and associates have extensive real-world experience in bringing even the most complex and deadline-sensitive projects to successful completion on time and under budget.</p>
12 <h2>Our Clients</h2>
13 <p>Our clients range from Fortune 500 companies to the most dynamic small cap companies in a broad range of industries.</p>
14 <h2>How to Reach Us</h2>
15 <p localstyle="font-style:italics">123 Market Street, San Francisco, CA<br />
16 510-321-1234</p>
17 </body>
18 </html>
Re: XHTML Debugging Challenge For Webmasters by fattbabakay(m): 3:54pm On Jan 20, 2015
Too weak grin
Re: XHTML Debugging Challenge For Webmasters by hollyfat(m): 7:13pm On Jan 20, 2015
1 <html>
2 <head>
<title>Sample Web Page<title>
3 </head>
4 <body>
5 <em><h2>Welcome to my Web page!</h2></em>
6 <strong>Here are some samples of my HTML expertise:</strong><br />
7 <BIG>Here’s some big text.</BIG><br />
8 <smaller>Here’s some smaller text.</smaller><br />
9 <p>And here’s a new paragraph to round things out.</p>
10 </html>
Problem 2
1 <html>
2 <head>
<title>Red Mountain Consulting</title>
3 <link rel="stylesheet" type="text/css"
href="mystyles.css" />
5 <style type="text/css">
h2 {color:lightgreen; bgcolor:yellow}
p {textalign:justify; text-weight:bold}
p .intro {textalign:center; color:blue}
6 <style>
7 </head>
8 <body>
9 <h1>Red Mountain Consulting</h1>
10 <h2>Our Services</h2>
11 <p class="intro">We specialize in project management consulting. Our partners and associates have extensive real-world experience in bringing even the most complex and deadline-sensitive projects to successful completion on time and under budget.</p>
12 <h2>Our Clients</h2>
13 <p>Our clients range from Fortune 500 companies to the most dynamic small cap companies in a broad range of industries.</p>
14 <h2>How to Reach Us</h2>
15 <p style="font-style:italics">123 Market Street, San Francisco, CA<br />
16 510-321-1234</p>
17 </body>
18 </html>
Re: XHTML Debugging Challenge For Webmasters by Nobody: 8:55pm On Jan 20, 2015
fattbabakay:
Too weak grin
lol........Tell op
Re: XHTML Debugging Challenge For Webmasters by Nobody: 11:07am On Jan 24, 2015
fattbabakay:
Too weak grin
Lol. I know. grin

It was an assignment sha. I just needed to confirm my answers were right.

Cc: Jregz

Hollyfat, thanks bro.
Re: XHTML Debugging Challenge For Webmasters by Nobody: 2:16pm On Jan 24, 2015
Victoriousvic:
Lol. I know. grin

It was an assignment sha. I just needed to confirm my answers were right.

Cc: Jregz

Hollyfat, thanks bro.
k bro
Re: XHTML Debugging Challenge For Webmasters by Guyson(m):
WRONG @YOU

Problem 1

Error on line 2 (close the title tag with a forward slash (/title) as follows)

2 <head> <title>Sample Web Page</title>

Error on line 9 (close any element that you open </p> )

9 <p>And here’s a new paragraph to round things out.</p>

Problem 2

Error(s) on line 3 and 4 (replace it with the following code)

3 <link REL="stylesheet" TYPE="text/css"
4 HREF="mystyles.css">

Error(s) on line 5 and 6 (you failed to put ( ; ) at the end/back of yellow, bold and blue. Replace it with the following...)

5 <style type="text/css">
h2 {color:lightgreen; bgcolor:yellow;}
p {textalign:justify; text-weight:bold;}
p intro {textalign:center; color:blue;}
6 </style>

That should solve it
1 Reply

New Livescore Service For WebmastersHelp In Debugging PHP CodeDebugging - Share Those Moments Here (silly Bugs)234

Tutorial On How To Start Your Own Forum Like NairalandHow To Get A Free Domain Name Registration PLUS Cheap Web HostingXML Split Tool Needed Pls