Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I'm attempting to add a DOCTYPE Declaration to a SharePoint masterpage so i can get some CSS code working. I'm new to sharepoint and I do not know where to look for the masterpage so it can be editted. I have access to SharePoint Designer and site settings.

Ive tried just adding the tag to the default.apsx page but i get an error stating that things cannot be added outside of a script.

Any help would be much appreciated thanks.

share|improve this question

2 Answers 2

up vote 1 down vote accepted

If you are using 2010, in SharePoint Designer there is a Masterpages link on the left navigation once you connect to the site. There is already a DOCTYPE tag in the masterpage, so if you need to modify it, be sure to modify the existing one instead of adding a second one.

share|improve this answer
where is this doctype decalaration? I searched the document for "DOCTYPE" and could not find anything. –  user9084 Jun 28 '12 at 17:47
i got the code to work. thanks –  user9084 Jun 28 '12 at 18:12

It's usually under /_catalogs/masterpage. Are you a site admin or site collection admin, otherwise you might not be able to edit the masterpage.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.