Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
CSS vs HTML Terminology
Old 11-24-2008, 11:47 AM CSS vs HTML Terminology
Junior Talker

Posts: 4
Name: Jeff
Trades: 0
If I use a style tag inside HTML, would you say that webpage uses CSS, or does not use CSS?
Se7enLC is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-24-2008, 12:26 PM Re: CSS vs HTML Terminology
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
depends!

Are there any style rules in the page or just a <style> tag
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-24-2008, 02:23 PM Re: CSS vs HTML Terminology
Junior Talker

Posts: 4
Name: Jeff
Trades: 0
well, not an empty tag of course.

something like <div style="position: relative;">
Se7enLC is offline
Reply With Quote
View Public Profile
 
Old 11-24-2008, 03:44 PM Re: CSS vs HTML Terminology
Super Talker

Posts: 107
Name: Sandy
Trades: 0
In my opinion that would not be CSS - CSS is when it's either inside the head tags of the page or in a separate style sheet altogether. Preferrably the later. But then others may have a different opinion.
__________________
Sandy K
sandyk3 is offline
Reply With Quote
View Public Profile
 
Old 11-24-2008, 04:08 PM Re: CSS vs HTML Terminology
kline11's Avatar
SearchBliss Web Tools

Posts: 1,726
Name: John
Location: USA
Trades: 0
Quote:
Originally Posted by Se7enLC View Post
If I use a style tag inside HTML, would you say that webpage uses CSS, or does not use CSS?
First off, "style" is not a tag, it's an attribute. The page is then using a style attribute, not CSS (Cascading Style Sheet) which is utilized using IDs and "class" attributes.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
kline11 is online now
Reply With Quote
View Public Profile
 
Old 11-24-2008, 04:10 PM Re: CSS vs HTML Terminology
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
But there IS a style tag, so you can't say that. Inline styles would be attributes.
The document would still be using CSS, just not as efficiently.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 11-24-2008, 04:19 PM Re: CSS vs HTML Terminology
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
Originally Posted by Se7enLC View Post
well, not an empty tag of course.

something like <div style="position: relative;">
See how confusing it is when you don't get the names right

</style> is a style tag

<style type="text/css>
Style Rules
</style> is a stylesheet element

and <HTML_tag style="style rules"> is an attribute
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-24-2008, 04:49 PM Re: CSS vs HTML Terminology
kline11's Avatar
SearchBliss Web Tools

Posts: 1,726
Name: John
Location: USA
Trades: 0
Quote:
Originally Posted by LadynRed View Post
But there IS a style tag, so you can't say that. Inline styles would be attributes.
The document would still be using CSS, just not as efficiently.
He was referring to the style attribute, not the style HTML tag.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
kline11 is online now
Reply With Quote
View Public Profile
 
Old 11-25-2008, 02:09 AM Re: CSS vs HTML Terminology
Junior Talker

Posts: 4
Name: Jeff
Trades: 0
I was originally referring to the style tag (embeded style), but also added the style attribute on an element tag I gave the example of (inline style)

The question is, would you say that a document that includes styles like that "uses CSS" or "Does not use CSS"? In terms of comparing a document that is "plain html" to an "html with css" page.

Note that I am not saying "has a stylesheet" or "has an external stylesheet", just "uses CSS".

I was having a debate with a coworker about this when I said that CSS allows you to do things that HTML alone doesn't have the facilities to (floating divs, background colors on any element, etc). She believes that if you don't use an external stylesheet that it's not CSS. I beg to differ and say that if you include CSS inline or embeded, it's still CSS, just like if you include javascript it's still javascript.

Last edited by Se7enLC; 11-25-2008 at 02:14 AM..
Se7enLC is offline
Reply With Quote
View Public Profile
 
Old 11-25-2008, 03:11 AM Re: CSS vs HTML Terminology
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
If you have any element that is altered by a CSS style rule, the page uses CSS.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-25-2008, 10:42 AM Re: CSS vs HTML Terminology
Junior Talker

Posts: 4
Name: Jeff
Trades: 0
So that's two votes for "CSS", one vote for "not CSS", and one vote for "learn the difference between a tag and an attribute" :-P

Any other opinions - or anyone know of a definitive answer source? I thought it was very obviously "CSS", but sandyk seems to agree with my coworker. Is that just a common misconception, or is there no correct answer?
Se7enLC is offline
Reply With Quote
View Public Profile
 
Old 11-25-2008, 10:49 AM Re: CSS vs HTML Terminology
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
There is no debate. Inline styles are still technically and truly CSS no matter what semantics you apply to it, they are just, as was already pointed out, not a very efficient way of using CSS. You won't find anything about style rules in the HTML specs.
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 11-25-2008, 11:00 AM Re: CSS vs HTML Terminology
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
If you want further proof of this, you can read the rules about inline styles in the CSS specs:

http://www.w3.org/TR/REC-html40/present/styles.html

Inline styles are a part of the Cascade itself, and override any styles present in 1. External stylesheets linked to with the <link> tag 2. Imported stylesheets. 3.Styles in the header inside <style> tags, in that order. Note that styles tagged with !important will override inline styles.

***EDIT***
http://www.w3.org/TR/CSS2/cascade.html#q12
Quote:
In HTML, values of an element's "style" attribute are style sheet rules. These rules have no selectors, but for the purpose of step 3 of the cascade algorithm, they are considered to have an ID selector.
__________________
Join me on
Please login or register to view this content. Registration is FREE

Last edited by wayfarer07; 11-25-2008 at 11:26 AM..
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 11-27-2008, 10:58 PM Re: CSS vs HTML Terminology
SEO Specialist

Posts: 989
Trades: 0
If would look good if you use css. . .
__________________
best-selling brands of
Please login or register to view this content. Registration is FREE
and
Please login or register to view this content. Registration is FREE
full house is offline
Reply With Quote
View Public Profile Visit full house's homepage!
 
Old 11-28-2008, 11:25 PM Re: CSS vs HTML Terminology
Skilled Talker

Posts: 91
Name: marshal
Trades: 0
Inline sytyles are definaly style sheets.
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
walkingbird is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to CSS vs HTML Terminology
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.46807 seconds with 12 queries