Forum Moderators: open

Message Too Old, No Replies

Help in code with WC3 Validator, font awesome, Alt Tag & Website Audit

WC3 Validator, font awesome, Alt Tag, Website Audit

         

Lilylu

6:42 pm on Dec 1, 2017 (gmt 0)

10+ Year Member Top Contributors Of The Month



Hi,

I have a bit of a strange question. I have been pondering it for some time but haven't been able to come up with a solution so I would love to hear anyone else's views.

In my html code, (I use dreamweaver code / css) I have Font Awesome social media icons in a Li. (I can do this in a Div if people feel it would be better). I have a title tag and an alt tag.

When I use the WC3 Validator it says I cant have an Alt tag - im guessing there isn't really an image there so it's not allowed. So i removed them. But - all of the website audits I use, seem to pick on the fact that I have missing alt tags on every page of my site - the social media Font Awesome icons.

Does anyone know how to get around this?

Would I be more likely to be penalized by google for code which comes up with an error - or google see the possibility of there being alt tags missing? Or do I go back to having actual img icons again?

I hope I have posted this in the correct section of the forum and look forward to hearing anyones thoughts and ideas. Thank you!

NickMNS

7:15 pm on Dec 1, 2017 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



This is unlikely to make any difference either way. Google has stated on many occasions that perfect validation has no impact on rankings. Obviously, if there elements on the page that are broken that is different. But generally browsers are quite forgiving and so to is Googlebot.

The purpose of the alt tag is two fold, one to show the user what should have been displayed, in the event that the an image fails to load and two to provide a basic description of the image, for the purpose of fulfilling the first point. Using a font element, means that it is not an image so there is nothing to describe and the Font-Awesome icon have a description implicit in the code such as "fa-twitter".

Then one final point, why are you concerned about social-buttons for SEO purposes. These provide no ranking benefit to your page, they are boiler plate. If one starts to create artificial signals to the buttons, then Google might start ranking the page as being relevant to Facebook (this is actually unlikely, but its the idea) as opposed to being a page about blue widgets (which is what one wants).

Lilylu

7:54 pm on Dec 1, 2017 (gmt 0)

10+ Year Member Top Contributors Of The Month



Hi Nickmns,

Thank you so much for your thorough reply and advice - everything you have said makes complete sense and has put my mind at rest.

Very interesting to hear about google and validation!

In the main I just want my website to be search engine friendly and make sure I’m doing everything I should. I didn’t like the thought of anything being incorrect. I’m learning every day!

Thank you!

keyplyr

8:19 pm on Dec 1, 2017 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I wish everyone was that concerned about valid code.

Lilylu

8:24 pm on Dec 1, 2017 (gmt 0)

10+ Year Member Top Contributors Of The Month



:D

I’m so pleased all of my pages validate :) Now I just need to improve my ranking a bit more....!

phranque

12:31 am on Dec 2, 2017 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



I have a title tag and an alt tag.

the title tag is an element that goes in the document <head>.

the title attribute is a global attribute and is intended for advisory information:
on an image, it could be the image credit or a description of the image;

https://w3c.github.io/html/dom.html#the-title-attribute

there is no "alt tag" in the html specification.
the alt attribute of the img element is the:
Replacement text for use when images are not available

https://w3c.github.io/html/semantics-embedded-content.html#the-img-element


all of the website audits I use, seem to pick on the fact that I have missing alt tags on every page of my site

the reason is that images are an accessibility issue - including for search engines.

Requirements for providing text to act as an alternative for images:
https://w3c.github.io/html/semantics-embedded-content.html#alt-text


Does anyone know how to get around this?

either provide some appropriate alternative text in the alt attribute for img elements or in the case of your icons:
Use an empty alt attribute when an icon is supplemental to text conveying the same meaning.

https://w3c.github.io/html/semantics-embedded-content.html#icon-images


I just want my website to be search engine friendly and make sure I’m doing everything I should

i often use a text browser such as lynx to navigate a web site and identify accessibility issues.
it will be obvious where you need the empty alt attribute.
(which is different from a missing alt attribute...)