Home > Web Front-end > HTML Tutorial > How to write html line break code

How to write html line break code

青灯夜游
Release: 2022-12-30 11:13:28
Original
36750 people have browsed it

htmlThe line break code is "
". If you want to break the line on which line, just add the "
" code at the end of that line of code to achieve the line break operation. The HTML "
" tag is used to insert a simple line break to achieve line breaks.

How to write html line break code

The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.

HTML Line Break

If you want to break a line in HTML, you can use the "
" tag. If you want to break a line on that line, just click on that line of code. Add "
" code at the end to achieve line break operation.


tag inserts a simple newline character.


tag is an empty tag, meaning it has no closing tag.

Example:

<!DOCTYPE html>
<html>
<head> 
<meta charset="utf-8"> 

</head>
<body>

<p>
使用 br 元素<br>在文本中<br>换行。
</p>

</body>
</html>
Copy after login

Effect:

How to write html line break code

Related tutorial recommendations:html tutorial, more For computer programming related knowledge, please visit: programming video! !

The above is the detailed content of How to write html line break code. 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