Simon Allaway
asked on
Problems with inline styling in HTML try to move to CSS
Hi All
I am trying to clean up my web site for seo. When I run reports it says I have inline styling. I removed the content with <span> tags and it brought down the error value.
If there a way I can put the following into css and have the same effect?
<span class='st_sharethis_large' displayText='ShareThis'></ span>
<span class='st_facebook_large' displayText='Facebook'></s pan>
<span class='st_twitter_large' displayText='Tweet'></span >
<span class='st_linkedin_large' displayText='LinkedIn'></s pan>
<span class='st_email_large' displayText='Email'></span >
<span class='st_fblike_large' displayText='Facebook Like'></span>
<span class='st_twitterfollow_la rge' displayText='Twitter Follow' st_username='company'></sp an>
Would really appreciate any help you guys can give as web development is not my strong point.
thanks
Simon
I am trying to clean up my web site for seo. When I run reports it says I have inline styling. I removed the content with <span> tags and it brought down the error value.
If there a way I can put the following into css and have the same effect?
<span class='st_sharethis_large'
<span class='st_facebook_large' displayText='Facebook'></s
<span class='st_twitter_large' displayText='Tweet'></span
<span class='st_linkedin_large' displayText='LinkedIn'></s
<span class='st_email_large' displayText='Email'></span
<span class='st_fblike_large' displayText='Facebook Like'></span>
<span class='st_twitterfollow_la
Would really appreciate any help you guys can give as web development is not my strong point.
thanks
Simon
Your just using the sharethis tool http://www.sharethis.com/
It is not worth worrying about. This will not make or break your seo. Typically it is not good practice to use inline styles for a number of reason. Here you are using a 3rd party widget and that is just the way it works.
If you are concerned about your seo, write new compelling content several times a week and after 6months, then 12 months, notice if your traffic has changed a bit.
It is not worth worrying about. This will not make or break your seo. Typically it is not good practice to use inline styles for a number of reason. Here you are using a 3rd party widget and that is just the way it works.
If you are concerned about your seo, write new compelling content several times a week and after 6months, then 12 months, notice if your traffic has changed a bit.
ASKER
Would really like to get it into CSS if possible guys. I want all my code to be 100% clean with no inline styles which means the span tag has to go.
This...
<span class='st_sharethis_large' displayText='ShareThis'></ span>
...is not inline styling - it is the normal way of writing HTML with classes that you use in CSS to style
The error must be pointing to something completely different.
Inline styles are not the end of the world, it's preferable to not use them as you are just repeating the same data but if you have to use them then you have to.
You cannot control how an external plugin designs its code.
<span class='st_sharethis_large'
...is not inline styling - it is the normal way of writing HTML with classes that you use in CSS to style
The error must be pointing to something completely different.
Inline styles are not the end of the world, it's preferable to not use them as you are just repeating the same data but if you have to use them then you have to.
You cannot control how an external plugin designs its code.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi Scott & Gary
Thanks for coming back to me didn't want to be pain. I have been using a site to check my seo on my site and it kept telling me that the code was bad for seo. I have made my own icons now with js code from fb etc. Should I put all the js code in one file from fB and twitter etc all or will that not work? The same site is telling me I should consolidate my scripts and minified them. Sorry to be a pain were a small family business and trying to help out as best I can with the little knowledge I have. Site I have been using is http://seositecheckup.com/ it reports things back like the above and how fast my page is etc etc not sure if u chaps have come across it before but when it gave all the errors does make u worry. We have a lot of competitors and money is short been doing a lot I'm my spare time. I have learnt a lot and enjoyed it but just want the best for my family.
Thanks for coming back to me didn't want to be pain. I have been using a site to check my seo on my site and it kept telling me that the code was bad for seo. I have made my own icons now with js code from fb etc. Should I put all the js code in one file from fB and twitter etc all or will that not work? The same site is telling me I should consolidate my scripts and minified them. Sorry to be a pain were a small family business and trying to help out as best I can with the little knowledge I have. Site I have been using is http://seositecheckup.com/ it reports things back like the above and how fast my page is etc etc not sure if u chaps have come across it before but when it gave all the errors does make u worry. We have a lot of competitors and money is short been doing a lot I'm my spare time. I have learnt a lot and enjoyed it but just want the best for my family.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Nonary is a good one!
SEO stuff
https://www.experts-exchange.com/questions/28367475/Defining-Keywords.html?anchorAnswerId=39867224#a39867224
SEO stuff
https://www.experts-exchange.com/questions/28367475/Defining-Keywords.html?anchorAnswerId=39867224#a39867224
ASKER
thanks guys
<span class='st_sharethis_large'