0

I m using Sharepoint online, now I want to add a css file reference in Masterpage.

I have used following code in Oslo and seattle.HTML files, but I m getting an error error- SharePoint requires HTML files to be XML-compliant. Your file isn't XML-compliant, likely because of tag properties without quotes, missing closing tags, or invalid properties in tags.

enter image description here

1 Answer 1

0

In SharePoint master page, the custom CSS style needs to load after the main SharePoint styling CSS file "corev4.css" gets loaded.

Check if the reference convert to below inside the masterpage .master file or not:

<SharePoint:CssRegistration name="&lt;% $SPUrl:~sitecollection/Style Library/Styles/test.css %&gt;" runat="server" after="corev15.css" />

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.