astoller
Member
Posted 5 years ago #
Hi
Can you explain why the 1st tag below appears as the actual page description even though it is surrounded by comment tags.The 2nd tag I wanted to be the actual description, but it does not appear that way on the browsed page.
Thanks
Arthur
<!--<meta name="description" content="Party costumes: Hen parties, stag nights and all outfit for all events" />
<meta name="description" content="Games for Hen parties and stag nights"/>
even though it is surrounded by comment tag...
Well, actually, it is not surrounded.
It has only the opening tag and missing the closing tag: -->
It should be:
<!--<meta name="description" content="Party costumes: Hen parties, stag nights and all outfit for all events" />-->
astoller
Member
Posted 5 years ago #
So as it stands, is the tag then considered to be a real description tag?
You don't read carefully!
You did NOT comment it out. Period. You thought so, but you didn't.
So as it stands, is the tag then considered to be a real description tag?
As it stands, with half of a comment, the entire page is invalid and you're lucky it displays at all.
Invalid page code has undefined behavior. It's not considered to be a real anything unless it's valid in the first place.