Computer Webmaster Gaming Console Graphics Forum

Welcome to the Computer Webmaster Gaming Console Graphics Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

MK PitStop Main Earn $25 Earn Money Posting Extras Members Blogs Image Hosting User Pages
Go Back   Computer Webmaster Gaming Console Graphics Forum > Webmaster Forum > Website Coding > HTML
Register FAQ/Rules Become A V.I.P. Member Search Today's Posts Mark Forums Read

HTML HTML problems, maybe you are trying to code for MySpace. Get all the HTML coding help here for your website.

Google
Reply
 
LinkBack Thread Tools Display Modes
Old 07-01-2007, 12:23 PM   #1
spaghetti
 
spaghetti's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default About default stylesheets...

I read that HTML has a "default stylesheet" that basically says <table>
needs to be display:table; and <strong> needs to font-weight:bolder; etc.
(http://www.w3.org/TR/REC-CSS2/sample.html)

Is this a standard, suggestion, or just a "this is what they all seem to do,
though they don't actually use stylesheets to do it?" Are there default
styles for XHTML?

Basically what I'm saying is, I understand there was some sort of standard
on how basic HTML (not XHTML/XML) should be styled. But for XHTML, isn't it
proper to assume all these XML elements don't have a default stylesheet, so
therefore must be styled explicitly in our stylesheets? Like doing the basic
stuff like table{display:table;} etc.?

I'm just confused. I assumed XML was unstyled, and XHTML is technically XML:
it is just using old HTML-style tags to take advantage of the default
rendering standards of HTML in old browsers. But since it's really truly
just XML, aren't we supposed to be styling all that stuff ourselves?

Just a weird thing I was wondering about....





 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Advertisements
Old 07-01-2007, 12:23 PM   #2
David Dorward
 
David Dorward's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default About default stylesheets...

spaghetti wrote:

> I read that HTML has a "default stylesheet" that basically says <table>
> needs to be display:table; and <strong> needs to font-weight:bolder; etc.
> (http://www.w3.org/TR/REC-CSS2/sample.html)
>
> Is this a standard, suggestion, or just a "this is what they all seem to
> do, though they don't actually use stylesheets to do it?"


As the page says "This style sheet describes the typical formatting of all
HTML 4.0 ([HTML40]) elements based on extensive research into current UA
practice." - this means it is "what they all seem to do".

It would make sense for a browser to implement that as a default style sheet
for legacy documents, but most browsers have left over legacy rendering
engines from the pre-CSS days.

> Are there default styles for XHTML?


Yes. XHTML is just HTML expressed using XML rather then SGML.

> Basically what I'm saying is, I understand there was some sort of standard
> on how basic HTML (not XHTML/XML) should be styled. But for XHTML, isn't
> it proper to assume all these XML elements don't have a default
> stylesheet, so therefore must be styled explicitly in our stylesheets?
> Like doing the basic stuff like table{display:table;} etc.?
>
> I'm just confused. I assumed XML was unstyled, and XHTML is technically
> XML: it is just using old HTML-style tags to take advantage of the default
> rendering standards of HTML in old browsers. But since it's really truly
> just XML, aren't we supposed to be styling all that stuff ourselves?


No. XHTML is still HTML and it makes sense to have a default style sheet.
"XML" doesn't have a default style sheet because its too generic. There
isn't much point in having a default style sheet for a language which
doesn't have predefined tags to apply the styles too.

--
David Dorward http://david.us-lot.org/
Redesign in progress: http://stone.thecoreworlds.net/
Microsoft announces IE is dead (so upgrade):
http://minutillo.com/steve/weblog/2003/5/30/microsoft-announces-ie-is-dead
 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 07-01-2007, 12:23 PM   #3
Jukka K. Korpela
 
Jukka K. Korpela's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default About default stylesheets...

"spaghetti" <spaghetti@aspyre.net> wrote:

> I read that HTML has a "default stylesheet" that basically says
> <table> needs to be display:table; and <strong> needs to
> font-weight:bolder; etc.
> (http://www.w3.org/TR/REC-CSS2/sample.html)


It doesn't really say that "HTML has" it.

> Is this a standard, suggestion, or just a "this is what they all
> seem to do, though they don't actually use stylesheets to do it?"


Well, what does the document itself say? It should not be taken at face
value, but it's not very far from truth. The "sample" style sheet is
explicitly labeled informative, not normative, yet the text is rather
suggestive and looks like a recommendation (within a recommendation).
It by and large corresponds to browser practices, but there are many
differences.

> Are there default styles for XHTML?


XHTML 1 is HTML 4 with a somewhat distorted syntax. No differences that
would affect visual rendering and style sheets.

> Basically what I'm saying is, I understand there was some sort of
> standard on how basic HTML (not XHTML/XML) should be styled.


No, that would be very odd, wouldn't it? Unless you mean browser's
default style sheet, which is lowest in precedence.

> But
> for XHTML, isn't it proper to assume all these XML elements don't
> have a default stylesheet, so therefore must be styled explicitly
> in our stylesheets?


No, XHTML is HTML, just with restrictions and complications. XML is
something different. For rendering XML, you surely need a style sheet
that specifies everything, or an equivalent.

> I'm just confused.


No wonder. Too many X's.

> I assumed XML was unstyled,


Basically yes.

> and XHTML is technically XML:


Well, it's XML too, via kludgery and adhockery. But its elements have
defined meanings, and this distinguishes it from XML itself.

> it is just using old HTML-style tags to take
> advantage of the default rendering standards of HTML in old
> browsers.


In a sense yes.

> But since it's really truly just XML, aren't we supposed
> to be styling all that stuff ourselves?


No. It's sort-of XML, which simply means syntax, syntax, and syntax,
with nothing about meaning. But it's sort-of HTML too, and this assigns
some meanings and makes it possible to browsers to apply default
rendering rules.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 07-01-2007, 12:23 PM   #4
Mark Parnell
 
Mark Parnell's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default About default stylesheets...

spaghetti wrote:
> If I was a small furry animal I would have been
> electrocuted/drowned/shot/stomped on/runover by now.


You forgot microwaved ;-)

--

Mark Parnell
http://www.clarkecomputers.com.au


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 07-01-2007, 12:24 PM   #5
Chris Morris
 
Chris Morris's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default About default stylesheets...

"Jukka K. Korpela" <jkorpela@cs.tut.fi> writes:
> regarded as XML documents. I wonder what happens if you take an XHTML
> document and throw it at a browser, saying "here's some yummy
> text/xml". In principle, we might expect the browser to ignore
> everything it ever learned about HTML and render the content strictly
> according to the style sheet that you specify. In practice, I'm not
> holding my breath.


Actually, the support seems fairly decent...

Galeon based on Mozilla 1.3:
No stylesheet: Displays document tree
<style> stylesheet: Tree
<link/> stylesheet: Tree
<?xml-stylesheet?>: Uses stylesheet

Opera 5,6,7:
No stylesheet: Unstyled (everything inline, normal text)
<style> stylesheet: Unstyled
<link/> stylesheet: Unstyled
<?xml-stylesheet?>: Uses stylesheet

IE 6:
No stylesheet: Tree
<style> stylesheet: Tree
<link/> stylesheet: Tree
<?xml-stylesheet?>: Uses stylesheet

Netscape 7 based on Mozilla 1.0:
No stylesheet: Unstyled
<style> stylesheet: Unstyled
<link/> stylesheet: Unstyled
<?xml-stylesheet?>: Uses stylesheet

IE 5 (Mac):
No stylesheet: Treats as HTML, default styles
<style> stylesheet: Treats as HTML, applies styles from sheet on top
<link/> stylesheet: Treats as HTML, applies styles from sheet on top
<?xml-stylesheet?>: Uses stylesheet, does *not* treat as HTML, so no
browser styles.

NS4, Lynx, Links:
All: Asks for an external viewer for XML files.

W3M:
All: Displays as if it were text/plain

--
Chris
 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 07-01-2007, 12:26 PM   #6
spaghetti
 
spaghetti's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default About default stylesheets...

Yes, my questions never stop!

"Jukka K. Korpela" <jkorpela@cs.tut.fi> wrote in message
news:Xns93A46E77D9F06jkorpelacstutfi@193.229.0.31. ..
> It would be rather
> difficult to draw the distinction between abstract and concrete, if
> they are manifested exactly the same way.


So basically HTML elements give alot of metadata, even if elements
themselves are rendered similarly or whatever.

> then it does not matter that your XML tags have
> no meaning to anyone but you. And this seems to be the way that many
> people look at things. The wheel is being reinvented, and it'll be a
> primitive model, if not rectangular. (But it'll be popular, since
> quality typesetting is so difficult.)


So basically the trend is that we don't care about all that understood
metadata of HTML tags in favor of the flexibility of XML for the author?
What about stuff like the "modular" XHTML? Is that there to build off the
meanings of HTML tags while allowing the addition of custom tags that have
no meaning at all?

> Actually some of the difficulties in using XHTML arise from the
> recommended (or even required) use of the monstrous media type
> application/xhtml+xml.


I guess I'm pretty stupid, but why are HTML documents that are written as
XML considered an "application?" This has always kept me wondering...

> natural, if we take seriously the idea that XHTML documents can be
> regarded as XML documents. I wonder what happens if you take an XHTML


Actually it works pretty good as Chris Morris demonstrated... which just
confuses me even more!


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 07-01-2007, 12:40 PM   #7
Jukka K. Korpela
 
Jukka K. Korpela's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default About default stylesheets...

"spaghetti" <spaghetti@aspyre.net> wrote:

> So basically the trend is that we don't care about all that
> understood metadata of HTML tags in favor of the flexibility of XML
> for the author?


That seems to be the trend. And some day the original idea of HTML will
be reinvented. Under some fancy name, probably.

> What about stuff like the "modular" XHTML?


Controlled confusion. The practical reason is probably that the future
development of _a_ markup language turned out to be too difficult, so
it was split into parts. Similar phenomenon has occurred in the CSS
front. Naturally there are good explanations to all this, but I think
the real explanation is that people just gave up and wishfully think
that the pieces will magically fit together.

> I guess I'm pretty stupid, but why are HTML documents that are
> written as XML considered an "application?"


There are two separate issues here. The _media type_ is classified into
major type "application" for some mystical reason - that type should be
used basically for binary formats of data, intended for processing
using specific software. So much for universality.

The other issue is that traditionally the SGML world has called
document _formats_ like HTML "applications". I guess it's just part of
the somewhat odd SGML terminology. SGML is a metanotation for defining
the syntax of various notations, so the latter could be called
"applications" of the metanotation.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 07-01-2007, 12:41 PM   #8
spaghetti
 
spaghetti's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default About default stylesheets...

"Jukka K. Korpela" <jkorpela@cs.tut.fi> wrote in message
news:Xns93A6FCF83074jkorpelacstutfi@193.229.0.31.. .
> That seems to be the trend. And some day the original idea of HTML will
> be reinvented. Under some fancy name, probably.


So making sure our documents use the right conventions for specific bits
of text is gonna be pointless in the future?

> Controlled confusion. The practical reason is probably that the future
> development of _a_ markup language turned out to be too difficult, so
> it was split into parts. Similar phenomenon has occurred in the CSS


So now we'll have several seperate markup languages that we can combine to
make a big big markup language? But these languages won't necessarily have
"meaning" like HTML?

> The other issue is that traditionally the SGML world has called
> document _formats_ like HTML "applications". I guess it's just part of
> the somewhat odd SGML terminology. SGML is a metanotation for defining
> the syntax of various notations, so the latter could be called
> "applications" of the metanotation.


Okay that seems a little stupid to me. But whatever!


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Featured Websites
Free Space
Free Space
Free Space Free Space
Reply
Tags: ,




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Default PIN on 1.3.2.7 / T68i Damian Skeeles Bluetooth Software and Hardware 2 06-17-2007 11:27 AM
How to change default printer? Dean Van Praotl Graphics in general 2 06-11-2007 7:05 PM
How to change default printer? Wayne Fulton Graphics in general 1 06-11-2007 6:20 PM
DEFAULT '0' bruno - bdf Database 1 06-09-2007 11:22 PM


Featured Websites




All times are GMT +1. The time now is 7:00 AM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0
Cheap Computers
MK PitStop Copyright 2005 - 2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98