Re: [問題] HTML字型語法

看板Web_Design作者 (嘎先生!)時間20年前 (2005/01/08 20:00), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/3 (看更多)
為什麼不建議用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

218.160.134.15 01/09, , 1F
受教了...^^
218.160.134.15 01/09, 1F
文章代碼(AID): #11tyjXBm (Web_Design)
文章代碼(AID): #11tyjXBm (Web_Design)