473,320 Members | 1,865 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

W3C Validator error (HTML 5 )

nomad
664 Expert 512MB
Hello Everyone:

I'm trying to clean up my code HTML5 and CSS3 and I get this error when I check it with W3C Validator

Error Line 153, Column 43: Duplicate ID bullet_format.
<div class="redbullets" id="bullet_format">✉
Warning Line 140, Column 43: The first occurrence of ID bullet_format was here.
<div class="redbullets" id="bullet_format">

Not sure how to solve this problem. Any help would be great. Thanks
nomad


HTML5 Code
Expand|Select|Wrap|Line Numbers
  1. About Us</strong>  - Overview</h2>
  2. <p><span class="main_text_bold">Light Laboratory Inc.</span> Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat</p>
  3.  
  4. <div class="redbullets" id="bullet_format">
  5.   <ul>
  6.     <li>Ut wisi enim ad minim veniam, quis nostrud exerci tation</li>
  7.     <li>Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie<br>
  8.     </li>
  9.   </ul>
  10. </div>
  11. <p class="main_text_bold">More than just a test lab. </p>
  12. <p> TRE aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. </p>
  13.  
  14.  
  15. <div class="redbullets" id="bullet_format">
  16.   <ul>
  17.     <li>Lvel illum dolore eu feugiat nulla facilisis at</li>
  18.     <li>Duis autem vel eum iriure dolor in hendrerit in
  19.     </li>
  20.   </ul>
  21. </div>
  22.  
css3 code
Expand|Select|Wrap|Line Numbers
  1. /*********************format bullet***************************/
  2.  
  3. #bullet_format {
  4.     width: 735px;
  5.     margin-top: 20px;
  6.     padding-top: 2px;
  7.     padding-left: 15px;
  8. }
  9. #bullet_format_services {
  10.     width: 400px;
  11.     margin-top: 1px;
  12.     padding-top: 5px;
  13.     padding-left: 15px;
  14. }
  15.  
  16. /*********************red bullet***************************/
  17. .redbullets{
  18.     font-family:Verdana, Geneva, sans-serif;
  19.     font-size:12px;
  20.     line-height: 20px;
  21.     margin-top: 5px;
  22.     margin-left: 5px;
  23.     width: auto;
  24.     padding-left: 5px;
  25. }
  26. .redbulletsbold{
  27.     font-family:Verdana, Geneva, sans-serif;
  28.     font-size:12px;
  29.     font-weight: bold;
  30.     line-height: 18px;
  31. }
  32. .redbullets ul{list-style-image:url(../images/bullet_red.gif);
  33.     margin-left: 10px;
  34.     margin-top: 10px;
  35. }
  36.  
  37. .redbullets a{ font-family:Verdana, Geneva, sans-serif;text-decoration:none; color:#0067a4; }
  38. .redbullets a:hover{font-family:Verdana, Geneva, sans-serif;text-decoration:none; color:#333; }
  39.  
Nov 20 '13 #1

✓ answered by Nepomuk

IDs in HTML (or XML) are supposed to be unique, so every id can only identify one element. So if you use IDs in the CSS you'll only be able to apply the CSS settings to that one element. It's probably better to use classes instead.

2 1552
Nepomuk
3,112 Expert 2GB
IDs in HTML (or XML) are supposed to be unique, so every id can only identify one element. So if you use IDs in the CSS you'll only be able to apply the CSS settings to that one element. It's probably better to use classes instead.
Nov 21 '13 #2
nomad
664 Expert 512MB
Thanks Nepomuk for the info
Nov 21 '13 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: DU | last post by:
Hello fellow stylers, I don't understand the error report given by the W3C CSS validator: "Line: -1 unrecognized media screen, tv " I checked carefully and can't figure this one out. I...
3
by: Stephen Poley | last post by:
Could some kind soul explain the errors and warnings that the W3C CSS validator generates for page: http://www.atlis.nl/testsite/nl/ Results at: http://tinyurl.com/5pxqx The error "Invalid...
7
by: Jonathan N. Little | last post by:
When doing a final check on my stylesheets the CSS Validator flag lines like this one as an error: ADDRESS A { color: gold; } Error is: # Line: 31 Context : ADDRESS A Invalid number :...
22
by: Trevor Orton | last post by:
Hello, I'm having a slight problem using the W3C html validator and I've reviewed the FAQ's with no luck so hopefully someone here would be kind enough to point me in the right direction. I...
12
by: thomas_jedenfelt_1 | last post by:
Hi everyone, Is the W3C HTML Validator in error when it returns <br /> as valid for HTML 4.01 Strict doctype? In March 2004 , the Validator returned <br />, <hr /> and <img /> as invalid for...
3
by: TomB | last post by:
I'm getting an error from the W3C validator on one of my pages: http://validator.w3.org/check?uri=http%3A%2F%2Fdusk-metal.kicks-ass.org%2Fgbook_add.php However, according to the 4.1 specs...
3
by: Bob | last post by:
Hi all, I'm trying to validate my web site developed with ASP.NET using http://validator.w3c.org but I received this error message: .....there is no attribute "name". If I view the source...
5
by: Bob Cox | last post by:
I am getting the error: Invalid number : color fuchsia is not a color value : fuchsia from the W3C CSS validator, yet I am sure the same CSS validated ok previously. The offending CSS is: ...
3
by: darrel | last post by:
(apologies for the repost...I put this in the wrong newgroup the first time...) I have a text box that I have a custom validator attached to. I then have an image button that is set to NOT cause...
1
by: Harry Cho | last post by:
Hello Following code gives me error when I try to validate it from validator.w3.org. I copied this code from book and image file is in the same folder as html file. Help me out. <?xml version =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.