471,075 Members | 667 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

HTML code warnings in asp.net html code view

Hi,

This is a silly question. I'm relatively new to asp.net and asp at all. But
I always had this doubt.

I'm working with Visual Studio and while exploring the ASPCommerce starter
kit, when I switch from design view to html code view, I see many keywords
underlied, like if they were invalid, however, they're not, they display
fine and the project runs fine.

Example, the next, the "link" keyword is underlied and it popups to : "the
active scheme does not support element link"

<link rel="stylesheet" type="text/css" href="ASPNETCommerce.css">

More, all the margin related attribute, are marked as : Could not find any
attribute "leftmargin" of element body

<body background="images/sitebkgrdnogray.gif" leftmargin="0" topmargin="0"
rightmargin="0"
bottommargin="0" marginheight="0" marginwidth="0">

And so on ....

So, could someone explain, what are all these warnings and where they are
comming from ?
Regards,


Nov 18 '05 #1
3 1550
Hi,

It's the VS internal html validation, which by default (with no meta header
"vs_targetSchema" in the head) validates against IE 3/NN 3. If you set the
document property targetSchema to Internet Explorer 5 most, if not all, of
these "errors" will disappear.

Greetings
Martin
"Craig Kenisston" <cr************@hotmail.com> wrote in message
news:OU**************@TK2MSFTNGP10.phx.gbl...
Hi,

This is a silly question. I'm relatively new to asp.net and asp at all. But I always had this doubt.

I'm working with Visual Studio and while exploring the ASPCommerce starter
kit, when I switch from design view to html code view, I see many keywords
underlied, like if they were invalid, however, they're not, they display
fine and the project runs fine.

Example, the next, the "link" keyword is underlied and it popups to : "the
active scheme does not support element link"

<link rel="stylesheet" type="text/css" href="ASPNETCommerce.css">

More, all the margin related attribute, are marked as : Could not find any
attribute "leftmargin" of element body

<body background="images/sitebkgrdnogray.gif" leftmargin="0" topmargin="0" rightmargin="0"
bottommargin="0" marginheight="0" marginwidth="0">

And so on ....

So, could someone explain, what are all these warnings and where they are
comming from ?
Regards,

Nov 18 '05 #2

Martin :

Thanks, I did it, set it to Internet Explorer 5.0 (the higher option
available there), and in fact it disappeared almost all.
However, these still there warning:

marginheight="0" marginwidth="0"

What does this have as special ?

Regards,
"Martin Dechev" <de*******@hotmail.com> wrote in message
news:Og**************@TK2MSFTNGP10.phx.gbl...
Hi,

It's the VS internal html validation, which by default (with no meta
header
"vs_targetSchema" in the head) validates against IE 3/NN 3. If you set the
document property targetSchema to Internet Explorer 5 most, if not all, of
these "errors" will disappear.

Greetings
Martin
"Craig Kenisston" <cr************@hotmail.com> wrote in message
news:OU**************@TK2MSFTNGP10.phx.gbl...
Hi,

This is a silly question. I'm relatively new to asp.net and asp at all.

But
I always had this doubt.

I'm working with Visual Studio and while exploring the ASPCommerce
starter
kit, when I switch from design view to html code view, I see many
keywords
underlied, like if they were invalid, however, they're not, they display
fine and the project runs fine.

Example, the next, the "link" keyword is underlied and it popups to :
"the
active scheme does not support element link"

<link rel="stylesheet" type="text/css" href="ASPNETCommerce.css">

More, all the margin related attribute, are marked as : Could not find
any
attribute "leftmargin" of element body

<body background="images/sitebkgrdnogray.gif" leftmargin="0"

topmargin="0"
rightmargin="0"
bottommargin="0" marginheight="0" marginwidth="0">

And so on ....

So, could someone explain, what are all these warnings and where they are
comming from ?
Regards,


Nov 18 '05 #3
Hi,

These are not in the w3c standards (they are in fact, but apply only for
frame and iframe) and will be ignored by browsers. I prefer setting the
margins of the body of the document using the style attribute:

<body style="margin: 0px;">

or assigning it a css class alternatively.

Greetings
Martin
"Craig Kenisston" <cr************@hotmail.com> wrote in message
news:OC**************@TK2MSFTNGP12.phx.gbl...

Martin :

Thanks, I did it, set it to Internet Explorer 5.0 (the higher option
available there), and in fact it disappeared almost all.
However, these still there warning:

marginheight="0" marginwidth="0"

What does this have as special ?

Regards,
"Martin Dechev" <de*******@hotmail.com> wrote in message
news:Og**************@TK2MSFTNGP10.phx.gbl...
Hi,

It's the VS internal html validation, which by default (with no meta
header
"vs_targetSchema" in the head) validates against IE 3/NN 3. If you set the document property targetSchema to Internet Explorer 5 most, if not all, of these "errors" will disappear.

Greetings
Martin
"Craig Kenisston" <cr************@hotmail.com> wrote in message
news:OU**************@TK2MSFTNGP10.phx.gbl...
Hi,

This is a silly question. I'm relatively new to asp.net and asp at all.

But
I always had this doubt.

I'm working with Visual Studio and while exploring the ASPCommerce
starter
kit, when I switch from design view to html code view, I see many
keywords
underlied, like if they were invalid, however, they're not, they display fine and the project runs fine.

Example, the next, the "link" keyword is underlied and it popups to :
"the
active scheme does not support element link"

<link rel="stylesheet" type="text/css" href="ASPNETCommerce.css">

More, all the margin related attribute, are marked as : Could not find
any
attribute "leftmargin" of element body

<body background="images/sitebkgrdnogray.gif" leftmargin="0"

topmargin="0"
rightmargin="0"
bottommargin="0" marginheight="0" marginwidth="0">

And so on ....

So, could someone explain, what are all these warnings and where they are comming from ?
Regards,



Nov 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

21 posts views Thread by Boris Ammerlaan | last post: by
reply views Thread by Dave Hammond | last post: by
36 posts views Thread by sonnystarks | last post: by
3 posts views Thread by KMA | last post: by
9 posts views Thread by Jens Jensen | last post: by
reply views Thread by leo001 | last post: by

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.