22 Mar Creating Paragraphs in HTML Web Page
To create paragraphs in an HTML web page, use the <p> element. The opening and closing tag look like,
1 2 3 4 5 |
<body> <p></p> </body> |
The <p>…</p> comes inside the <body>…</body> tags. The below example shows how to add paragraph in a web page,
1 2 3 4 5 6 7 8 9 10 11 12 13 |
<!DOCTYPE html> <html> <head> <title>HTML Paragraphs Example</title> </head> <body> <h2>Learn for free</h2> <p>Adding paragraphs in a web page.</p> <p>Studyopedia is a free learning website. It provides free learning for all.</p> </body> </html> |
The output:
More Examples
- Creating HTML Document
- Creating Headings in HTML web page
- Page links in an HTML Web Page
- Inserting Image in HTML
- Add Title in an HTML web page
- How to create horizontal line in HTML Page
- The href attribute in HTML Page
- Image height and width attribute in HTML
- Inserting Hyperlinks on an HTML web page?
- Why head tag is used in HTML?
- How to set background color in HTML?
- How to set font color in HTML
- How to use StyleSheet in HTML
No Comments