F
Florent
Hi,
We are having a small discussion about tags in html.
would I be right in saying that the ONLY allowed syntax is
....
<my_tag attrib="name"> and </my_tag>
....
To be more precise, I want to know,
Is these legal html tags "<my_tag>" and "< my_tag >" or are some browsers
forgiving when it comes to the above, (and for closing could I do "< /
my_tag >"?).
Because if both "<my_tag>" and "< my_tag >" are legal/accepted then how
would I enter something like,
....
<my_tag> Hello World this < is allowed in html </my_tag>
....
or even an invalid "<" and more subtle case where it might look like a tag,
(look for the "<is" with no space)
....
<my_tag> Hello World this <is allowed in html </my_tag>
....
Because if some browsers are been too lax then is this fair to say that the
code above might be displayed one way in one browser and differently in
another.
Many thanks for your views. Would there be a site to dispute/verify my
assumption?
Florent
We are having a small discussion about tags in html.
would I be right in saying that the ONLY allowed syntax is
....
<my_tag attrib="name"> and </my_tag>
....
To be more precise, I want to know,
Is these legal html tags "<my_tag>" and "< my_tag >" or are some browsers
forgiving when it comes to the above, (and for closing could I do "< /
my_tag >"?).
Because if both "<my_tag>" and "< my_tag >" are legal/accepted then how
would I enter something like,
....
<my_tag> Hello World this < is allowed in html </my_tag>
....
or even an invalid "<" and more subtle case where it might look like a tag,
(look for the "<is" with no space)
....
<my_tag> Hello World this <is allowed in html </my_tag>
....
Because if some browsers are been too lax then is this fair to say that the
code above might be displayed one way in one browser and differently in
another.
Many thanks for your views. Would there be a site to dispute/verify my
assumption?
Florent