<wbr style="color:rgb(73,73,73); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(231,238,244)"><span style="color:rgb(73,73,73); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(231,238,244)"></span><wbr style="color:rgb(73,73,73); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(231,238,244)"><span style="color:rgb(73,73,73); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(231,238,244)">继续天天练习HTML标签,今天讲的主要是定义文本的一些尺寸:</span>
<div style="color:rgb(73,73,73); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(231,238,244)">
1)<span style="color:#ED1C24; word-wrap:normal; word-break:normal"><font></span>定义HTML里,指定文本的字体、颜色及尺寸;看似功能很强大,但目前在HTML4及XHTML中通常已经不被推荐。最好用CSS样式来定义更具体的内容。</div>
<div style="color:rgb(73,73,73); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(231,238,244)">
<br>
</div>
<div style="color:rgb(73,73,73); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(231,238,244)">
2)<span style="color:#FF0000; word-wrap:normal; word-break:normal"><b></span>粗体显示文字;<wbr><span style="color:#FF0000; word-wrap:normal; word-break:normal"><big></span>用大字体显示文字;<wbr><span style="color:#FF0000; word-wrap:normal; word-break:normal"><small></span>用小字体显示文字;<wbr><span style="color:#FF0000; word-wrap:normal; word-break:normal"><sup></span>显示文字为上标;<span style="color:#FF0000; word-wrap:normal; word-break:normal"><sub></span>显示文字为下标;——这是比较基础的HTML标签,所以在这里才一一列出,但在现阶段的web前端编码中,这些已经慢慢落后,被CSS取而代之!所以在实际运用的时候
夜风并不推荐它们!</wbr></wbr></wbr>
</div>
<div style="color:rgb(73,73,73); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(231,238,244)">
<br>
</div>
<div style="color:rgb(73,73,73); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(231,238,244)">
3)<span style="color:#FF0000; word-wrap:normal; word-break:normal"><em>与<i></span>都是用斜体来显示文字,就看个人使用习惯了,夜风本人多用<em>.</div>
<div style="color:rgb(73,73,73); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(231,238,244)">
<br>
</div>
<div style="color:rgb(73,73,73); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(231,238,244)">
4)<span style="color:#FF0000; word-wrap:normal; word-break:normal"><strong></span>用更明显的粗大字体来显示文字。这是在HTML文字定义标签里,能针对搜索引擎优化的一个标签,夜风个人非常推荐使用!</div>
<div style="color:rgb(73,73,73); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(231,238,244)">
<br>
</div>
<div style="color:rgb(73,73,73); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(231,238,244)">
---把下面的HTML代码复制到DreamWeaver中,大家都来试试看效果如何吧^_^:</div>
<div style="color:rgb(73,73,73); font-family:simsun; font-size:14px; line-height:21px; text-align:left; background-color:rgb(231,238,244)">
<div>
<textarea readonly name="code" class="html"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb18030">
</head>
<body>
<i>1234567890</i>
<b>1234567890</b>
<big>1234567890</big>
<small>1234567890</small>
<em>1234567890</em>
<sup>1234567890</sup>
<sub>1234567890</sub>
<strong>1234567890</strong>
</body>
</html></textarea><br><br>
</div>
</div>
</wbr></wbr>
分享到:
相关推荐
<b>粗体文本 <font>不赞成用。文本字体、尺寸和颜色 <i>斜体文本 <em>强调文本 <big>大文本 <strong>强烈强调文本 <small>小文本 <sup>上标文本 <sub>下标文本 <bdo>文本方向 <u>不赞成用。下划线文本 --文本1 <pre>...
对网页制作感兴趣的同学 ...4、文档设置标记下-文本标记(<hn><font><b><i><sub><sup><tt><cite><em><strong><small><big><u>) 5、含有教程笔记,大纲,源码,本人看过已学,浅显易懂。每节课都配有源码可以看教程实践
<h1>~<h6>标题标签<pre>格式化文本<u>下划线(underline)<i>斜体字(italics)<cite>引用,通常为斜体<em>强调文本通常为斜体<strong>加重文本,通常为黑体<font>设置字体、字体大小、颜色等<big><small>字体变大和...
<em>,<i>,<cite> 斜体 <U> 底线 <strike> 删除线 <blink> 文字闪烁 <big> 大型字体 <small> 小型字体 <sup> 文字上标 <SUB> 文字下标 <basefont> 默认字体设置 <font>
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,dl,dt,dd,ol,nav...
对css里的元素如:html, body, div, ... strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td的初始化
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,...
small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details,...
5.5 基本文字格式(tt、i、b、big、small、strike、s、u) 5.6 字体修改(font、basefont元素) 5.6.1 改变字体大小(size属性) 5.6.2 改变文本颜色(color属性) 5.6.3 改变字体(face属性) 5.7 加入水平分割线(hr元素) ...
html, body, div, span, applet, object, iframe,h1, h2, h3, h4, h5, h6, p, blockquote, pre,a, abbr, acronym, address, big, cite, code,del, dfn, em, img, ins, kbd, q, s, samp,small, strike, strong, sub, ...