473,385 Members | 1,337 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,385 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 1731
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

72
by: Mel | last post by:
Are we going backwards ? (please excuse my spelling...) In my opinion an absolute YES ! Take a look at what we are doing ! we create TAGS, things like <H1> etc. and although there are tools...
21
by: Boris Ammerlaan | last post by:
This notice is posted about every week. I'll endeavor to use the same subject line so that those of you who have seen it can kill-file the subject; additionally, Supersedes: headers are used to...
0
by: Dave Hammond | last post by:
When using mysqlimport, the final statistics include a count of "Warnings", for example: Connecting to foo.whatever.com Selecting database foo Loading data from LOCAL file: foo_userInfo.imp...
36
by: sonnystarks | last post by:
I am trying to learn HTML and have obtained several books on the subject. However, I am confused with the proper way of going about it as most of these books give me the basic tags and then say...
12
by: Nalaka | last post by:
Hi, I suddenly started getting a lot of errors from html validation (some CSS) so I followed the following instructions to disable it. If you'd rather not have these types of HTML validation...
3
by: KMA | last post by:
Just a general Q, but how do people feel about whether their html (or ASP.NETs html product) validates according w3org standards? I've just gone through a few hoops to get the warnings cleaned...
6
by: tropos | last post by:
For my sins, I'm maintaining some old C code which is migrated to C++. Dozens of lines of it looks like this: char *cfd_THE_ts_result_sql= "select TRADE_DATE , VALUE , " " from (" " select...
3
by: Rolf Welskes | last post by:
Hello, this is a hint only. If you make a custom control for example witch generates code <div......</div> and I put such a control in a page then in html-view of the aspx-file I could...
9
by: Jens Jensen | last post by:
Hello all, I need some design advice for my web service. I' have written a web service that exposes a function that takes some parameters and return an xml.
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...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.