". 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."/> ". 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.">

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

How to write html line break code

青灯夜游
青灯夜游Original
2021-02-02 11:33:3036595browse

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>

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!

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