Tribute Page - Build a Tribute Page

so as per the instructions for the img and image i have written the css but still it is showing error. could anyone please help me

header {
    text-align: center;
    padding: 0;
    font-weight: bold;

body {
    font-family: Georgia, serif;
    background-color: #FFE0B5;

.bold {
    font-weight: bolder;

/* Ensure the img element is displayed as a block */
img {
    display: block;

/* Set max-width to 100% for the image */
#image {
    max-width: 100%;
    height: auto; /* Ensure the image height adjusts proportionally */
    margin: 0 auto; /* Center the image horizontally within its parent */

figure {
    background-color: #FFF2D7;
    text-align: center; /* Center the content horizontally */

figcaption {
    text-align: center;
    font-weight: 600;

h2 {
    text-align: center;

Challenge Information:

Tribute Page - Build a Tribute Page

Can you post your HTML as well ?

sure; here is my .html file

<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="style.css">
    <title>Tribute-Nikola Tesla</title>
    <!--Name of the inventer-->
    <main id="main">
    <h1 id="title">NIKOLA TESLA</h1>
    The person who developed the modern day electricity system i.e <span class="bold"><em>Alternating Current Motor</em> </span>

   <!--Picture and a quote for the inventer-->
   <figure id="img-div">
    <img  id="image" src="./images/OIP.jpeg" alt="nikola">
    <figcaption id="img-caption" class="img-caption">"If you want to find the secrets of the universe, think in terms of energy, frequency and vibration." <a id="tribute-link" href="#" target="_blank"> Nikola Tesla</a></figcaption>

   <!--Major points of the life of the inventer-->
   <section id="tribute-info">
   <section class="early-years">
    <h2>His early-years of life.</h2>
        <li>Tesla was born in 1856 Smiljan, Croatia, then part of the Austro-Hungarian Empire.</li>
        <li>In 1863 Tesla's brother Daniel was killed in a riding accident.</li>
        <li>The shock of the loss unsettled the 7-year-old Tesla, who reported seeing visions-the first signs of his lifelong mental illnesses.</li>

        <li>Tesla studied math and physics at the Technical University of Graz.</li>
        <li>He also studied philosophy at the University of Prague.</li>
<h2>Moving in New-york and leaving Edison's company</h2>
   <section class="early-twenties">
        <li>In the year 1882, while on a walk, he came up with the idea for a brushless AC motor.</li>
           <li>Making the first sketches of its rotating electromagnets in the sand of the path.</li> 
            <li>Later that year he moved to Paris and got a job repairing direct current(DC) power plants with the Continental Edison Company.</li>
           <li>Two years after he immigrated to the United States.</li> 


   <section class="Tesla&Edison">
    <h2>Tesla & Edison</h2>
        <li>Tesla arrived in New York in 1884 and was hired as an engineer at Thomas Edison's Manhattan headquarters.</li>
        <li> He worked there for a year, impressing Edison with his diligence and ingenuity. </li>
        <li>At one point Edison told Tesla he would par $50,000 for an improved design for his DC dynamos.</li>
        <li>After months of experimentation, Tesla presented a solution and asked for money. Edison demurred, saying, "Tesla, you don't understand American humor."</li>
        <li>Tesla quit soon after.</li>

    <h2>Achievements as an inventer.</h2>
        <li>In 1890s he invented electric oscillators, meters, improved lights and high-voltage transformer known as Tesla coil. </li>
        <li>He also experimented with X-rays, gave short-range demonstrations of radio communication two years before Guglielmo Marconi.</li>
        <li>Tesla and Westinghouse lit partnered with General Electric to install AC generators at Niagara Falls. creating first modern power station.</li>
   <!--Failures, Death, Legacy.-->

    <h2>His failures, death and legacy</h2>
        <li>In 1895 his New York lab burned, destroying year's worth of notes and equipment.</li>
        <li>He lived his last decades in a New York hotel, working on new inventions as his energy and mental health faded.</li>
        <li>His obsession with number three and fastidious washing were dismissed as the eccentricities of genius.</li>
        <li>He spent his final years feeding and he claimed, communicating with city's pigeons.</li>
        <li>He died in his room on January 7, 1943.</li>
        <li>The AC system he championed and improved remains the global standard for power transmission.</li>

   <br><br> <br> <p>"We all make mistakes, and it is better to make them before we begin." Nikola Tesla</p>

Hey there!
Your CSS file name and href value is not same. You have missing a latter s. Therefore your css styling isn’t applied.

1 Like

yeah, got it thank you :slight_smile:


That’s good, Your welcome.

1 Like