Timothy J Melody
  • Home
  • Web Design
  • SEO
  • Google Places
  • About
  • Blog
  • SEO Analysis
  • Contact

How to Add an H1 Tag to Weebly and Other HTML Headings

10/20/2012

42 Comments

 

The Weebly basic website elements menu including title with paragraph, picture with paragraph, picture, title text and more.
Weebly Drag and Drop Emements
Since the beginning of web design, basic HTML has allowed for the definition of various types of headings and subheadings - for the top of web pages, before paragraphs, above different page sections and other web page elements, etc. These are labeled in order of importance or prominence as H1 - H6, or Heading 1 - Heading 6 and are most widely known as heading tags. "Headings" refers basically to what they are or are meant for and "tags" refers to the HTML conventions that define headings.

By default, all Weebly TITLE text is set to H2. 

But what if you want to add an H1 title? You've probably read that this is good for SEO and want the best for your website and you are right. It's also good for a number of other reasons. 

So how exactly do you do it?

Adding an H1 tag to your Weebly website is easy and follows three broad steps.
  1. Drag and drop the EMBED CODE element to where you want it on the page.
  2. Enter your title with the proper <h1></h1> code.
  3. Advanced: define the H1 style in your main-style CSS or in the EMBED CODE element.

If you are inexperienced with CSS step 3 will be the most challenging. But we will do our best to give you the right tips.


Weebly basic website elements menu, highlighted custom HTML element.
Weebly Custom HTML Element
Custom HTML editor.

Step 1. Drag and Drop the Custom HTML Element

Drag and drop the EMBED CODE - also called CUSTOM HTML - element to where you want it on your webpage. Best practice for design, users and SEO is usually to have just one H1 tag, usually at the top of the page and allow all other headings to be H2, H3, etc. The main idea being order of importance . . .


Step 2. Enter Your Title with the Proper <h1></h1> Code

An h1 tag placed in the Weebly custom HTML element.
Type the heading title you want in the Custom HTML element between the proper tags.
Simply enter whatever you want your title to be between opening <h1> and closing </h1> HTML tags. For example:


<h1>Whatever You Want Your Title to Be</h1>


<h1> is the opening HTML tag for your title and </h1> is the closing HTML tag for the same. If you forget to add the closing </h1> tag, then the rest of the page may also render as H1 . . . and, whoops, that's not really best practice by any standard.

Click out of it and you now have an H1 heading tag on your website page!

But wait! . . .

Since H1 is usually not fully defined in the CSS of most Weebly website themes, you're likely going to see a generic H1 styling, usually large, bold and black. If this works for your styling then simply leave it. If not, then to change this you are going to have to add styling definitions in one of two places: either in your main-style.css sheet or use in-line CSS styling within the custom HTML element itself. 
H1 heading in Weebly without CSS styling.
Your h1 heading will likely have generic CSS styling.
 
Defining font, size and color in the main-style.css may be a little easier so we will look at how to do that first.
 

Step 3. (Advanced) Define the H1 Tag in Your Main-Style CSS


Click on the Design tab and then Edit HTML/CSS

Weebly WYSIWYG editor, design tab and edit html/css highlighted.
Click DESIGN then Edit HTML / CSS

Click on main-style.css and find the h1 CSS definitions. 

Weebly html/css editor, stylesheet and h1 definitions highlighted.
What you will find will vary depending on the Weebly website theme you are using. What you will need will also vary depending on your own design and styling goals. But here are a few tips. 

Some themes may already had a distinct h1 { } present in the main-style.css sheet. Our example theme did have any h1 definition at all. If tht is the case you will have to add it.  Like this:

h1 { }

Your style commands then go in between the { } as you can see in all of the other styling definitions.

In other themes you may find something different such as 

h1,
h2,
h3 { . . .} 

which is a way of grouping them altogether.

If this is the case you will have to add the proper opening { and closing } codes (in white) to keep all of your styling commands separate and working properly for the different elements.


    

How to Change the H1 Font Size

