Tribute Page - Build a Tribute Page

Tell us what’s happening:
I’m not meeting these 3 requirements although I believe I’ve included them in my code; * You should have an a element with an id of tribute-link.

  • Failed:Your #tribute-link should have an href attribute and value.

  • Failed:Your #tribute-link should have a target attribute set to _blank

Your code so far

<!DOCTYPE html>
<html lang="en">
  <head>
    <title>Riad Al-Turk Tribute Page</title>
    <link rel="stylesheet" href="styles.css">
    <div id="tribute-link">
  </head>
  <body>
    <main id="main">
      <div id="main">
        <div id="title">
          <h1>Most Legendary Man in Syria</h1>
        </div>
        <div id="img-div">
          <img id="image" src="https://upload.wikimedia.org/wikipedia/en/1/1b/RiyadTurk.jpg" alt="Most Legendary Man in Syria">
          <figcaption id="img-caption">The Nelson Mandela of Syria</figcaption>
        </div>
        <div id="tribute-info">
          <h2>About him</h2>
          <p>Riad al-Turk (Arabic: رياض الترك, born 1930 in Homs) is a prominent Syrian opposition leader, former political prisoner for about 20 years in Syria, and supporter of democracy, who has been called "the Old Man of Syrian opposition."[1] He was secretary general of the Syrian Communist Party (Political Bureau) since its foundation in 1973 until 2005.</p>
          <p>Al-Turk joined the Syrian Communist Party while a student. He was imprisoned for the first time in 1952 shortly after finishing law school for opposing the military government that came to power in a coup. He was held for five months and tortured but never tried in court.[1] He later wrote articles for the party newspaper, Al-Nour, and became a leading party ideologue. He was imprisoned again in 1958 under Nasser for opposing the merger of Syria and Egypt in the United Arab Republic and held for sixteen months. Again he was tortured but not tried for any crime.[1]</p>
          <p>Turk had for some time been leading a faction within the Communist Party that demanded a more positive view of Arab nationalism, in opposition to Secretary-General Khalid Bakdash, who ruled the party with an iron fist. In 1972, Bakdash decided to merge the party into the National Progressive Front, a coalition of organizations allied with the ruling Arab Baath Socialist Party. Along with supporters on the radical wing of the party, Turk formed the Syrian Communist Party (Political Bureau), consolidating a split that had been apparent since the late 1960s. The SCP-Political Bureau initially negotiated with the government for terms of legalization and membership in the Front. However, it later took a strong opposition stance, especially from 1976 on after the Syrian intervention in favour of the Maronites right-wing government in the Lebanese Civil War. This led to repression of the party, which was stepped up at the beginning of the 1980s when the Hafez al-Assad government felt itself under increasing pressure from both Islamists and the secular opposition. Al-Turk was arrested and imprisoned on 28 October 1980 and held under very difficult conditions for almost 18 years.[2] He spent most of this period in solitary confinement and suffering regular torture. Based on interviews with al-Turk journalist Robin Wright reports he was "locked way in a windowless underground cell, about the length of his body or the size of a small elevator compartment, at an intelligence headquarters." Al-Turk was "never allowed out of his cell to exercise."</p>
        </div>
        <h3>
        <a id="tribute-link" href="https://en.wikipedia.org/wiki/Riad_al-Turk" target="_blank">Learn more about Syria</a>
        </h3>
  </div>
  </main>
</body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36 Edg/111.0.1661.54

Challenge: Tribute Page - Build a Tribute Page

Link to the challenge:

Post your entire html and css code formatted properly. Use the </> button in the editor for that purpose.

You can post code like this

Here is my code, sorry for not providing it earlier:

<!DOCTYPE html>
<html lang="en">
  <head>
    <title>Riad Al-Turk Tribute Page</title>
    <link rel="stylesheet" href="styles.css">
    <div id="tribute-link">
  </head>
  <body>
    <main id="main">
      <div id="main">
        <div id="title">
          <h1>Most Legendary Man in Syria</h1>
        </div>
        <div id="img-div">
          <img id="image" src="https://upload.wikimedia.org/wikipedia/en/1/1b/RiyadTurk.jpg" alt="Most Legendary Man in Syria">
          <figcaption id="img-caption">The Nelson Mandela of Syria</figcaption>
        </div>
        <div id="tribute-info">
          <h2>About him</h2>
          <p>Riad al-Turk (Arabic: رياض الترك, born 1930 in Homs) is a prominent Syrian opposition leader, former political prisoner for about 20 years in Syria, and supporter of democracy, who has been called "the Old Man of Syrian opposition."[1] He was secretary general of the Syrian Communist Party (Political Bureau) since its foundation in 1973 until 2005.</p>
          <p>Al-Turk joined the Syrian Communist Party while a student. He was imprisoned for the first time in 1952 shortly after finishing law school for opposing the military government that came to power in a coup. He was held for five months and tortured but never tried in court.[1] He later wrote articles for the party newspaper, Al-Nour, and became a leading party ideologue. He was imprisoned again in 1958 under Nasser for opposing the merger of Syria and Egypt in the United Arab Republic and held for sixteen months. Again he was tortured but not tried for any crime.[1]</p>
          <p>Turk had for some time been leading a faction within the Communist Party that demanded a more positive view of Arab nationalism, in opposition to Secretary-General Khalid Bakdash, who ruled the party with an iron fist. In 1972, Bakdash decided to merge the party into the National Progressive Front, a coalition of organizations allied with the ruling Arab Baath Socialist Party. Along with supporters on the radical wing of the party, Turk formed the Syrian Communist Party (Political Bureau), consolidating a split that had been apparent since the late 1960s. The SCP-Political Bureau initially negotiated with the government for terms of legalization and membership in the Front. However, it later took a strong opposition stance, especially from 1976 on after the Syrian intervention in favour of the Maronites right-wing government in the Lebanese Civil War. This led to repression of the party, which was stepped up at the beginning of the 1980s when the Hafez al-Assad government felt itself under increasing pressure from both Islamists and the secular opposition. Al-Turk was arrested and imprisoned on 28 October 1980 and held under very difficult conditions for almost 18 years.[2] He spent most of this period in solitary confinement and suffering regular torture. Based on interviews with al-Turk journalist Robin Wright reports he was "locked way in a windowless underground cell, about the length of his body or the size of a small elevator compartment, at an intelligence headquarters." Al-Turk was "never allowed out of his cell to exercise."</p>
        </div>
        <h3>
        <a id="tribute-link" href="https://en.wikipedia.org/wiki/Riad_al-Turk" target="_blank">Learn more about Syria</a>
        </h3>
  </div>
  </main>
</body>
</html>

I spot a couple of issues here.

You cannot have duplicate id names.

You wrote id="tribute-link" twice in your html

Once here

and once here

The tests are looking for the first instance of the id name.
You need to remove that div with the id of tribute link.

Also, it looks like you have duplicate ids here

As a side note, you are using a figcaption here

You should consider changing this div to be a figure element because figcaptions usually go inside there.

You can read more about it in the docs here

Hope that helps!

1 Like

It isn’t really a consideration as the only permitted parent is a <figure> element.


@Mamba Validate your HTML

https://validator.w3.org/nu/#textarea

Thank you so much, just removing the div with the id of tribute-link helped me pass the requirements. I appreciate the feedback a lot!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.