Write an HTML program to create a page about yourself
Description: Create a web page with your name as the heading, a short paragraph about you, and a list of your hobbies.
Hint:
- Use
<h1>for the name,<p>for the paragraph and<ul>for the hobbies.
HTML program for a page about yourself
<!DOCTYPE html>
<html lang="en">
<head>
<title>About Me</title>
</head>
<body>
<h1>Robin Kumar</h1>
<p>I am a student and I am learning web development.</p>
<h2>My hobbies</h2>
<ul>
<li>Reading</li>
<li>Cricket</li>
<li>Music</li>
</ul>
</body>
</html>
Output in the browser:
Output in the browser
Robin Kumar
I am a student and I am learning web development.
My hobbies
- Reading
- Cricket
- Music
How it works
- The
h1is the main heading and theh2is a sub heading. - Each hobby is a
<li>inside the<ul>.
Related: HTML Headings and HTML Lists.
Learn more about the similar topics:
| Tutorials |
|---|
| No Content Found. |
| Exercises & Assignments |
|---|
| No Content Found. |
| Interview Questions & Answers |
|---|
| No Content Found. |