Generally speaking, your h1 font-font-size should be larger than your h2 (h3, h4, etc.). This is a factor for SEO as well as just general use and styling. The whole point, really, of an H1 tag is that is emphasizes itself as the most important heading on the page. Thus, larger and heavier (bold) naturally fit that bill and always will by general HTML default. But to change the font-size, simply change the number you find.

    font-size: 33px;
    font-size: 45px;
    font-size: 80px; etc.

So

h1 {
    font-size:32px;
}

How to Change the H1 Font Color

To change the color enter a different #hex code, rbg code, HTML color name or whatever you would prefer. If you're not familiar with which color code or name to use, simply do a Google search for HTML color codes, etc. and there are many wonderful resources.

    color: #34260a;
    color: #ffffff;
    color: black; etc.

e.g.

h1 {
    font-size:32px;
    color: #34260a;
}

(A great resource for html color codes is here.

How to Change the H1 Font

To define the font for your H1 you'll need to enter a font-family definition or change the one that is already there. Often you'll simply want the h1 font to be the same as you've chosen for your H2 (Title element)

Here we change the H1 font to 'Uglyqua' by adding

    font-family: 'Uglyqua', arial, sans-serif;

The "arial, sans-serif;" part is a standard convention in case for some reason a browser can't display Uglyqua.
Example of h1 in UglyQua font.
H1 tag with the 'UglyQua' font

Step 4. (Alternate Method) Use in-line CSS in the Custom HTML Element

To use inline styling in the custom HTML element simply apply inline commands in the proper format. For this example we restrict ourselves again to font, size and color for simplicity. All styling goes within the opening <h1> tag, adding style=" . . . ." In the example below we used Verdana as our font, red as our color and 40px as our size.

<h1 style="font-family:Verdana;color:red;font-size:40px;">


In-line CSS styling within the Weebly Custom HTML Element.
Place in-line CSS in the Custom HTML element itself within the opening h1 tag.
And here is our result.
H1 with in-line CSS styling.
H1 tag with in-line CSS styling.

How to Align Your H1 Heading Center, Right or Left

To align your heading center (left or right) use 

text-align:center;

before the closing " of your in-line styling.

You can also enter the same command in your main-style.css. Or, you can also use Weebly's align command for the Custom HTML element, but it seems you will have to reset it each time you click in and click out of the element again, if making any changes.

H1 aligned center.

How to Add H2, H3, H4, H5, H6 to Weebly

As we already said, Weebly title elements are H2. So you can easily change the size, font, styling, etc. for those in the main Weebly editor and add them in wherever you would like.

But to add any other heading tag - h3, h4, h5, h6 - simply follow exactly the same steps above that we outlined for h1. And of course, change the number.

Heading tags in Weebly H1-H6
Headings 1-6 (h1-h6)
Beyond that, enjoy your Weebly H1 tags!

Here are a few more tips.
  • Don't over-use h1 tags. As we said, one h1 tag at the top of every page is best practice.
  • There isn't really a limit to the number of characters you can use in an h1 or any other heading tag, but keep it short and to the point, using some keywords, generally following the way all heading tags were intended - to be a heading for users. Just like, say, in any book, outline, formal report or proposal, etc.
  • A larger or more pronounced (bold) font for h1 than h2, h3 etc. is generally best practice.
  • Don't think that placing whole paragraphs in an h1 or any other tag will earn you ranking points for SEO. It's the opposite. Anything other than a reasonable heading will likely drive your ranking in search engines down, not up.


Once again, enjoy your Weebly H1 and other heading tags!
42 Comments

    Timothy J Melody

     

    Archives

    March 2015
    September 2014
    August 2014
    November 2012
    October 2012
    June 2012
    January 2012
    November 2011

    Categories

    All
    Google Places Optimization
    Local Seo

    RSS Feed

Serving clients in
Houston, Austin, San Antonio, Dallas, Sacramento, San Diego, Los Angeles, Philadelphia, Portland, Seattle
and more.
  • Home
  • Web Design
  • SEO
  • Google Places
  • About
  • Blog
  • SEO Analysis
  • Contact