HTML换行符和水平线
2016-05-05 16:40
363 查看
换行符<br>
在一个标签内某处添加换行符,相当于在该处进行换行;
举例:
添加换行符前,
添加换行符后,
水平线<hr>
水平线是分割网页内容的一种方法;
举例:
添加水平线前,
添加水平线后,
在一个标签内某处添加换行符,相当于在该处进行换行;
举例:
添加换行符前,
<h2>About Us</h2> <p>Mr Green's Smelly Fish Emporium prides itself on catching, preparing and delivering the smelliest fish right to your doorstep. Whether you like to cook them, feed them to your cat, or just hide them in your unruly neighbours porch, Mr Green has it covered!</p>
添加换行符后,
<h2>About Us</h2> <p>Mr Green's Smelly Fish Emporium prides itself on catching, preparing and delivering the smelliest fish right to your doorstep. <br> Whether you like to cook them, feed them to your cat, or just hide them in your unruly neighbours porch, Mr Green has it covered!</p>
水平线<hr>
水平线是分割网页内容的一种方法;
举例:
添加水平线前,
<p>We sell the smelliest fish on the planet</p> <ul> <li><a href="contact.html">Contact Us</a></li> <li><a href="prices/freshwater-fish-prices.html">Price List</a></li> <li><a href="http://www.163.com" target="_blank">Link to Netease Web</a></li> <li><a href="downloads/all-prices.pdf">Download C++ book</a></li> </ul> <h2>Types of Fish We Sell</h2>
添加水平线后,
<p>We sell the smelliest fish on the planet</p> <hr> <ul> <li><a href="contact.html">Contact Us</a></li> <li><a href="prices/freshwater-fish-prices.html">Price List</a></li> <li><a href="http://www.163.com" target="_blank">Link to Netease Web</a></li> <li><a href="downloads/all-prices.pdf">Download C++ book</a></li> </ul> <hr> <h2>Types of Fish We Sell</h2>
相关文章推荐
- 静态html请求session丢失
- XML与HTML的设计区别
- HTML网页制作:[12]使用框架结构之frameset
- HTML列表
- HTML链接
- html第三天利用table做课程表
- HTML中图片位置及大小的控制
- html元素转换知识学习心得
- WPF显示html的几种方法
- 浅析html中的自定义列表
- HTML邮件制作规范
- HTML 5 video 视频标签全属性详解
- 【菜鸟学安卓】- TextView 显示Html 二 图片大小的显示问题
- HTML-表格与表单
- HTML常用文字显示标签效果示例
- HTML
- 关于html_entity_decode、空格 以及乱码
- html的笔记
- html的笔记
- html的笔记