A brief discussion on HTML titles, paragraphs, line breaks, horizontal lines, and special characters

A brief discussion on HTML titles, paragraphs, line breaks, horizontal lines, and special characters

title

XML/HTML CodeCopy content to clipboard
  1. < h1 > First level title </ h1 >   
  2. < h2   align = "alignment " > Secondary title </h2>   

There are three alignment modes: left, center, and right. The default is left.

paragraph

End of paragraph tag'

'Can be omitted, a new paragraph start mark means the end of the previous paragraph

XML/HTML CodeCopy content to clipboard
  1. < p > Paragraph text </ p >   

Line Break

Before the end of this paragraph, <br>break the line

No line break

When a paragraph is very long, the browser will generally automatically wrap it. If you don't want the browser to do this, you can use the <nobr> tag

<nobr>No matter how long this sentence is, the browser is not allowed to wrap it automatically</nobr>

Horizontal Line

Use <hr> to insert a horizontal line in a web page

Insert special symbols

&nbsp;No line break space
&emsp;Full-width space
&ensp;Half-width space
&quot;
&amp;&
&lt;
>
&times;×
&sect;§
&copy;©
&reg;®
&trade™

example

XML/HTML CodeCopy content to clipboard
  1. <!doctype html >   
  2. < html >   
  3.      < head >   
  4.          < meta   http-equiv = "content-type"   content = "text/html; charset=utf-8"   
  5.          < meta   name = "description"   content = "Set page description" >   
  6.          < title > Tag 1 </ title >   
  7.      </ head >   
  8.      < body >   
  9.          < h1 > Title </ h1 >   
  10.              < hr >   
  11.              < nobr > There is no paragraph mark. The next paragraph starts where this paragraph ends. There is no paragraph mark. The next paragraph starts where this paragraph ends. There is no paragraph mark. The next paragraph starts where this paragraph ends. There is no paragraph mark. The next paragraph starts where this paragraph ends. </ nobr >   
  12.              < p   align = "right" > This paragraph is aligned to the right < br > This paragraph is aligned to the right
  13.              < p   align = "center" > This section × is centered
  14.      </ body >     
  15. </ html >   

Output effect:

The above brief discussion on HTML titles, paragraphs, line breaks, horizontal rules, and special characters is all the content that the editor shares with you. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM.

<<:  Independent implementation of nginx container configuration file

>>:  10 tips for designing useful, easy-to-use web applications

Recommend

Web page experience: Web page color matching

<br />The color of a web page is one of the ...

How to embed flash video format (flv, swf) files in html files

Flash file formats: .FLV and .SWF There are two ex...

How to install vim editor in Linux (Ubuntu 18.04)

You can go to the Ubuntu official website to down...

Detailed explanation of the usage of MySQL data type DECIMAL

MySQL DECIMAL data type is used to store exact nu...

Detailed explanation of simple snow effect example using JS

Table of contents Preface Main implementation cod...

Binary installation of mysql 5.7.23 under CentOS7

The installation information on the Internet is u...

Detailed explanation of how to install MariaDB 10.2.4 on CentOS7

CentOS 6 and earlier versions provide MySQL serve...

How to delete extra kernels in Ubuntu

Step 1: View the current kernel rew $ uname -a Li...

MySQL Series 10 MySQL Transaction Isolation to Implement Concurrency Control

Table of contents 1. Concurrent access control 2....

Ubuntu installs multiple versions of CUDA and switches at any time

I will not introduce what CUDA is, but will direc...