ul id="top-social" used twice on page causes error

1 reply · opened Jul 15, 2020

BbagginsJul 15, 2020

Hi. I am using <ul id="top-social"> twice on one webpage. When I run it on the W3C markup validation, it gives me this error. How to fix?

Error: Duplicate ID top-social.

From line 438, column 45; to line 438, column 64

      &lt;ul id="top-social"&gt;		

Warning: The first occurrence of ID top-social was here.

From line 319, column 57; to line 319, column 76

      &lt;ul id="top-social"&gt;
SSemicolon WebSTAFFJul 16, 2020

Hello,

Since Top Social is an HTML ID: #top-social, you can't use it twice on a Page. You will need to change all the occurrences of #top-social to .top-social in HTMl/CSS/JS Files.

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard