Home  >  Article  >  Web Front-end  >  How to use html titles, paragraphs, line breaks, horizontal lines, and special characters

How to use html titles, paragraphs, line breaks, horizontal lines, and special characters

php中世界最好的语言
php中世界最好的语言Original
2018-01-20 10:08:273012browse

这次给大家带来html标题,段落,换行,水平线,特殊字符应该如何使用,在html使用标题,段落,换行,水平线,特殊字符的注意事项有哪些,下面就是实战案例,一起来看一下。

4a249f0d628e2318394fd9b75b4636b1一级标题473f0a7621bec819994bb5020d29372a  

d106ed7bd1b9075e6eaab0eb5547a74b二级标题2e9b454fa8428549ca2e64dfac4625cd  

对齐方式有left,center,right三种,缺省表示left

段落

段落标记的结束标记'

'可以省略,一个新的段落开始标记就意味着上一个段落的结束

段落文字

换行

这段话结束前就0c6dc11e160d3b678d68754cc175188a换行

不换行

当一段很长的时候,浏览器一般会自动进行换行处理,如果不希望浏览器这么做,可以使用f44a345470ed5309298c118c07c6efac标记

f44a345470ed5309298c118c07c6efac无论这句话多长,都不允许浏览器自动换行9c46f421c188c45fb09e606d3bbae378

水平线

使用f32b48428a809b51f04d3228cdf461fa可以在网页中插入一条水平线

插入特殊符号

 不换行 空格
 全角 空格
 半角 空格
""
&&
<<
>>
××
§§
©©
®®
&trade™

例子

  
  
      
          
        标签1  
    

标题


没有段落标记,下一段开始就是这段结束没有段落标记,下一段开始就是这段结束没有段落标记,下一段开始就是这段结束没有段落标记,下一段开始就是这段结束没有段落标记,下一段开始就是这段结束

这段靠右
这段 靠右

这段×居中

相信看了这些案例你已经掌握了方法,更多精彩请关注php中文网其它相关文章!

相关阅读:

怎样用h5的sse服务器发送EventSource事件

h5如何实现记住密码功能

H5的页面中怎样调用APP功能

The above is the detailed content of How to use html titles, paragraphs, line breaks, horizontal lines, and special characters. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn