How to use RDFa “vocab” within XHTML
问题 I'm trying to get this (simple) webpage done for my assignment and it needs to pass through http://validator.w3.org/ It also needs to use RDFa. However no matter what I do, the RDFa vocab never gets passed by the validator. Here's what I got: <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML+RDFa 1.0//EN' 'http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd'> <body vocab="http://xmlns.com/foaf/0.1/"> What am I doing wrong? 回答1: The vocab attribute is defined in RDFa 1.1, but with your current DOCTYPE, you