Pagina Tributo - Crea una Tribute Page

  • Non corretto:L’elemento img dovrebbe avere una proprietà display con il valore block.

  • Non corretto:#image dovrebbe avere una proprietà max-width del 100%.

  • Non corretto:L’elemento #image dovrebbe essere centrato dentro l’elemento genitore.

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8"></meta>
  <meta name="viewport" content="width=device-width, initial-scale=1.0"></meta>
  <title id="title">Dr. Norman Borlaug</title>
  <link rel="stylesheet" href="sryles.css"></link>
  </head>
  <body>
    <h1>Dr. Norman Borlaug
      </h1>
      <p>The man who saved a billion lives </p>
    </body>
    <main id="main">
      <div id="img-div">
      <figure id="img-div">
        <img  id="image" src="https://www.google.com/search?q=dr+norman+borlaug&rlz=1C1CHZN_itIT997IT1000&sxsrf=ALiCzsbsQBb86TN9eucq9766_1wRqBVNBw:1672060232402&source=lnms&tbm=isch&sa=X&ved=2ahUKEwjNxMfhrZf8AhUhg_0HHbBoAkgQ_AUoAXoECAEQAw&biw=1536&bih=714&dpr=1.25#imgrc=q0HAuZC0Rra8-M" alt="Dr. Norman Borlaug">
       
        <figcaption id="img-caption" >Dr. Norman Borlaug, third from the left, trains biologists in Mexico on how to increase wheat yields - part of his life-long war on hunger.</figcaption>

        </figure>
        </div>
        <div >
          <h2 id="tribute-info">Here's a time line of Dr. Borlaug's life:
            </h2>
            <ul >
 <li>
   <b>1914</b> - Born in Cresco, Iowa</li> 
<li>
  <b>1933</b>- Leaves his family's farm to attend the University of Minnesota, thanks to a Depression era program known as the "National Youth Administration"</li> 
<li>
 <b> 1935</b> - Has to stop school and save up more money. Works in the Civilian Conservation Corps, helping starving Americans. "I saw how food changed them", he said. "All of this left scars on me."</li> 
<li>
  <b>1937</b> - Finishes university and takes a job in the US Forestry Service</li> 
<li>
  <b>1938</b> - Marries wife of 69 years Margret Gibson. Gets laid off due to budget cuts. Inspired by Elvin Charles Stakman, he returns to school study under Stakman, who teaches him about breeding pest-resistent plants.</li> 
<li>
<b>1941</b> - Tries to enroll in the military after the Pearl Harbor attack, but is rejected. Instead, the military asked his lab to work on waterproof glue, DDT to control malaria, disinfectants, and other applied science.</li> 
<li>
 <b> 1942</b> - Receives a Ph.D. in Genetics and Plant Pathology</li> 
 <li>
  <b>1944</b> - Rejects a 100% salary increase from Dupont, leaves behind his pregnant wife, and flies to Mexico to head a new plant pathology program. Over the next 16 years, his team breeds 6,000 different strains of disease resistent wheat - including different varieties for each major climate on Earth.</li> 
<li>
  <b>1945</b> - Discovers a way to grown wheat twice each season, doubling wheat yields
  </li> 
<li>
  <b>1953</b> - crosses a short, sturdy dwarf breed of wheat with a high-yeidling American breed, creating a strain that responds well to fertilizer. It goes on to provide 95% of Mexico's wheat.</li> 
<li>
  <b>1962</b> - Visits Delhi and brings his high-yielding strains of wheat to the Indian subcontinent in time to help mitigate mass starvation due to a rapidly expanding population</li> 
<li>
  <b>1970</b> - receives the Nobel Peace Prize</li> 
<li>
  <b>1983</b> - helps seven African countries dramatically increase their maize and sorghum yields
  </li> 
  <li>
   <b> 1984</b> - becomes a distinguished professor at Texas A&M University </li> 
<li>
   <b>2005</b> - states "we will have to double the world food supply by 2050." Argues that genetically modified crops are the only way we can meet the demand, as we run out of arable land. Says that GM crops are not inherently dangerous because "we've been genetically modifying plants and animals for a long time. Long before we called it science, people were selecting the best breeds."</li> 
<li>
   <b>2009</b> - dies at the age of 95.</li> 
              </ul>
      <p><i>"Borlaug's life and achievement are testimony to the far-reaching contribution that one man's towering intellect, persistence and scientific vision can make to human peace and progress."</i>

-- Indian Prime Minister Manmohan Singh</p>
      </div>

 
        If you have time, you should read more about this incredible human being on his 
        <a  id="tribute-link" target="_blank" href="https://it.wikipedia.org/wiki/Norman_Borlaug">Wikipedia entry.
           </main>
#img-caption{

width:400px;

}

h1 {

justify-content:center;

}

#image{

max-width: 100%;

height:auto;

display:block;

justify-content:center;

}

img {

max-width: 100%;

display: block;

justify-content: center;

}

ATTENZIONE

Il codice seed della sfida e/o la tua soluzione hanno superato la lunghezza massiama che possiamo importare dalla sfida.

