Jump to content

HTML Consistency

Recommended Posts

Hi, 

I'm adjusting the font-sizes using HTML/CSS, and I was just wondering if the <p1>, <p2>, and so forth tags stay the same throughout the pages, or if they only apply to that page.

Eg. 

If I have Page A where <p1> is font-size: 20px, will that mean Page B <p1> is also automatically font-size: 20px? 

Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Best way to learn is to try!
It really depends on where you're changing these values.

If you're changing them in a stylesheet that gets loaded on every page, then it will change it everywhere.
 

<html>
  <link rel="stylesheet" href="style.css" />
  
  ...
</html>

 

If you're changing them within the html of a particular page, it will only change the values of that page.

<html>
...
  <style> 
    h1 { font-size: 20px; }
  </style>
... 
  <body>
  
  </body>
</html>



If you're changing it inline it will only change that individual header.

<h1 style="font-size: 20px">

 

If you're changing this in the Squarespace Custom CSS section, it should apply to all pages.

 

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.