How to order the tags ?

Simple example. I have the following code:

<!DOCTYPE html>

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

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


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.
Who is Participating?
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 MontySenior Web Developer / CEO of Commented:
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.
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Big MontySenior Web Developer / CEO of Commented:
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 MontySenior Web Developer / CEO of Commented:
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 MontySenior Web Developer / CEO of Commented:
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

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.