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

php中世界最好的语言
Release: 2018-01-20 10:08:27
Original
3013 people have browsed it

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

一级标题

  

二级标题

  

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

段落

段落标记的结束标记'

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

段落文字

Copy after login

换行

这段话结束前就
换行

不换行

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

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

水平线

使用


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

插入特殊符号

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

例子

  
  
      
          
        标签1  
    

标题


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

这段靠右
这段 靠右

这段×居中

Copy after login

相信看了这些案例你已经掌握了方法,更多精彩请关注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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!