Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

H1 tags and spans

Featured Replies

I'm redesigning my wife's site which at present has the domain name under H1 tags and is doing very well in search engines.

 

Could someone please let me know if using the following will have any effect and if so, how do I correct things.

 

Many thanks

 

Paul

 

 

<h1>CUMBRIA<span class="dogtraining">DOG TRAINING</span></h1>

 

h1
{
width:300px;
font-family:"Palatino Linotype", "Book Antiqua", Palatino, serif;
font-size:60px;
color:#FFCC27;
}
.dogtraining
{
width:330px;
font-family:"Palatino Linotype", "Book Antiqua", Palatino, serif;
font-size:32px;
color:#2F0000;
}

Edited by Renaissance-Design
Please use the code button or tags to format your code.

Well the CSS is certainly poorly written. Spans don't have widths unless you specify display:block, and you've defined the exact same font family again in a child element.

 

You should not be using capital letters like that either. If you really want capital letters, use CSS. It's poor practice to START TALKING LIKE THIS ON YOUR WEBSITE - IT'S HARD TO READ, AM I RIGHT?

 

h1 { text-transform: uppercase; }

 

From an SEO perspective, once the capitals are rid of, I can't see it being a problem - but I'm not an SEO expert.

Edited by andyl

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.