作者superGA (嘎先生!)
看板Web_Design
标题Re: [问题] HTML字型语法
时间Sat Jan 8 20:02:22 2005
为什麽不建议用font?
Styles Solve a Common Problem
HTML tags were originally designed to define the content of a document. They
were supposed to say "This is a header", "This is a paragraph", "This is a
table", by using tags like <h1>, <p>, <table>, and so on. The layout of the
document was supposed to be taken care of by the browser, without using any
formatting tags.
As the two major browsers - Netscape and Internet Explorer - continued to add
new HTML tags and attributes (like the <font> tag and the color attribute) to
the original HTML specification, it became more and more difficult to create
Web sites where the content of HTML documents was clearly separated from the
document's presentation layout.
To solve this problem, the World Wide Web Consortium (W3C) - the non profit,
standard setting consortium responsible for standardizing HTML - created
STYLES in addition to HTML 4.0.
引述
http://www.w3schools.com/css/css_intro.asp
※ 引述《ottokang (猫猫的大玩偶)》之铭言:
: ※ 引述《Killing (你还是说中文吧)》之铭言:
: : 表格内想用粗体
: : <table>
: : <tr><td><font xxx>
: : font里面有参数可以让字变粗体吗?
: : 还是一定要加<b>?
: : 另外问一下CSS语法
: : td
: : {
: : font
: : }
: : 里面有参数能让字变粗体吗?
: : 谢谢搂
: 尽量不要使用font标签
: 因为那已经是不建议使用的了
: 建议用嵌入的CSS
: <td style="font-style:bold;">
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 220.135.162.76
1F:推 sandpaper:受教了...^^ 218.160.134.15 01/09