CSS/HTML noob question.

Soldato
Joined
8 Jun 2005
Posts
8,435
Location
United Kingdom
Hi all, first time posting in this area of the forums!

Very simple question, what does <!-- mean? I'm learning CSS/HTML and I'm currently looking at it as an internal style sheet, I've just come across this within some code at the beginning and end of with -->

Just after a quick explanation!

Thanks
 
<!-- comments for HTML go in here -->

<!DOCTYPE *whatever*> is the standard the webpage is built to, and not a comment left by the author.
 
<!-- comments for HTML go in here -->

Thanks, I thought as much.

<!DOCTYPE *whatever*> is the standard the webpage is built to, and not a comment left by the author.

That's a bit random, I'm not sure why you've said that? I know what Doctype is, but I'm not sure of the reason you've said it.

If you could elaborate further, I'd appreciate it. Like I said, I'm just starting out learning this stuff so any help is appreciated.

Thanks
 
Since you were learning I thought I'd stick it in there. Since it is probably the most random bit of HTML code you will see and unless you knew what it was...
 
Since you were learning I thought I'd stick it in there. Since it is probably the most random bit of HTML code you will see and unless you knew what it was...

Ahh, it was one of the first things we covered at one of the uni lectures :)
 
Back
Top Bottom