What does this mean

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hello, I am just learning HTML and looking at an existing page.

Comments are indicated by <!--  --->, right?

But sometimes you see stuff inside commments that seems to also *do*
something.  When or why is this?

For example, these two lines of code, what does that %movie signify?  It is
not just a comment, is it?   I tried taking it out and the page changed.

    <div id="div_<!--$movie['uid']-->" class="column"

Also, in something like that id="div_<!--$movie['uid']-->",  what determines
whether the characters inside the string are just characters, or whether
they refer to variable values?  Is it the dollar-sign that triggers a
reference to a variable?


Re: What does this mean

2012-10-01 19:09, Bint wrote:

Quoted text here. Click to load it

No, the common comment syntax is <!--  --> (your example has one "-" too
much, turning the construct to an invalid comment declaration).

Quoted text here. Click to load it

Mostly because they are not comments and not HTML at all but in some
data format from which HTML documents are generated. Using syntax that
matches HTML comments is somewhat odd, but part of the motivation is
that if such data gets accidentally transmitted to a browser as an HTML
document, the construct gets ignored.

Quoted text here. Click to load it

In terms of HTML, they are comments. But depending on server-side
software that processes data before sending an HTML document, it may
cause many things.

Yucca, http://www.cs.tut.fi/~jkorpela /

Re: What does this mean

Quoted text here. Click to load it

It just a comment for the Software,
not for use
Quoted text here. Click to load it

it's out of a or
For your %movie Software..

Now if you looking redo the HTML,
we you are viewing your movie in your web browser,
on your browser
in the Menu Bar
click View
Click Source  

and you will see it with out <!--$movie['uid']-->

Quoted text here. Click to load it

This post contains IPA phonetic symbols in Unicode.
Without proper rendering support,
you may see question marks, boxes,
or other symbols instead of Unicode characters.

User-agent: *
Disallow: /

Site Timeline