Question: can ids have spaces html?
Answer: id 's value must not contain whitespace (spaces, tabs etc.). ... In contrast to the class attribute, which allows space-separated values, elements can only have one single ID value. Note: Using characters except ASCII letters, digits, '_' , '-' and '. ' may cause compatibility problems, as they weren't allowed in HTML 4.