Programming Examples

Open your chosen code editor and create a new HTML document.


2-Open your chosen code editor and create a new HTML document.

(a) Add three headings (<h2>, <h3>, and <h4>) with titles like "About Me," "My Hobbies," and "My Goals."

(b) Under each heading, write a few sentences in <p> tags.

(c) Add an unordered list under "My Hobbies" with at least three list items (e.g., "Reading," "Cooking," "Traveling").

d) Create an ordered list under "My Goals" with at least three personal or professional goals.

Solution

<!DOCTYPE html>
<html>
<head>
    <title>Personal Information</title>
</head>
<body>

    <h2>About Me</h2>
    <p>
        I am a student who is interested in learning new technologies and improving my skills.
        I enjoy exploring new ideas and working on creative projects.
    </p>

    <h3>My Hobbies</h3>
    <p>
        In my free time, I like to relax and engage in activities that make me happy and refreshed.
    </p>
    <ul>
        <li>Reading</li>
        <li>Cooking</li>
        <li>Traveling</li>
    </ul>

    <h4>My Goals</h4>
    <p>
        I aim to grow both personally and professionally by continuously learning and gaining
        real-world experience.
    </p>
    <ol>
        <li>Become a skilled software developer</li>
        <li>Complete advanced certifications</li>
        <li>Secure a good job in a reputed company</li>
    </ol>

</body>
</html>
▶ RUN

Output/ Explanation:

Latest Current Affairs 2026 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad