`
yangzhiyong77
  • 浏览: 946159 次
文章分类
社区版块
存档分类
最新评论

HTML标签天天练2--<font><b><big><small><em><i><sup><sub><strong>

 
阅读更多
<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">&lt;font&gt;</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">&lt;b&gt;</span>粗体显示文字;<wbr><span style="color:#FF0000; word-wrap:normal; word-break:normal">&lt;big&gt;</span>用大字体显示文字;<wbr><span style="color:#FF0000; word-wrap:normal; word-break:normal">&lt;small&gt;</span>用小字体显示文字;<wbr><span style="color:#FF0000; word-wrap:normal; word-break:normal">&lt;sup&gt;</span>显示文字为上标;<span style="color:#FF0000; word-wrap:normal; word-break:normal">&lt;sub&gt;</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">&lt;em&gt;与&lt;i&gt;</span>都是用斜体来显示文字,就看个人使用习惯了,夜风本人多用&lt;em&gt;.</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">&lt;strong&gt;</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">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=gb18030"&gt; &lt;/head&gt; &lt;body&gt; &lt;i&gt;1234567890&lt;/i&gt; &lt;b&gt;1234567890&lt;/b&gt; &lt;big&gt;1234567890&lt;/big&gt; &lt;small&gt;1234567890&lt;/small&gt; &lt;em&gt;1234567890&lt;/em&gt; &lt;sup&gt;1234567890&lt;/sup&gt; &lt;sub&gt;1234567890&lt;/sub&gt; &lt;strong&gt;1234567890&lt;/strong&gt; &lt;/body&gt; &lt;/html&gt;</textarea><br><br> </div> </div> </wbr></wbr>
分享到:
评论

相关推荐

    HTML标签大全

    &lt;b&gt;粗体文本 &lt;font&gt;不赞成用。文本字体、尺寸和颜色 &lt;i&gt;斜体文本 &lt;em&gt;强调文本 &lt;big&gt;大文本 &lt;strong&gt;强烈强调文本 &lt;small&gt;小文本 &lt;sup&gt;上标文本 &lt;sub&gt;下标文本 &lt;bdo&gt;文本方向 &lt;u&gt;不赞成用。下划线文本 --文本1 &lt;pre&gt;...

    1.html的语法+基本结构+文档标记,对网页制作感兴趣的很有帮助,浅显易懂,只需要TXT可操作,本人已学,有笔记,大纲,源码

    对网页制作感兴趣的同学 ...4、文档设置标记下-文本标记(&lt;hn&gt;&lt;font&gt;&lt;b&gt;&lt;i&gt;&lt;sub&gt;&lt;sup&gt;&lt;tt&gt;&lt;cite&gt;&lt;em&gt;&lt;strong&gt;&lt;small&gt;&lt;big&gt;&lt;u&gt;) 5、含有教程笔记,大纲,源码,本人看过已学,浅显易懂。每节课都配有源码可以看教程实践

    html中常用的标签总结(必看)

    &lt;h1&gt;~&lt;h6&gt;标题标签&lt;pre&gt;格式化文本&lt;u&gt;下划线(underline)&lt;i&gt;斜体字(italics)&lt;cite&gt;引用,通常为斜体&lt;em&gt;强调文本通常为斜体&lt;strong&gt;加重文本,通常为黑体&lt;font&gt;设置字体、字体大小、颜色等&lt;big&gt;&lt;small&gt;字体变大和...

    初学asp者必看

    &lt;em&gt;,&lt;i&gt;,&lt;cite&gt; 斜体  &lt;U&gt; 底线  &lt;strike&gt; 删除线  &lt;blink&gt; 文字闪烁  &lt;big&gt; 大型字体  &lt;small&gt; 小型字体  &lt;sup&gt; 文字上标  &lt;SUB&gt; 文字下标  &lt;basefont&gt; 默认字体设置  &lt;font&gt; 

    HTML 网页设计

    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, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr,

    对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的初始化

    css 清除浏览器默认样式

    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,...

    HTML5和CSS3价格表翻转切换动画特效.zip

    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,...

    HTML开发王

    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元素) ...

    jQuery实现拉动页面固定顶部显示且自动消失(火狐)

    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, ...

Global site tag (gtag.js) - Google Analytics