Jump to content

Syntax Error on line 1

Recommended Posts

No matter how I rearrange my HTML, I am constantly blocked from viewing my page because there is a "Syntax Error on line 1" - there is NO syntax error on line 1. I have an entire block of code written out in a notepad file and it opens perfectly with web browsers. Below is a clip of it, from the beginning. How is <!DOCTYPE html> a syntax error? I have my opening and closing <head> and <body> tags way down below on the full document; again, this is just a clip.

<!DOCTYPE html>
<style> div.a {text-indent: 30px; } </style>

<link href='https://fonts.googleapis.com/css?family=Rajdhani' rel='stylesheet'>
          body {
          font-family: 'Rajdhani'; font-size: 16px; font-weight: bold; background-color: rgb(240,240,240)


Link to comment
  • Replies 1
  • Views 464
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

You cannot add HTML to the Custom CSS panel. This is for CSS (LESS) only.

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.