字幕列表 影片播放 列印英文字幕 The presentational markup is used to describe the appearance of text. However, it is recommended that we use Cascading Style Sheets instead for handling all kinds of style information. First we have the text styles: bold <b>, italic , underlined <u>, and strike-through <s>/<strike>. Bold and italic are still commonly used text styles, but underlined and both strike-through tags have become deprecated. Like most other tags all of these come in pairs and contains the text that they affect. We can also nest these together to combine different text styles. Next, we have the teletype element <tt> which gives us a fixed-width typeface, just like the preformatted tag. We also have the <big> and <small> elements, which gives a way to change the font size. These elements can be nested several levels deep in order to achieve a greater effect. Lastly, we have elements for rendering text as either superscript <sub> or subscript <sup>. The <font> tag can be used to specify color, size, and typeface of text. The size can be a value from 1 to 7. Or it can be specified relative to the current font size with a plus or minus sign before the number. By default, the standard size is 3. The face attribute can contain one or more font names in a comma separated list. If the user's computer doesn't have the first font it will then try to use the next one and so on. The list here contains common font names grouped together by their appearances. The <body> element provides a number of deprecated attributes for controlling the general appearance of the webpage. We can change the default text color using the text attribute. We can also add a background color or a background image which will be tiled in the background.
B2 中高級 HTML教程--09--演示性標記 (HTML Tutorial - 09 - Presentational Markup) 37 6 Pan-Shy Gang 發佈於 2021 年 01 月 14 日 更多分享 分享 收藏 回報 影片單字