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.

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

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.