FAQ: Accessibility - Semantic HTML Elements

This community-built FAQ covers the “Semantic HTML Elements” exercise from the lesson “Accessibility”.

Paths and Courses
This exercise can be found in the following Codecademy content:

FAQs on the exercise Semantic HTML Elements

There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply (reply) below.

If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

Please, is it possible to have the hidden.css folder?

Please post a link to this exercise and we’ll see what’s up.

How did you achieve the gradient dividers? I can’t seem to find it anywhere in the CSS or HTML document?

Link to the exercise here

  • {
    margin: 0px;
    border: 0;
    font-family: ‘Space Mono’;
    color: white;
    background-color: #0e0e0e;
    margin: auto;
    }

h1 {
border-bottom: 1px solid white;
}

h2 {
font-size: 32px;
font-weight: bold;
font-style: normal;
font-stretch: normal;
letter-spacing: 0px;
text-align: center;
}

h4 {
text-align: center;
margin-bottom: 10px;
}

img {
margin: 0px 40px 40px 40px;
width: 30%;
height: auto;
}

p {
margin: 0 6%;
}

nav ul li,
#nav ul li {
padding: 0px 25px;
}

footer,
#footer {
min-width: 620px;
max-width: 980px;
}

footer li,
#footer li {
padding: 0px 5px;
}

.container {
max-width: 980px;
min-width: 625px;
}

.p-container {
margin: 0px 6%;
}

.timeline {
height: 10px;
width: 100%;
z-index: 1;
}

.date-square {
margin: 0px 16%;
}

#early .timeline {
background-image: linear-gradient(to right, #ff3f3f, #ffcc3f);
}

#middle .timeline {
background-image: linear-gradient(to right, #f2ff3f, #3fe9ff);
}

#late .timeline {
background-image: linear-gradient(to right, #3fa9ff, #b03fff);
}

#current .timeline {
background-image: linear-gradient(to right, #e03fff, #ff3f3f);
z-index: 10;
}

#early h2 {
border-top: 4px solid #ff5e40;
width: 200px;
padding-top: 10px;
margin-top: 20px;
}

#middle h2 {
border-top: 4px solid #f1ff40;
width: 200px;
padding-top: 10px;
}

#late h2 {
border-top: 4px solid #40a9ff;
width: 200px;
padding-top: 10px;
}

#current h2 {
border-top: 4px solid #df3fff;
width: 200px;
padding-top: 10px;
}