在本文中,我们将看到如何定义页面内容的主题更改。当段落的描述发生变化时,这有助于在段落之间引入中断。
HTML 中的
元素用于表示内容的主题变化。它可以与对齐、阴影、宽度和大小等属性一起使用来指定其功能。它是一个自闭合标签。
下面的例子展示了使用
标签来标记段落之间的主题变化:
示例 1:
HTML
HTML
Hypertext Markup Language is the markup
language for pages to be displayed in a web
browser. It can be used with CSS to improve
the look of the webpage and JavaScript to make
the page dynamic.
CSS
Cascading Style Sheets is a language that is
used for styling a webpage in accordance to
the given HTML content.
HTML
Stack
A Stack is a data structure that follows
the Last In First Out order to store the
data.
Queue
A Queue is a data structure that follows
the First In First Out (FIFO) order to
store data.
Heap
A Heap is a tree-based data structure that
can be used for implementing priority queues.
输出:
示例 2:
HTML
Stack
A Stack is a data structure that follows
the Last In First Out order to store the
data.
Queue
A Queue is a data structure that follows
the First In First Out (FIFO) order to
store data.
Heap
A Heap is a tree-based data structure that
can be used for implementing priority queues.
输出: