How Can We Help?
-
HTML
-
CSS
- Introduction to CSS
- Before learning CSS?
- SELECTOR
- Example
- Box Model
- Comments
- Colors
- Background Color
- Text Color
- Border Color
- Backgrounds
- Borders
- Margins
- Padding
- Height, Width, and Max-width
- Outline
- Text
- Font Style, Font Size & Shorthand
- Links
- Display and Position
- Lists
- Tables
- Pseudo-classes and Combinators
- Flexbox
- Grid
- Flexbox vs Grid
- Responsive Web Design
- Media Queries
- Responsive Images
- Fluid Layouts
- Transforms, Transitions, and Animations
-
JavaScript
- Introduction to JavaScript
- Hello World
- Syntax
- Variables
- Data Types
- Numbers
- Boolean type
- String
- Objects
- Primitive vs Reference Values
- Arrays
- Arithmetic Operators
- Remainder Operator
- Assignment Operators
- Comparison Operators
- Logical Operators
- if statement
- if else
- if else if
- Ternary Operator
- Object Spread
- Switch case
- While Loop
- do…while Loop
- Loop
- break
- continue
- Functions
- Storing functions in variables
- Anonymous Functions
- Pass-By-Value
- Recursive Function
- Object Methods
- Constructor Function
- this Keyword
- Object Properties
- for…in Loop
- Object.values
- Object.assign
- Class
- Getters and Setters
- Function Type
- Closures
- Arrow Functions
- When You Should Not Use Arrow Functions
- Rest Parameters
- Callbacks
- Promises
- async/await
-
JavaScript DOM
- JavaScript DOM
- getElementById
- getElementsByName
- getElementsByTagName
- getElementsByClassName
- querySelector
- JavaScript Get the Parent Element parentNode
- Getting Child Elements
- JavaScript Siblings
- CreateElement
- appendChild
- JavaScript textContent
- JavaScript innerHTML
- JavaScript innerHTML vs createElement
- Working with Attributes
- JavaScript Style
- Working with Events
-
React
< All Topics
Paragraphs
HTML paragraph tags are used to define the text paragraphs.
When we create any document, we divide text content into multiple paragraphs. Similarly, HTML documents can be divided into HTML paragraphs.
HTML <p>
The tag defines a paragraph. This Paragraph tag automatically adds some margin (white space) before and after a paragraph.
Simple Example:
<p>This is a sample paragraph.</p>
HTML Paragraphs – Complete HTML Program Example
You can use multiple paragraphs in an HTML program. The following example consists of three <p>
tags.
<html>
<head> </head>
<body>
<p>This is the first paragraph. You can add any kind of text here. </p>
<p>This is the second paragraph. This is some sample text. </p>
<p>This is another paragraph. You can add multiple lines of text in this paragraph. </p>
</body>
</html>
Table of Contents