Dovrai fare un passo in più in modo che il codice che hai scritto abbia un formato semplice da leggere.

Copia/incolla tutto il codice mostrato nell’editor della sfida da dove ti sei appena collegato.

Sostituisci queste due frasi con il codice copiato.
Si prega di lasciare la linea ``` sopra e la linea ``` sotto,
perché consentono al codice di disporsi correttamente nel post.

Informazioni del tuo browser:

Lo user agent è: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36

Sfida: Pagina Tributo - Crea una Tribute Page

Link alla sfida:

Hai pubblicato solo alcune sezioni del tuo codice css. Posta il codice html e css completo

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8"></meta>
  <meta name="viewport" content="width=device-width, initial-scale=1.0"></meta>
  <title id="title">Dr. Norman Borlaug</title>
  <link rel="stylesheet" href="sryles.css"></link>
  </head>
  <body>
    <h1>Dr. Norman Borlaug
      </h1>
      <p>The man who saved a billion lives </p>
    </body>
    <main id="main">
      <div id="img-div">
      <figure id="img-div">
        <img  id="image" src="https://www.google.com/search?q=dr+norman+borlaug&rlz=1C1CHZN_itIT997IT1000&sxsrf=ALiCzsbsQBb86TN9eucq9766_1wRqBVNBw:1672060232402&source=lnms&tbm=isch&sa=X&ved=2ahUKEwjNxMfhrZf8AhUhg_0HHbBoAkgQ_AUoAXoECAEQAw&biw=1536&bih=714&dpr=1.25#imgrc=q0HAuZC0Rra8-M" alt="Dr. Norman Borlaug">
       
        <figcaption id="img-caption" >Dr. Norman Borlaug, third from the left, trains biologists in Mexico on how to increase wheat yields - part of his life-long war on hunger.</figcaption>

        </figure>
        </div>
        <div >
          <h2 id="tribute-info">Here's a time line of Dr. Borlaug's life:
            </h2>
            <ul >
 <li>
   <b>1914</b> - Born in Cresco, Iowa</li> 
<li>
  <b>1933</b>- Leaves his family's farm to attend the University of Minnesota, thanks to a Depression era program known as the "National Youth Administration"</li> 
<li>
 <b> 1935</b> - Has to stop school and save up more money. Works in the Civilian Conservation Corps, helping starving Americans. "I saw how food changed them", he said. "All of this left scars on me."</li> 
<li>
  <b>1937</b> - Finishes university and takes a job in the US Forestry Service</li> 
<li>
  <b>1938</b> - Marries wife of 69 years Margret Gibson. Gets laid off due to budget cuts. Inspired by Elvin Charles Stakman, he returns to school study under Stakman, who teaches him about breeding pest-resistent plants.</li> 
<li>
<b>1941</b> - Tries to enroll in the military after the Pearl Harbor attack, but is rejected. Instead, the military asked his lab to work on waterproof glue, DDT to control malaria, disinfectants, and other applied science.</li> 
<li>
 <b> 1942</b> - Receives a Ph.D. in Genetics and Plant Pathology</li> 
 <li>
  <b>1944</b> - Rejects a 100% salary increase from Dupont, leaves behind his pregnant wife, and flies to Mexico to head a new plant pathology program. Over the next 16 years, his team breeds 6,000 different strains of disease resistent wheat - including different varieties for each major climate on Earth.</li> 
<li>
  <b>1945</b> - Discovers a way to grown wheat twice each season, doubling wheat yields
  </li> 
<li>
  <b>1953</b> - crosses a short, sturdy dwarf breed of wheat with a high-yeidling American breed, creating a strain that responds well to fertilizer. It goes on to provide 95% of Mexico's wheat.</li> 
<li>
  <b>1962</b> - Visits Delhi and brings his high-yielding strains of wheat to the Indian subcontinent in time to help mitigate mass starvation due to a rapidly expanding population</li> 
<li>
  <b>1970</b> - receives the Nobel Peace Prize</li> 
<li>
  <b>1983</b> - helps seven African countries dramatically increase their maize and sorghum yields
  </li> 
  <li>
   <b> 1984</b> - becomes a distinguished professor at Texas A&M University </li> 
<li>
   <b>2005</b> - states "we will have to double the world food supply by 2050." Argues that genetically modified crops are the only way we can meet the demand, as we run out of arable land. Says that GM crops are not inherently dangerous because "we've been genetically modifying plants and animals for a long time. Long before we called it science, people were selecting the best breeds."</li> 
<li>
   <b>2009</b> - dies at the age of 95.</li> 
              </ul>
      <p><i>"Borlaug's life and achievement are testimony to the far-reaching contribution that one man's towering intellect, persistence and scientific vision can make to human peace and progress."</i>

-- Indian Prime Minister Manmohan Singh</p>
      </div>

 
        If you have time, you should read more about this incredible human being on his 
        <a  id="tribute-link" target="_blank" href="https://it.wikipedia.org/wiki/Norman_Borlaug">Wikipedia entry.
           </main>
