Introduction to HTML Paragraphs

The HTML <p> tag defines a paragraph. Browsers automatically add some margin (space) before and after each <p> element.

Paragraphs are block-level elements that typically contain text content. They are fundamental for organizing textual information on web pages.

Basic Paragraph Example

This is a simple paragraph in HTML. It will appear as a block of text separated from other content.

This is another paragraph. Notice the spacing between paragraphs that browsers automatically apply.

HTML Code Example

<!DOCTYPE html>
<html>
<head>
  <title>Paragraph Example</title>
</head>
<body>
  <h1>About Us</h1>
  <p>Welcome to our website. We are a team of passionate developers creating amazing web experiences.</p>
  
  <p>Our mission is to build accessible, performant websites that deliver value to users. We believe in clean code 
  and thoughtful design principles that stand the test of time.</p>
  
  <p>Founded in 2010, we've grown from a small startup to an industry leader in web solutions.</p>
</body>
</html>

Paragraph Formatting

This paragraph contains bold text and italicized text.

You can also underline text or make it smaller.

Line breaks can be added
using the <br> tag.

This paragraph has muted/disabled appearance.

Best Practices

  • Use paragraphs for textual content rather than multiple line breaks
  • Keep paragraphs focused - one main idea per paragraph
  • Aim for 3-5 sentences per paragraph for readability
  • Use CSS for styling rather than deprecated HTML attributes
  • Combine paragraphs with headings to create content structure
  • Consider line length (50-75 characters is ideal for readability)

Accessibility Considerations

Proper paragraph usage improves accessibility:

  • Screen readers announce paragraph boundaries
  • Good paragraph structure helps users with cognitive disabilities
  • Proper spacing improves readability for all users
  • Avoid using paragraphs just for visual spacing - use CSS margins instead

Remember that some users may change default paragraph spacing through browser settings.