Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > disadvantages of having CSS code in HTML?

Reply
Thread Tools

disadvantages of having CSS code in HTML?

 
 
Woody W
Guest
Posts: n/a
 
      07-14-2007
What are the disadvantages of having CSS code in HTML?

I know it is more easier to update CSS in one place.

Just wondering if having CSS code in the HTML would make a difference to a
search engine?

Cheers,


 
Reply With Quote
 
 
 
 
dorayme
Guest
Posts: n/a
 
      07-14-2007
In article <Ts%li.21531$(E-Mail Removed)> ,
"Woody W" <(E-Mail Removed)> wrote:

> What are the disadvantages of having CSS code in HTML?
>
> I know it is more easier to update CSS in one place.
>
> Just wondering if having CSS code in the HTML would make a difference to a
> search engine?
>
> Cheers,


CSS is for styling the webpage. Search robots are not known for
their sense of style. They are cold, calculating types, without
feeling, without aesthetics, without the slightest warmth. To put
it simply, you would not want to be going to the pub with one and
expect to have some fun. You would not normally take one to the
movies - never mind pashing on at the back with one - to have
another being to discuss what was just seen because the
conversation would be equally frustrating. There is no denying
that its demands for a review of the content of the movie might
be a bit of an education, but most movies would so disappoint on
this score that ...

Getting the picture?

--
dorayme
 
Reply With Quote
 
 
 
 
Woody W
Guest
Posts: n/a
 
      07-14-2007

"dorayme" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> In article <Ts%li.21531$(E-Mail Removed)> ,
> "Woody W" <(E-Mail Removed)> wrote:
>
>> What are the disadvantages of having CSS code in HTML?
>>
>> I know it is more easier to update CSS in one place.
>>
>> Just wondering if having CSS code in the HTML would make a difference to
>> a
>> search engine?
>>
>> Cheers,

>
> CSS is for styling the webpage. Search robots are not known for
> their sense of style. They are cold, calculating types, without
> feeling, without aesthetics, without the slightest warmth. To put
> it simply, you would not want to be going to the pub with one and
> expect to have some fun. You would not normally take one to the
> movies - never mind pashing on at the back with one - to have
> another being to discuss what was just seen because the
> conversation would be equally frustrating. There is no denying
> that its demands for a review of the content of the movie might
> be a bit of an education, but most movies would so disappoint on
> this score that ...
>
> Getting the picture?


So they would just ignore the CSS in the HTML?


 
Reply With Quote
 
JH
Guest
Posts: n/a
 
      07-14-2007
On Jul 14, 9:47 am, "Woody W" <(E-Mail Removed)> wrote:
> "dorayme" <(E-Mail Removed)> wrote in message
>
> news:(E-Mail Removed)...
>
>
>
>
>
> > In article <Ts%li.21531$(E-Mail Removed)> ,
> > "Woody W" <(E-Mail Removed)> wrote:

>
> >> What are the disadvantages of having CSS code in HTML?

>
> >> I know it is more easier to update CSS in one place.

>
> >> Just wondering if having CSS code in the HTML would make a difference to
> >> a
> >> search engine?

>
> >> Cheers,

>
> > CSS is for styling the webpage. Search robots are not known for
> > their sense of style. They are cold, calculating types, without
> > feeling, without aesthetics, without the slightest warmth. To put
> > it simply, you would not want to be going to the pub with one and
> > expect to have some fun. You would not normally take one to the
> > movies - never mind pashing on at the back with one - to have
> > another being to discuss what was just seen because the
> > conversation would be equally frustrating. There is no denying
> > that its demands for a review of the content of the movie might
> > be a bit of an education, but most movies would so disappoint on
> > this score that ...

>
> > Getting the picture?

>
> So they would just ignore the CSS in the HTML?- Hide quoted text -
>
> - Show quoted text -


well, you might anger the search engines if you put e.g. white text on
a white background.

 
Reply With Quote
 
Jukka K. Korpela
Guest
Posts: n/a
 
      07-14-2007
Scripsit dorayme:

> CSS is for styling the webpage. Search robots are not known for
> their sense of style. They are cold, calculating types, without
> feeling, without aesthetics, without the slightest warmth.


Yet they can become cruel if they detect things that they regard as unfair,
cheating, and intentionally misleading. They are known to recognize "hidden"
text (intended to affect search engines without being seen by users) such as
white text on white background, implemented using <font color="white"> for
example. Some of them even recognize situations where the text color is
almost the same (and virtually the same to human eyes) as the background
though with a different color value. Ad what they do then is probably the
removal of the page, if not the entire site, from their database. They might
even block the site so that when they see links to their pages, they just
skip them as crap.

The odds are that if you cheat in a similar manner using CSS, you'll get
away with it. Processing style sheets is much more complex than processing
<font> tags. Effectively, a search engine (technically, an indexing robots)
would have to render the page visually in a virtual world and then recognize
whether some text is actually hidden. And then many tricky CSS techniques
would get their due reward. This is surely _possible_ but it is not
_probable_, and I have not seen any symptoms or even claims that search
engines pay attention to CSS code.

