Link to home
Start Free TrialLog in
Avatar of Aleks
AleksFlag for United States of America

asked on

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.
ASKER CERTIFIED SOLUTION
Avatar of Big Monty
Big Monty
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Curious. Where is the start HTML tag?
Avatar of Aleks

ASKER

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.
good catch Shaun, unless it's located in one of the include files, they need to add one under the DocType specification
Avatar of Aleks

ASKER

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.
just for my own intellectual curiosity, I don't quite understand you're explanation, can you elaborate? what did you move?
Avatar of Aleks

ASKER

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'
gotcha, thx for clearing that up :)