I have a web page which delivers templates to applications on external servers, so they can run in the same page environment.
Now I'd like to put html comments as placeholders in the head title tag like this:
<html>
<head>
<title><!--placeholder-->Main Site Name</title>
</head>
<body></body>
</html>
Is that syntactically correct and would search engines ignore the comment?
Is that syntactically correct
Yes. You can put a comment anywhere that isn't between a pair of <
and >
.
You could have tested this for yourself by using a validator.
would search engines ignore the comment
The should do … but there are too many search engines to test this comprehensively and discussions about how search engines behave is off-topic.