img{
  
  display: block;
  max-width: 100%;
  height:auto;
 margin-left: auto;
 margin-right:auto;
 justify-content:auto;

}
h1 {
justify-content:center;
}
  • Non corretto:L’elemento img dovrebbe avere una proprietà display con il valore block.

  • Non corretto:#image dovrebbe avere una proprietà max-width del 100%.

  • Non corretto:L’elemento #image dovrebbe essere centrato dentro l’elemento genitore.

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8"></meta>
  <meta name="viewport" content="width=device-width, initial-scale=1.0"></meta>
  <title id="title">Dr. Norman Borlaug</title>
  <link rel="stylesheet" href="sryles.css"></link>
  </head>
  <body>
    <h1>Dr. Norman Borlaug
      </h1>
      <p>The man who saved a billion lives </p>
    </body>
    <main id="main">
      <div id="img-div">
      <figure id="img-div">
        <img  id="image" src="https://www.google.com/search?q=dr+norman+borlaug&rlz=1C1CHZN_itIT997IT1000&sxsrf=ALiCzsbsQBb86TN9eucq9766_1wRqBVNBw:1672060232402&source=lnms&tbm=isch&sa=X&ved=2ahUKEwjNxMfhrZf8AhUhg_0HHbBoAkgQ_AUoAXoECAEQAw&biw=1536&bih=714&dpr=1.25#imgrc=q0HAuZC0Rra8-M" alt="Dr. Norman Borlaug">
       
        <figcaption id="img-caption" >Dr. Norman Borlaug, third from the left, trains biologists in Mexico on how to increase wheat yields - part of his life-long war on hunger.</figcaption>

        </figure>
        </div>
        <div >
          <h2 id="tribute-info">Here's a time line of Dr. Borlaug's life:
            </h2>
            <ul >
 <li>
   <b>1914</b> - Born in Cresco, Iowa</li> 
<li>
  <b>1933</b>- Leaves his family's farm to attend the University of Minnesota, thanks to a Depression era program known as the "National Youth Administration"</li> 
<li>
 <b> 1935</b> - Has to stop school and save up more money. Works in the Civilian Conservation Corps, helping starving Americans. "I saw how food changed them", he said. "All of this left scars on me."</li> 
<li>
  <b>1937</b> - Finishes university and takes a job in the US Forestry Service</li> 
<li>
  <b>1938</b> - Marries wife of 69 years Margret Gibson. Gets laid off due to budget cuts. Inspired by Elvin Charles Stakman, he returns to school study under Stakman, who teaches him about breeding pest-resistent plants.</li> 
<li>
<b>1941</b> - Tries to enroll in the military after the Pearl Harbor attack, but is rejected. Instead, the military asked his lab to work on waterproof glue, DDT to control malaria, disinfectants, and other applied science.</li> 
<li>
 <b> 1942</b> - Receives a Ph.D. in Genetics and Plant Pathology</li> 
 <li>
  <b>1944</b> - Rejects a 100% salary increase from Dupont, leaves behind his pregnant wife, and flies to Mexico to head a new plant pathology program. Over the next 16 years, his team breeds 6,000 different strains of disease resistent wheat - including different varieties for each major climate on Earth.</li> 
<li>
  <b>1945</b> - Discovers a way to grown wheat twice each season, doubling wheat yields
  </li> 
<li>
  <b>1953</b> - crosses a short, sturdy dwarf breed of wheat with a high-yeidling American breed, creating a strain that responds well to fertilizer. It goes on to provide 95% of Mexico's wheat.</li> 
<li>
  <b>1962</b> - Visits Delhi and brings his high-yielding strains of wheat to the Indian subcontinent in time to help mitigate mass starvation due to a rapidly expanding population</li> 
<li>
  <b>1970</b> - receives the Nobel Peace Prize</li> 
<li>
  <b>1983</b> - helps seven African countries dramatically increase their maize and sorghum yields
  </li> 
  <li>
   <b> 1984</b> - becomes a distinguished professor at Texas A&M University </li> 
<li>
   <b>2005</b> - states "we will have to double the world food supply by 2050." Argues that genetically modified crops are the only way we can meet the demand, as we run out of arable land. Says that GM crops are not inherently dangerous because "we've been genetically modifying plants and animals for a long time. Long before we called it science, people were selecting the best breeds."</li> 
<li>
   <b>2009</b> - dies at the age of 95.</li> 
              </ul>
      <p><i>"Borlaug's life and achievement are testimony to the far-reaching contribution that one man's towering intellect, persistence and scientific vision can make to human peace and progress."</i>

-- Indian Prime Minister Manmohan Singh</p>
      </div>

 
        If you have time, you should read more about this incredible human being on his 
        <a  id="tribute-link" target="_blank" href="https://it.wikipedia.org/wiki/Norman_Borlaug">Wikipedia entry.
           </main>
#img-caption{

width:400px;

}

h1 {

justify-content:center;

}

#image{

max-width: 100%;

height:auto;

display:block;

justify-content:center;

}

img {

max-width: 100%;

display: block;

justify-content: center;

}

Informazioni del tuo browser:

Lo user agent è: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36

Sfida: Pagina Tributo - Crea una Tribute Page

Link alla sfida:

I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

1 Like

Thank You very much!

1 Like