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>
<html>
<head>
<style> div.a {text-indent: 30px; } </style>

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

Capture.JPG

Link to comment
  • Replies 1
  • 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.

About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. 
Content: Links in my posts may refer to SF Digital products or may be affiliate links.
If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too.

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.