html5 - Does the title tag have content? -
from point of view, content has come defined 2 separate things in html:
1) of information between open , closed body tags visible on webpage.
2) visible on webpage placed between any open , closed tags.
this may seem knit-picky, it's important when teaching concept of html content -- believe in establishing , holding consistent definitions when teaching computer programming terminology.
is number 1 correct? -- in case <title>
not have content. or number 2 correct? -- in case <title>
have content.
"content" in context of html not subjective. lucky enough have a spec defines everything, there's no "point of view" had. the spec defines every element's content model, defined "a normative description of content must included children , descendants of element."
3.2.4 content models
each element defined in specification has content model: description of element's expected contents. html element must have contents match requirements described in element's content model. contents of element children in dom, except
template
elements, children in template contents (a separatedocumentfragment
assigned element when element created).
the spec dictates <title>
element's content model is
content model:
nothing more, , nothing less.
Comments
Post a Comment