HTML EXAMPLE · WORKING REFERENCE

Headings & Paragraphs

Heading hierarchy aur paragraphs se readable content structure banao.

Working code

<h1>Web Development</h1>
<p>Learn how websites are built.</p>

<h2>HTML</h2>
<p>HTML gives a webpage its structure.</p>

<h2>CSS</h2>
<p>CSS controls presentation and layout.</p>
Run Code ▶

Preview

Web Development

Learn how websites are built.

HTML

HTML gives a webpage its structure.

CSS

CSS controls presentation and layout.

How it works

<h1> page ka main heading represent karta hai. Subsections ke liye logical <h2> headings use ki gayi hain.

<p> related prose ko paragraph ke roop me mark karta hai.

Try Yourself

<h1>My Learning Plan</h1>
<p>I am learning web development.</p>
<h2>Today</h2>
<p>Practice HTML examples.</p>

Learn this concept

Read related HTML Tutorial →