OneCompiler

web page by using html

1912

Example heading with h2 size

Example heading with h3 size

Following html code.

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Freedom Fighters</title> <style> body { font-family: Arial, sans-serif; margin: 0; padding: 0; background-color: #f4f4f4; color: #333; }
    header {
        background-color: #ff4500;
        padding: 20px;
        text-align: center;
        color: black;
    }

    main {
        padding: 20px;
    }

    section {
        margin-bottom: 40px;
    }

    h1 {
        font-size: 2.5em;
        margin-bottom: 10px;
    }

    h2 {
        font-size: 2em;
        margin-top: 0;
    }

    p {
        font-size: 1.1em;
        line-height: 1.6;
    }
    img {
        display: block;
        margin: 20px auto;
        max-width: 100%;
        height: auto;
        border-radius: 10px;
    }
    footer {
        text-align: center;
        padding: 20px;
        background-color: #333;
        color: white;
        margin-top: 40px;
    }
</style>
</head> <body> <header> <h1>Freedom Fighters</h1> <p>Saviors of India</p> </header>
<main>
    <section>
        <h2>About Freedom Fighters</h2>
        <p>* Mahatma Gandhi</p>
        <p>* Jawaharlal Nehru</p>
        <p>* Sardar Vallabh Bhai Patel</p>
        <p>* Bhagat Singh</p>
        <p>* Lal Bahadur Shastri</p>
        <p>* Ram Prasad Bismil</p>
        <p>* Subhas Chandra Bose</p>
        <p>* Rani Laxmi Bai</p>
    </section>

    <section>
        <h2>Mohandas Karamchand Gandhi</h2>
        <img src="https://assets.onecompiler.app/42pqvpa3v/42pqvktcj/Mahatma-Gandhi,_studio,_1931.jpg" alt="Mahatma-Gandhi" width="500" height="300"
        <p>Mohandas Karamchand Gandhi, popularly called Mahatma Gandhi, was born on October 2, 1869. Because of his enormous sacrifices for India, he is sometimes referred to as the Father of the Nation. Along with guiding India toward freedom, he also served as an inspiration for several other nations’ independence efforts and human rights movements. Under his direction, the historical Non-Cooperation movement, the Dandi March, and the Quit India movement were all launched and he was killed on January 30, 1948, in New Delhi. He is one of India’s most prominent freedom fighters...</p>
    </section>

    <section>
        <h2>Jawaharlal Nehru</h2>
        <img src="https://assets.onecompiler.app/42pqvpa3v/42pqvktcj/Jnehru.jpg" alt="jnehru" width="500" height="300"
        <p>Born on November 14, 1889, Pandit Jawaharlal Nehru was Motilal Nehru and Swarup Rani Nehru’s child. Nehru was a well-known attorney and thinker, and he quickly rose to become one of the best politicians the country had ever seen. Nehru rose to be one of the most potent leaders in Indian politics after Gandhi’s endorsement in the 1930s. After much thought, Nehru accepted the India partition in 1947 and took oath as India’s first Prime Minister after independence. His birthday, November 14, is widely observed as Children’s Day in India. ..</p>
    </section>

    <section>
        <h2>Sardar Vallabh Bhai Patel</h2>
        <img src="https://assets.onecompiler.app/42pqvpa3v/42pqvktcj/Sardar_patel_(cropped).jpg" alt="sardar_patel_" height="500" width="300"
        <p>He was born on 31 October 1875 and died on 15 December 1950. Often renowned as the Iron Man of India & Bismarck of India, he was famous for his courage and heroism from a very young age. Sardar Patel, who was at first a lawyer, quit his job to battle for India’s freedom from British rule. He was elected India’s Deputy Prime Minister when the country gained independence...</p>
    </section>

    <section>
        <h2>Bhagat Singh</h2>
        <img src="https://assets.onecompiler.app/42pqvpa3v/42pqvktcj/Bhagat_Singh_1929.jpg" alt="Bhagat_Singh_1929" heigh="500" width="300"
        <p>This revolutionary hero was born into a Sikh family in the undivided Punjab state and retained his family’s history and nationalism until his death. In 1928, he was implicated in a plan to kill James Scott, a British police superintendent, in retaliation for the death of Lala Lajpat Rai. The scheme fell apart when they accidentally murdered another young police officer, and Singh escaped to Lahore to avoid prosecution. The British sentenced this renowned Indian freedom fighter to death and hanged him at the young age of 23...</p>
    </section>

    <section>
        <h2>Lal Bahadur Shastri</h2>
        <img src="https://assets.onecompiler.app/42pqvpa3v/42pqvktcj/Lal_Bahadur_Shastri_(from_stamp).jpg" alt="Lal_Bahadur_Shastri_" height="500" width="300"
        <p>Lal Bahadur Shastri was born on October 2, 1904, in Mughalsarai, Uttar Pradesh, and passed away on January 11, 1966. He was awarded the title of “Shastri” Scholar when he completed his education at Kashi Vidyapeeth. He spent a significant amount of time in prison since he was a freedom fighter for independence. Before being chosen as India’s second Prime Minister in 1964, he served as Home Minister during the country’s independence. In 1965, he invented the catchphrase “Jai Jawan, Jai Kisan,” which is still used today...</p>
    </section>

    <section>
        <h2>Ram Prasad Bismil</h2>
        <></https:>
        <img src="https://assets.onecompiler.app/42pqvpa3v/42pqvktcj/Pandit_Ram_Prasad_Bismil.jpg" alt="Pandit_Ram_Prasad_Bismil" height="500" width="300"
        <p>With a desire for liberty and a revolutionary spirit permeating each inch of his body, Bismil was among the most notable Indian freedom fighters who opposed British colonialism and enabled the country to breathe the fresh air of freedom after centuries of the fight against the imperial forces. He was hanged to death at the Gorakhpur Jail...</p>
    </section>

    <section>
        <h2>Subhas Chandra Bose</h2>
        <></https:>
        <img src="https://assets.onecompiler.app/42pqvpa3v/42pqvktcj/Netaji_Subhas_Chandra_Bose.jpg" alt="Netaji_Subhas_Chandra_Bose" height="500" width="300"
        <p>The freedom fighter, Subhas Chandra Bose, sometimes referred to as Netaji was born in the state of Orissa. He could have been compelled to flee England for India in 1921 due to the Jallianwala Bagh Massacre. He joined the (INC) Indian National Congress and took part in the movement for civil disobedience. Furthermore, he eventually formed the Azad Hind Government and Azad Hind Army...</p>
    </section>

    <section>
        <h2>Rani Laxmi Bai</h2>
        <></https:>
        <img src="https://assets.onecompiler.app/42pqvpa3v/42pqvktcj/Rani_of_jhansi.jpg" alt="Rani_of_jhansi" height="500" width="300"
        <p>Jhansi ki Rani (Rani Laxmi Bai), one of the top women liberation warriors whose contributions will never be forgotten or disregarded, is India’s top ten independence fighters. Rani Lakhsmi Bai, Queen of Jhansi, was born in 1828. She had a significant role in the 1857 Indian independence struggle...</p>
    </section>
</main>

<footer>
    <p>&copy; 2024 Perthhh Collection</p>
</footer>
</body> </html>