在<body>
中,受控词汇可以按如下方式初始化:
<!DOCTYPE html>
<html
lang="en"
xml:lang="en"
xmlns="http://www.w3.org/1999/xhtml"
>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title></title>
</head>
<body prefix="
bibo: http://purl.org/ontology/bibo/
cc: http://creativecommons.org/ns#
dc: http://purl.org/dc/terms/
foaf: http://xmlns.com/foaf/0.1/
schema: http://schema.org/
">
采用类似的方法在 中使用受控词汇表是否可以接受(并且是一种良好的编程实践)<head>
?例如:
<!DOCTYPE html>
<html
lang="en"
xml:lang="en"
xmlns="http://www.w3.org/1999/xhtml"
>
<head prefix="
bibo: http://purl.org/ontology/bibo/
cc: http://creativecommons.org/ns#
dc: http://purl.org/dc/terms/
foaf: http://xmlns.com/foaf/0.1/
schema: http://schema.org/
">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta dc:author content="fname_lname" />
<meta schema:dateCreated content="yy-mm-dd" />
<meta bibo:Website href="http://www.example.com" />
<link foaf:Person href="https://plus.google.com/u/0/_Google_mbox_string_/about" rel="publisher" />
<title></title>
</head>