Solved

doctype error

Posted on 2007-03-24
3
552 Views
Last Modified: 2013-11-19
this is my doctype:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'."\n";
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

but in my javascript error console, im getting this message that i dont know how to fix as i get the doctype from the W3C website

Error: missing ; before statement
Source File: http://www.searobin.co.uk/
Line: 8, Column: 10
Source Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
0
Comment
Question by:ellandrd
  • 2
3 Comments
 
LVL 11

Expert Comment

by:Manish
Comment Utility
>><?xml version="1.0" encoding="UTF-8"?>
Is it HTML or xml?
0
 
LVL 11

Expert Comment

by:Manish
Comment Utility
After removing will it works?
0
 
LVL 28

Accepted Solution

by:
TName earned 500 total points
Comment Utility
Try to remove the empty js link (at least as long as it doesn't point to a file...)

<script src="" type="text/javascript"></script>
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now