HTML Paragraphs

A paragraph always starts on a new line, and is usually a block of text.

HTML段落

The HTML

element defines a paragraph.

A paragraph always starts on a new line, and browsers automatically add some white space (a margin) before and after a paragraph.

Example

This is a paragraph.

This is another paragraph.

来试试吧 »

HTML Display

You cannot be sure how HTML will be displayed.

Large or small screens, and resized windows will create different results.

With HTML, you cannot change the display by adding extra spaces or extra lines in your HTML code.

The browser will automatically remove any extra spaces and lines when the page is

displayed:

Example

This paragraph

contains a lot of lines

in the source code,

but

the browser

ignores it.

This paragraph

contains

a lot of spaces

in the source

code,

but the        browser

ignores

it.

来试试吧 »

HTML Horizontal Rules

The


tag defines a thematic break in an HTML page, and is most often

displayed as a horizontal rule.

The


element is used to separate content (or define a change) in an HTML

page:

Example

This is heading 1

This is some text.


This is heading 2

This is some other text.


来试试吧 »

The


tag is an empty tag, which means that it has no end tag.

HTML Line Breaks

The HTML
element defines a line break.

Use
if you want a line break (a new line) without starting a new paragraph:

Example

This is
a paragraph
with line breaks.

来试试吧 »

The
tag is an empty tag, which means that it has no end tag.

The Poem Problem

This poem will display on a single line:

Example

My Bonnie lies over

the ocean.

My Bonnie lies over the sea.

My Bonnie

lies over the ocean.

Oh, bring back my Bonnie to me.

来试试吧 »

Solution - The HTML

 Element

The HTML

 element defines preformatted text.

The text inside a

 element is displayed in a fixed-width font (usually

Courier), and it preserves both spaces and line breaks:

Example

My Bonnie lies over the ocean.

My Bonnie lies over the sea.

My Bonnie lies over the

ocean.

Oh, bring back my Bonnie to me.

来试试吧 »

HTML 练习

Test Yourself With 练习

Exercise:

Use the correct HTML tag to add a paragraph with the text "Hello World!".

Submit Answer »

HTML Tag 参考

W3Schools' tag reference contains additional information about HTML elements and their attributes.

Tag

Description

Defines a paragraph

Defines a thematic change in the content

Inserts a single line break

Defines pre-formatted text

For a complete list of all available HTML tags, visit our HTML Tag 参考.

