473,326 Members | 2,104 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Im in school and need help with Validation

nd21402
I created a page and I have tried to validate numerous times with no success. My page is still showing 3 errors... I have been working on these for hours and I can really use some help..

The codes are as follows:

Below are the results of checking this document for XML well-formedness and validity.

Error Line 7, column 9: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified .
<p class=MsoNormal>

Error Line 8, column 19: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag .
<div align="center">
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").



Error Line 17, column 6: end tag for "p" omitted, but OMITTAG NO was specified .
</body>
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".



Info Line 7, column 0: start tag was here .
<p class=MsoNormal>


Source Listing
Below is the source input I used for this validation:
[html]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>WEB110 SITE DEVELOPMENT WORK</title>
</head>
<body>
<p class=MsoNormal>
<div align="center">
<h3>Hi D.I... I'm still alive and trying very hard to keep up with the class :)</h3>
<p><font face="arial" size="4" color="#0000bb">Check out the following links</font></p>
<p></p>
<p><font face="arial" size="4" color="#0000bb"><a href="http://lamp.cpcc.edu/~ndrinka0/pages/play.htm">Play Page</a></font></p>
<p><font face="arial" size="4" color="#0000bb"><a href="http://lamp.cpcc.edu/~ndrinka0/pages/Personal.htm">Personal Page</a></font></p>
<p><font face="arial" size="4" color="#0000bb"><a href="http://lamp.cpcc.edu/~ndrinka0/pages/Project.htm">Project Page</a></font></p>
<p><font face="arial" size="4" color="#0000bb"><a href="http://lamp.cpcc.edu/~ndrinka0/pages/web110.htm">Web110</a></font></p>
</div>
</body>
</html>[/html]
Mar 13 '07 #1
1 1466
drhowarddrfine
7,435 Expert 4TB
class names must be enclosed in quotes.
You don't have a closing </p> for your first one. Also, that <p> encloses a <div>. <p> can only contain inline elements while <div> is a block level element.
In addition, the <font> tag has been deprecated. You should be using css.

A further note, the msonormal class is telling me you are trying to use Word as a web page creator. Word creates horrendous, invalid code. Don't use it.
Mar 13 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

75
by: Howard Nease | last post by:
Hello, everyone. I would appreciate any advice that someone could give me on my future career path. Here is my situation: I am a bright Junior in a very well-respected private high school, taking...
1
by: Volkan Arslan | last post by:
------------------------------------------------------------- LASER Summer School on Software Engineering Practical Techniques of Software Quality Elba, Italy September 12 - 18, 2004 ...
8
by: Christan | last post by:
I am currently taking a db course and my class is paired us into groups of 4s and our instructor had us download a template from the microsoft Access site for education to create and modify a...
0
by: Volkan Arslan | last post by:
------------------------------------------------------------- LASER Summer School on Software Engineering Software engineering for concurrent and real-time systems Elba, Italy September 11 -...
4
by: usl2222 | last post by:
Hi folks, I appreciate any assistance in the following problem: I have a form with a bunch of dynamic controls on it. All the controls are dynamically generated on a server, including all...
18
by: Q. John Chen | last post by:
I have Vidation Controls First One: Simple exluce certain special characters: say no a or b or c in the string: * Second One: I required date be entered in "MM/DD/YYYY" format: //+4 How...
3
by: shahram.shirazi | last post by:
Hi guys, I was wondering if someone could help me a bit here. Im trying to desing an electronic register system for a school. In terms of the table design, I obviously need a Student Details...
2
by: notAclueabouthtml | last post by:
Hi all, Well, I think that I have bit off more than I can chew. I believe that I would benefit from a private tutor of sorts. but here goes. I am in charge of my kids middle school "giving fund"....
5
by: Lockwood | last post by:
someone check out this program and tell me what im doing wrong please...every time i fix some errors i get even more than before (right now theres 10). note that im a beginner/noob, and that this...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.