Page is a not externally linkable
- Code, Content, and Presentation
-- HTML
---- Is It Okay to Use CSS and HTML in the Same Statement?


gouri - 4:46 am on Jul 14, 2012 (gmt 0)


I have heard that it is better to use CSS instead of HTML when you can but sometimes there are situations in which you need to use HTML.

For a heading tag, I have two options.

One of them is to use CSS and HTML together:

<h1 style="text-align: center;"><font size="5" face="arial, sans-serif">Text Here</font></h1>

and the other is to use only HTML:

<h1 align="center"><font size="5" face="arial, sans-serif">Text Here</font></h1>

Can you please tell me if it is good to use both CSS and HTML or is it better to use only HTML?

All the pages on the site would have an h1 tag.


Thread source:: http://www.webmasterworld.com/html/4475562.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com