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 h1 is the main heading and the h2 is a sub heading.
  • Each hobby is a <li> inside the <ul>.

Related: HTML Headings and HTML Lists.


Learn more about the similar topics:
Tutorials
HTML Introduction
HTML First Program using Notepad
HTML Page Structure
Exercises & Assignments
Steps to Create a Webpage in HTML using Notepad
Write an HTML program to display hello world.
Write an HTML program to create a page about yourself
Interview Questions & Answers
What is the full form of HTML?
What is DOCTYPE in HTML?
Will HTML5 work without DOCTYPE?
How is the page structure of HTML5 different from previous HTML versions?
What is HTML?
What is the HTML page structure? Explain with example