HTML Paragraph and Break Elements
HTML <p> tags are used to write paragraph statements on a webpage. They start with the <p> tag and end with </p>. The HTML <br> tag is used to insert a single line break and does not require a closing tag. In HTML, the break tag is written as <br>.
Syntax:
// for Parapgraph
<p> Content... </p>
// for Break
<br>
Example 3: To illustrates the use of <p> tag for writing a paragraph statement in HTML.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, initial-scale=1.0">
<title>
Example of paragraph and break elements
</title>
</head>
<body>
<p>
HTML stands for HyperText Markup Language.<br>
It is used to design web pages using a markup
language.<br>HTML is a combination of Hypertext
and Markup language.<br>Hypertext defines the
link between web pages.<br>A markup language
is used to define the text document within the
tag which defines the structure of web pages.
</p>
</body>
</html>
Output:
HTML Basics
HTML stands for Hyper Text Markup Language. It is the standard markup language for creating Websites. It is used to describe the structure of a Web page. HTML consists of elements that tell the browser how the content is displayed on the screen. We’ll walk you through fundamental HTML examples and teach you how to create a webpage. This HTML Basics covers fundamental HTML examples.
In this guide, the basics of HTML include learning HTML tags ( <h1>, <p>, <img>, etc), attributes, elements, and document structure which collectively form a working web page.
Table of Content
- Basic HTML Document
- HTML Headings
- HTML Paragraph and Break Elements
- HTML Horizontal Line
- HTML Images
- View HTML Source Code
Contact Us