html 成新段落,HTML段落相关推荐

  1. LaTeX 段落:段落缩进、段落间距、行距

    原  文:Paragraph formatting 译  者:Xovee 翻译时间:2021年8月12日 LaTeX 段落 LaTeX 默认的段落是比较容易阅读的.当然,有时候你也需要一种不同的段落样 ...

  2. php数据表相同字段合并,php实现两表合并成新表并且有序排列的方法

    这篇文章主要介绍了php实现两表合并成新表并且有序排列的方法,涉及针对数组的遍历与排序操作技巧,具有一定的实用价值,需要的朋友可以参考下 本文实例讲述了php实现两表合并成新表并且有序排列的方法.分享 ...

  3. pandas使用date_range函数生成日期序列数据、pandas将两个日期序列数据作差生成新的日期差数据列(8 days)、并提取天数数值(8)

    pandas使用date_range函数生成日期序列数据.pandas将两个日期序列数据作差生成新的日期差数据列(8 days).并提取天数数值(8) 目录

  4. 数据库自动备份还原成新库脚本

    数据库自动备份还原成新库脚本 BACKUP DATABASE [源数据库名] TO DISK = N'G:\testbackup.bak' WITH COMPRESSION,NOUNLOAD , NA ...

  5. 问题描述: 在一个圆形操场的四周摆放着n 堆石子。现要将石子有次序地合并成一堆。 规定每次只能选相邻的2 堆石子合并成新的一堆,并将新的一堆石子数记为该次合并的得分。 试设计一个算法,计算出将n堆石子

    问题描述: 在一个圆形操场的四周摆放着n 堆石子.现要将石子有次序地合并成一堆. 规定每次只能选相邻的2 堆石子合并成新的一堆,并将新的一堆石子数记为该次合并的得分. 试设计一个算法,计算出将n堆石子 ...

  6. 关于如何根据UI的版本把Tab切换成新的Notes UI Component

    Sent: Monday, December 29, 2014 5:07 PM 关于如何根据UI的版本把Tab切换成新的Notes UI Component,IconTabBar控件提供了一系列操作下 ...

  7. 易成新能加码光伏产业链 作价28.29亿收购赛维两子公司

    易成新能11月17日晚公告称,拟通过向债权人发行股份及支付现金方式,合计作价28.29亿元,取得破产重整后江西赛维100%股权和新余赛维100%股权. 同时,公司拟向控股股东中国平煤神马集团等5名对象 ...

  8. iNeuOS工业互联操作系统,图表与数据点组合成新组件,进行项目复用

    目       录 1.      概述... 1 2.      演示信息... 2 3.      应用过程... 2 1.   概述 针对有些行业的数据已经形成了标准化的建模或者有些公司专注于某 ...

  9. mysql 怎么修改成新字段_Mysql入门第一课《建表、改表、删表》

    原文在我的 Github 上,欢迎订阅. 前言 本人想学数据库了,于是有了这个Mysql系列. 本系列主要用于本人学习Mysql的记录,我把它当做学习笔记. 没有从安装数据库及用户新增和权限分配等知识 ...

  10. 巴比特 | 元宇宙每日必读:数字藏品二级市场乱象丛生,00后成新韭菜,监管迫在眉睫?...

    摘要:尽管众多数字藏品平台均明确限制二级流转,但场外交易仍屡见不鲜.有的平台直接开通寄售服务,相当于开通了二级交易市场.有的更是直接操纵藏品价格涨跌,重复着2017年ICO割韭菜的故事.在暴利引诱下, ...

最新文章

  1. python新特性赋值_变量与赋值_Python入门视频课程_Python视频-51CTO学院
  2. mysql zookeeper 切换_zookeeper在mysql主库选举切换中的应用
  3. centos安装java的jdk
  4. mysql表空间被占用,同名表无法创建或导入
  5. PKU 1061 青蛙的约会
  6. arduino 停止程序_极路由1S OpenWrt开机自启程序及串口调试
  7. 学习索引结构的一些案例——Jeff Dean在SystemML会议上发布的论文(中)
  8. 大学物理光学思维导图_在线思维导图软件安利:简单、方便画图,大学生、小学生都能用...
  9. php实现mkv视频播放,mkv怎么合并视频文件
  10. exit( )和_exit()的区别(https://blog.csdn.net/lwj10386)
  11. 【高等数学笔记】格林公式、高斯公式、斯托克斯公式、场论
  12. arduino和单片机的区别是什么
  13. 办公office 2019软件有哪些
  14. 移动端开发兼容性处理整理
  15. 关于硬盘分区(主分区、扩展分区和逻辑分区)
  16. 感恩与祝福——与巴铁兄弟的友情告别
  17. otis电梯服务器tt使用说明_OTIS电梯TT使用说明
  18. 物理学在计算机中的物理应用,物理学在计算机中的应用.doc
  19. 你见过哪些好用到爆的 Java 代码技巧?
  20. 《现代汉语语法信息词典》的开发与应用

热门文章

  1. NDCG原理及代码实现
  2. windows server 2016 配置DHCP
  3. 利用dayjs格式化时间
  4. linux数组拼接_JavaScript合并两个数组
  5. html行标签并列显示,excel数据透视表_excel数据透视表怎样不显示汇总
  6. Android一串数字分两段,底部对齐字号不同
  7. Oracle 数据导入
  8. linux-- linux忘记密码(修改root密码)
  9. Android SDK Tools 安装时找不到 Java JDK
  10. Navicat 图形化操作mysql 基本操作