Advertisement

04.17.2008 at 03:39PM PDT, ID: 23332780
[x]
Attachment Details

Simple border code problem

Asked by djmichaelray in Extensible HTML (XHTML), Hypertext Markup Language (HTML)

Tags: , ,

Im running a website i designed through a validitng program and i am getting six errors which im going to ask in seperate questions.

The first is ....

# Line 4, Column 30: there is no attribute "border".

<frameset rows="600,*" border="0">   -This was my code in the html file


You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
# Error Line 4, Column 33: document type does not allow element "frameset" hereStart Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<frameset rows="600,*" border="0">
<frame src="http://www.cameronvanhoy.net/top.html" name="topframe"/>
<frame src="http://www.cameronvanhoy.net/bottom.html"/>
</frameset><noframes></noframes>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Cameron Van Hoy's Website</title>
    <!-- TemplateEndEditable -->
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    <style type="text/css">
    <!--
    body {
        font: 100% Verdana, Arial, Helvetica, sans-serif;
        background: #666666;
        margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
        padding: 0;
        text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
        color: #000000;
    }
    .oneColElsCtr #container {
        width: 60em;
        background: #FFFFFF;
        margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
        border: 0px solid #000000;
        text-align: left; /* this overrides the text-align: center on the body element. */
    }
    .oneColElsCtr #mainContent {
        padding: 0 20px; /* remember that padding is the space inside the div box and margin is the space outside the div box */
    }
    -->
    </style></head>
    
    <body class="oneColElsCtr">
    
    <div id="container">
      <div id="mainContent">
        
        <!-- end #mainContent --></div>
    <!-- end #container --></div>
    </body>
</html>
[+][-]04.17.2008 at 04:00PM PDT, ID: 21382149

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Extensible HTML (XHTML), Hypertext Markup Language (HTML)
Tags: HTML, Java Script, XHTML, Safari, I.E, Mozilla, www.cameronvanhoy.net
Sign Up Now!
Solution Provided By: mpn_1983
Participating Experts: 1
Solution Grade: A
 
 
[+][-]04.17.2008 at 04:04PM PDT, ID: 21382173

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.17.2008 at 05:01PM PDT, ID: 21382387

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628