Text in HTML

The element in HTML is used to define a paragraph of text.

Element

in HTML is used to define a paragraph of text.

For example

ản trị mạng.


Here l

 A news site, technology tips. 

Note that the browser will automatically add spaces (margins) before and after a paragraph of text.

How is HTML displayed?

You can't be sure how HTML will display, depending on whether the screen size is large or small, the browser window is open or narrow, it can give different results.

With HTML, you cannot change the display by adding spaces or adding lines in the HTML code because the browser will automatically delete them when displaying the page.

For example, the following two code snippets will display the same.

 > > 
Quản trị mạng
là trang thủ thuật công nghệ,
tin tức công nghệ,
khoa học.

Quản trị mạng
là trang thủ thuật công nghệ,
tin tức công nghệ,
khoa học.

Don't forget the closing card

Most browsers still display correctly even if you forget the closing tag, but don't be too subjective because sometimes missing tags can cause errors.

Line down in HTML

Element
in HTML defines downstream. Please use
If you want to start a new paragraph in the text by going down the line.

For example

mạng
administrator mạng
mạng
page of tips and technology news.

Card
is an empty element, meaning no closing tag is required.

Note when displaying poetry

If you write poetry without breaking the line, as in the code below, they will only display as a paragraph, even if you look like a poem.

 < p> 

Sóng bắt đầu từ gió

Gió bắt đầu từ đâu

Em cũng không biết nữa

Khi nào ta yêu nhau.

Element

 in HTML 

Element

 

used to define text before formatting. Text inside

 will display in font with a fixed width (usually Courier) and leave the spaces and line breaks intact. 
 > > 

Sóng bắt đầu từ gió

Gió bắt đầu từ đâu

Em cũng không biết nữa

Khi nào ta yêu nhau.

Text in HTML Picture 1
This is the image displayed on the browser

Last lesson: Title in HTML

The following article: Style properties in HTML

3.5 ★ | 2 Vote | 👨 151 Views
« PREV POST
NEXT POST »