Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,194,671 members, 7,955,440 topics. Date: Sunday, 22 September 2024 at 05:58 AM

XHTML Debugging Challenge For Webmasters - Webmasters - Nairaland

Nairaland Forum / Science/Technology / Webmasters / XHTML Debugging Challenge For Webmasters (950 Views)

New Livescore Service For Webmasters / Help In Debugging PHP Code / Debugging - Share Those Moments Here (silly Bugs) (2) (3) (4)

(1) (Reply) (Go Down)

XHTML Debugging Challenge For Webmasters by Nobody: 11:37am On Jan 20, 2015
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): 4:03pm On Jan 24, 2015
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)

Facebook Group For Sale / Let Nairaland Have Its Adnetwork / Just Create A Blogger With Exert Same Look Like Linda Ikeji's Blog

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 16
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.