473,563 Members | 2,732 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

W3C Validator error (HTML 5 )

nomad
664 Recognized Expert Contributor
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="redbulle ts" id="bullet_form at">✉
Warning Line 140, Column 43: The first occurrence of ID bullet_format was here.
<div class="redbulle ts" id="bullet_form at">

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
2 1560
Nepomuk
3,112 Recognized Expert Specialist
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 Recognized Expert Contributor
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
4085
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 created a reduced demo page. It seems that I can not mention more than 1 media as media
3
2998
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 number : borderParse Error - " may be due to something I've done, but I'm blowed if I can see what. While the warning "property display doesn't...
7
3348
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 : colorgold is not a color value : gold Strangely if I change the style sheet to:
22
5679
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 recently validated my site's css and the bulk of the html pages via the W3C validator but was forced to use the file upload option because the 'Validate...
12
45289
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 HTML 4.01 Strict. Liam Quinn said "You can't mix HTML and XHTML. You need to choose one or the other syntax."
3
1609
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 maxlenght *is* a valid attribute for the form element. Or am I missing something here? Kind regards
3
1544
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 code of my web page from IE browser, there is no TAG Name in the web form page..... I set in the web.config also:
5
2161
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: a:active {
3
1613
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 validation (as there are other validators on the page I don't want triggered). The event handler for my imageButton is set up to validate the...
1
3671
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 = "1.0" encoding = "utf-8"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html...
0
7885
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6250
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5484
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3642
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1198
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
923
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.