


This article mainly introduces the application methods and examples of HTML p tags, as well as an introduction to HTML br line break tags. Okay, now let's take a look at this article
First of all, let's take a look at how the HTML p tag is wrapped:
Here for everyone Introduce a good friend tag. I remember a saying: If there is a place where line breaks need to be forced, then we can use the br tag. It can be seen that the br tag is a line break tag that many people like to use. It can be used whether you are forcing line breaks or not.
Now let’s look at the example: Find some news on the Internet as the content of the paragraph
<!doctype html> <html> <head> <meta charset="UTF-8"> <title>我是网页标题(我是PHP中文网)</title> </head> <body > <p>这里是PHP中文网中新网8月29日电 据商务部网站消息,商务部决定自2018年8月30日起,对原产于日本、韩国、新加坡和台湾地区 的进口双酚A所适用的反倾销措施进行期终复审调查,本次调查自2018年8月30日起开始,于2019年8月29日前结束。</p><p>29日,商 务部发布关于对原产于日本、韩国、新加坡和台湾地区的进口双酚A反倾销措施进行期终复审调查的立案公告,公告称,根据商务部建 议</p><p>国务院关税税则委员会决定,在反倾销期终复审调查期间,对原产于日本、韩国、新加坡和台湾地区的进口双酚A继续按照 商务部2013年第55号公告公布的征税范围和税率征收反倾销税。</p> </body> </html>
This picture is just a paragraph without line breaks. Let’s take a look at the effect first.
##There are only three paragraphs here, they are all relatively long, now I will give them each paragraph Add a br tag to every word:
<body > <p>这里是PHP中文网中新网8月29日电 据商务部网站消息,商务部决定自2018年8月30</br>日起,对原产于日本、韩国、新加坡和台 湾地区的进口双酚A所适用的反倾销措施进行期终复审调查,本次调查自2018年8月30日起开始,于2019年8月29日前结束。</p><p>29 日,商务部发布关于对原产于日本、韩国、新加坡</br>和台湾地区的进口双酚A反倾销措施进行期终复审调查的立案公告,公告称, 根据商务部建议</p><p>国务院关税税则委员会决定,在反倾销期终复审调查期间,对原产于日本、韩国、新加坡和台湾地区的进口双 酚A继续按照商务部2013年第55</br>号公告公布的征税范围和税率征收反倾销税。</p> </body>
Look at this effect:
The above marks are all line breaks Content. You can do line breaks inside.
How to wrap the text in the pre tag in html? Usage examples of html pre tag
What does the HTML ul tag mean? Detailed explanation of the role of HTML ul tag
The above is the detailed content of How to wrap html p tag? Application of adding br line break tag to html p tag. For more information, please follow other related articles on the PHP Chinese website!

本篇文章带大家了解一下HTML(超文本标记语言),介绍一下HTML的本质,HTML文档的结构、HTML文档的基本标签和图像标签、列表、表格标签、媒体元素、表单,希望对大家有所帮助!

总结了一些web前端面试(笔试)题分享给大家,本篇文章就先给大家分享HTML部分的笔试题(附答案),大家可以自己做做,看看能答对几个!

HTML5中画布标签是“<canvas>”。canvas标签用于图形的绘制,它只是一个矩形的图形容器,绘制图形必须通过脚本(通常是JavaScript)来完成;开发者可利用多种js方法来在canvas中绘制路径、盒、圆、字符以及添加图像等。

br是Adobe公司开发的一个组织工具程序,其全称是Adobe Bridge;br可以借助于编写ExtendScript脚本或使用内含的工作流程脚本示例将Adobe Creative Suite中各组件的繁重任务实现自动化。

在html中,document是文档对象的意思,代表浏览器窗口的文档;document对象是window对象的子对象,所以可通过“window.document”属性对其进行访问,每个载入浏览器的HTML文档都会成为Document对象。

html5废弃了dir列表标签。dir标签被用来定义目录列表,一般和li标签配合使用,在dir标签对中通过li标签来设置列表项,语法“<dir><li>列表项值</li>...</dir>”。HTML5已经不支持dir,可使用ul标签取代。

br在html中是一个换行标签,它用于在HTML文档中插入一个简单的换行符;在需要手动换行地方,加入“<br>”即可实现内容换行。“<br>”标签是一个空标签,意味着它没有结束标签。


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Atom editor mac version download
The most popular open source editor

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SublimeText3 Linux new version
SublimeText3 Linux latest version

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment
