W3C home > Mailing lists > Public > www-html@w3.org > July 2003

Re: HTML or CSS -- clarification needed

From: Simon Jessey <simon@jessey.net>
Date: Wed, 2 Jul 2003 15:52:50 -0400
Message-ID: <001501c340d3$8d95d5b0$6601a8c0@Simon2S0JP11>
To: <www-html@w3.org>

Better would be:

HTML
----
<h1>Birkbeck College<h1>


CSS
---
h1 {
    color: red;
    background: transparent;
    text-align: center;
}


You can chose to embed the CSS within a <style> element in the <head> of the
document, or refer to it externally (the most flexible method) with a <link>
element in the <head>. It is always best to specify a background color when
you specify a foreground color, by the way.


Simon Jessey

w: http://jessey.net/blog/
e: simon@jessey.net



----- Original Message ----- 
From: "Ramanan Selvaratnam" <rama@uklinux.net>

Subject: HTML or CSS -- clarification needed



> If I were to write
> /
> <h1><font color="red"><center>Birkbeck College</center></font> </h1>
>
> as
>
> /
>
> <h1 style="text-align: center; color: red">Birkbeck College</h1>
>
> I am still writing good HTML, am I not?
>
> Is it not the case that the latter is more compliant with modernising
efforts of *HTML* or am I getting confused with CSS which is sepearte so the
latter is HTML and CSS.
Received on Wednesday, 2 July 2003 15:53:09 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:56 GMT