Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-03-2009, 04:07 PM   PM User | #1
amlania
New to the CF scene

 
Join Date: Oct 2009
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
amlania is an unknown quantity at this point
Class element not showing

Hi there,

In my HTML code all of the below is appearing in green when i preview the web page and view source........ i scroll down to the bottom and see the text is all green? But on the other pages it is all fine.

Does anyone know why?

This results in my copyright info at the bottom of the page not showing when i preview it in the browser (firefox).

Code:
 <!----------------body text events ends-------------------------->
        
        <br style="clear:both" />
        
            <div class="copyright">
           
   	    <a href="#" target="_blank">&copy;Copyright  | Website created by </a></div> <!--copyright ends-->
        
     
    
  </div><!-------------------main content ends----------------->
The HTML code of the other page below is working fine....

Code:
        </div><!--body text ******* ends-->
        
        <br style="clear:both" />
        
           <div class="copyright">
           
        	 <a href="#" target="_blank">&copy;Copyright  | Website created by 
        
        </a></div>
amlania is offline   Reply With Quote
Old 12-03-2009, 04:18 PM   PM User | #2
Apostropartheid
The Apostate


 
Apostropartheid's Avatar
 
Join Date: Oct 2007
Posts: 3,215
Thanks: 16
Thanked 265 Times in 263 Posts
Apostropartheid is on a distinguished road
You could try stopping that ridiculous way of doing comments. It's confusing the browser: it doesn't know whether it's a comment or not, because a well-formed HTML comment is like this: <!-- -->

If you want to make the comment stand out, use asterisks or something to pad it out, but not hyphens. I would, however, question the need to do this.
__________________
Blog | Twitter
Useful links: W3C HTML Validator | W3C CSS Validator | HTML 5 Guide
CF: HTML & CSS Resources/Tutorials Thread | HTML & CSS Posting Rules and Guidelines
Remember: no link, no code, no help!

Last edited by Apostropartheid; 12-03-2009 at 06:45 PM..
Apostropartheid is offline   Reply With Quote
Old 12-03-2009, 04:29 PM   PM User | #3
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Hello amlania,
Have a look at the links about validation in my sig below. Also the suggestion about validating often in the same sig.

These will help you.
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote
Reply

Bookmarks

Tags
code, css, green, html, text

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:20 AM.


Advertisement
Log in to turn off these ads.