Can the HTML meta keyword include spaces in between words?

Viewed 1482

Can the HTML meta keyword include spaces in between words like so?:

<meta name="keywords" content="keyword one, keyword two, keyword three" />

(notice the space between "keyword" and the number, that's the space in talking about)

1 Answers

The spec doesn't restrict spaces. Here's the section on comma separated tokens [emphasis mine]:

A set of comma-separated tokens is a string containing zero or more tokens each separated from the next by a single U+002C COMMA character (,), where tokens consist of any string of zero or more characters, neither beginning nor ending with space characters, nor containing any U+002C COMMA characters (,), and optionally surrounded by space characters.

In fact, the main example on w3schools includes spaces between keywords.

Related