If they do, however, it will hardly matter whether the CSS code is "inline"
(in style="..." attributes) or "embedded" (in <style ...>...</style>
elements) or "external" (referred to via <link ...> elements). It's fairly
trivial to deal with these ways, and surely much simpler than actual
processing of stylesheets.

The most difficult question, however, is why the OP asked the question. Why
would it matter?

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

 
Reply With Quote
 
Jonathan N. Little
Guest
Posts: n/a
 
      07-14-2007
Woody W wrote:
> What are the disadvantages of having CSS code in HTML?
>
> I know it is more easier to update CSS in one place.


You answer your own question. Yes it is much easier to maintain a site
if your have one stylesheet that is attached to your pages. No matter
how many pages your website has to make a check you only exit on page,
the alternative requires editing all your pages!
>
> Just wondering if having CSS code in the HTML would make a difference to a
> search engine?


Don't this it matters, but the advantage described above should be
reason enough not to use inline styling.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
 
Reply With Quote
 
Jonathan N. Little
Guest
Posts: n/a
 
      07-14-2007
Jonathan N. Little wrote:

> Don't this it matters, but the advantage described above should be
> reason enough not to use inline styling.
>

In ENGLISH:
Don't think it matters, but the advantage described above should be
reason enough not to use inline styling.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
 
Reply With Quote
 
Neredbojias
Guest
Posts: n/a
 
      07-14-2007
Well bust mah britches and call me cheeky, on Sat, 14 Jul 2007 08:05:07
GMT Woody W scribed:

> What are the disadvantages of having CSS code in HTML?
>
> I know it is more easier to update CSS in one place.
>
> Just wondering if having CSS code in the HTML would make a difference
> to a search engine?
>
> Cheers,


I doubt to a search engine but sometimes to the validator.

--
Neredbojias
A self-made man who worships his creator
 
Reply With Quote
 
dorayme
Guest
Posts: n/a
 
      07-14-2007
In article <9H2mi.191524$(E-Mail Removed) >,
"Jukka K. Korpela" <(E-Mail Removed)> wrote:

> Scripsit dorayme:
>
> > CSS is for styling the webpage. Search robots are not known for
> > their sense of style. They are cold, calculating types, without
> > feeling, without aesthetics, without the slightest warmth.

>
> Yet they can become cruel if they detect things that they regard as unfair,
> cheating, and intentionally misleading. They are known to recognize "hidden"
> text (intended to affect search engines without being seen by users) such as
> white text on white background, implemented using <font color="white"> for
> example. ... They might
> even block the site so that when they see links to their pages, they just
> skip them as crap.
>
> The odds are that if you cheat in a similar manner using CSS, you'll get
> away with it. Processing style sheets is much more complex than processing
> <font> tags. Effectively, a search engine (technically, an indexing robots)
> would have ...


> The most difficult question, however, is why the OP asked the question. Why
> would it matter?


Might have been idle curiousity or a confession about what would
really motivate him to use css (search status benefits)? Anyway,
there is one point I forgot to mention where css can actually aid
the search algorithms. I understand that these robots tend to
look at the beginning of the html body (I do not know the
details). But the order in the html can be manipulated to be of
the greatest advantage to search engines while the css can
control the visual or aural order of the presentation in the
browsers. These two orders can be quite different. The op might
care to note this.

Sometimes, authors choose to put the content above the navigation
or vice versa. The css might specify different positioning to the
default html. And this can, I understand, make a difference to
the search engines.

--
dorayme
 
Reply With Quote
 
Jukka K. Korpela
Guest
Posts: n/a
 
      07-15-2007
Scripsit dorayme:

> [...] there is one point I forgot to mention where css can actually aid
> the search algorithms. I understand that these robots tend to
> look at the beginning of the html body (I do not know the
> details).


That is my impression too, though I have not seen any hard facts on it,
still less details. It's a natural assumption anyway. Moreover, when a
search engine creates a short excerpt of a document, to be presented in a
list of search results, it may use the first dozen or so words from the
start. However, search engines may also pick up excerpts around (first)
occurrences of the search words.

> But the order in the html can be manipulated to be of
> the greatest advantage to search engines while the css can
> control the visual or aural order of the presentation in the
> browsers. These two orders can be quite different.


That is correct. It needs to be remembered, though, that the "pure HTML"
order will be used when CSS is not supported by a browser, or CSS support is
disabled, or the browser has been instructed to ignore author style sheets.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Panasonic Lumix G1 Kludge Combines all the disadvantages of a P&Swith the disadvantages of a D-SLR SMS Digital Photography 21 11-06-2008 04:54 PM
Disadvantages in Visual Studio 2005 (Web sites) m.roello@dev.it ASP .Net 53 02-03-2006 11:50 AM
J2EE limitations and disadvantages Sean Winship Java 0 12-13-2004 05:00 PM
Cisco 3550 without ip's, advantages and disadvantages? joeblow Cisco 5 06-01-2004 06:48 PM
Newbie question - Disadvantages of java Martin Wildam Java 50 11-01-2003 07:08 AM



Advertisments