How to order the tags ?

Simple example. I have the following code:

<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html>

<!--#BlueDot Include files-->
<!--#include file="../../Connections/bluedot.asp" -->
<!--#include file="../../includes/bdot/attysessiontimeoutvb2.asp"-->
<!--#include file="../../includes/bdot/scripts.asp"-->
<!--#BeginBlock-->

<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>

<body>
</body>
</html>

Open in new window


I get this error:

Unexpected start tag

File: webaccess_SPadd.asp, Line: 68, Column: 1

This is in the <head> tag ... how should it be ordered so not to have that error ?
If I add <html> just above then I get an error saying the document has to html tags.
LVL 1
AleksAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Big MontyWeb Ninja at largeCommented:
my guess, without seeing the code, is that you have some html tags being written out in your include files.

what is line 68 in webaccess_SPadd.asp?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Shaun KlineLead Software EngineerCommented:
Curious. Where is the start HTML tag?
AleksAuthor Commented:
It seems the culprit is in this include file:

<!--#include file="../../includes/bdot/scripts.asp"-->
Moving that file inside the <head> fixed the issue. Thanks for pointing it out.
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Big MontyWeb Ninja at largeCommented:
good catch Shaun, unless it's located in one of the include files, they need to add one under the DocType specification
AleksAuthor Commented:
I was getting an error of two html tags if I added it. Now that I have moved the script I was able to add it.
Big MontyWeb Ninja at largeCommented:
just for my own intellectual curiosity, I don't quite understand you're explanation, can you elaborate? what did you move?
AleksAuthor Commented:
One of the include files, it was at the top. I moved it inside the 'head' , they were scripts.
The ones at the top are connections.  So the scripts were causing the issue because those belong inside the 'head'
Big MontyWeb Ninja at largeCommented:
gotcha, thx for clearing that up :)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP

From novice to tech pro — start learning today.