Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
HTML element
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Document head elements== {{glossary}} {{term|term=base |content= {{XMLElement|base|Base|end=no}} }} {{defn|1= Specifies a '''base URL''' for all relative <code>href</code> and other links in the document. Must appear before any element that refers to an external resource. HTML permits only one {{tag|base|o}} element for each document. This element has [[HTML attributes]], but no contents.}} {{defn|1= A development version of this element (as <code>BASE</code>) is mentioned in ''[[#HTMLTAGS|HTML Tags]]''; '''standardized''' in [[#HTML20|HTML 2.0]]; still current.}} {{term|term=basefont |content= {{XMLElement|basefont|Base Font|deprecated=1|end=no}} }} {{defn|1= Specifies a base font size, typeface, and color for the document. Used together with {{tag|font|o}} elements. [[Deprecation|Deprecated]] in favor of [[Style sheet (web development)|style sheets]].}} {{defn|1= '''Standardized''' in [[#HTML32|HTML 3.2]]; '''deprecated''' in [[#HTML401|HTML 4.0 Transitional]]; '''invalid''' in [[#HTML401|HTML 4.0 Strict]].}} {{term|term=isindex |content= {{XMLElement|isindex|Index|...|end=no|deprecated=1}} }} {{defn|1= {{code|lang=html|code=<isindex>}} could either appear in the document head or in the body, but only once in a document. See [[Fieldset|Forms]].}} {{term|term=link |content= {{XMLElement|link|Link|end=no}} }} {{defn|1= Specifies links to other documents, such as ''previous'' and ''next'' links, or alternate versions.<ref>[[#HTML401|HTML 4.01]] Β§12.3</ref> A common use is to link to external [[Cascading Style Sheets|style sheets]], using the form, {{code|lang=html|code=<link rel="stylesheet" type="text/css" href="url" title="description_of_style">}}.<ref>[[#HTML401|HTML 4.01]] Β§14.3.2</ref> A less-common, but important, usage is to supply navigation hints consistently through use of [[microformat]]s. Several common relationships are defined, that may be exposed to users through the browser interface rather than directly in the web page, such as: {{code|lang=html|code=<link rel="next" href="url">}}. A document's {{tag|head|o}} element may contain any number of {{tag|link|s}} elements. This element has [[HTML attributes]], but no contents. }} {{defn|1= <code>LINK</code> existed in ''[[#HTMLDRAFT12|HTML Internet Draft 1.2]]'', and was '''standardized''' in [[#HTML20|HTML 2.0]]; still current.}} {{term|term=meta |content= {{XMLElement|meta|Meta|end=no}} }} {{defn|1= {{Main|Meta element}} Can be used to specify additional [[metadata]] about a document, such as its author, publication date, expiration date, language, page title, page description, keywords, or other information not provided through the other header elements and [[HTML attributes]]. Because of their generic nature, {{tag|meta|s}} elements specify associative [[Associative array|key-value pairs]]. In general, a meta element conveys hidden information about the document. Several meta tags can be used, all of which should be nested in the head element. The specific purpose of each {{tag|meta|s}} element is defined by its attributes. Outside of [[XHTML]], it is often given without the slash ({{tag|meta|o}}), despite being a [[#Void elements|void element]]. In one form, {{tag|meta|s}} elements can specify [[HTTP]] headers which should be sent by a [[web server]] before the actual content. For example, {{code|lang=html|code=<meta http-equiv="foo" content="bar" />}} specifies that the page should be served with an HTTP header called <code>foo</code> that has a value <code>bar</code>. In the general form, a {{tag|meta|s}} element specifies <code>name</code> and associated <code>content</code> HTML attributes describing aspects of the HTML page. To prevent possible ambiguity, an optional third attribute, <code>scheme</code>, may be supplied to specify a semantic framework that defines the meaning of the key and its value. For example, in {{code|lang=html|code=<meta name="foo" content="bar" scheme="DC" />}} the {{tag|meta|s}} element identifies itself as containing the <code>foo</code> element, with a value of <code>bar</code>, from the DC or [[Dublin Core]] [[Resource Description Framework|resource description framework]]. }} {{defn|1= '''Standardized''' in [[#HTML20|HTML 2.0]]; still current.}} {{term|term=object |content= {{XMLElement|object|Object}} }} {{defn|1= Used for including generic objects within the document header. Though rarely used within a {{tag|head|o}} element, it could potentially be used to extract foreign data and associate it with the current document.}} {{defn|1= '''Standardized''' in [[#HTML401|HTML 4.0]]; still current.}} {{term|term=script |content= {{XMLElement|script|Script}} }} {{defn|1= Can act as a container for script instructions or link to an external script with the optional <code>src</code> attribute.<ref>[[#HTML401|HTML 4.01]] Β§18</ref> Also usable in the document body to dynamically generate either both block or inline content.}} {{defn|1= '''Standardized''' in [[#HTML32|HTML 3.2]]; still current.}} {{term|term=style |content= {{XMLElement|style|Style}} }} {{defn|1= Specifies a [[Cascading Style Sheets|CSS style]] for the document, usually in the form, {{code|lang=html|code=<style type="text/css"> ... </style>}}. Can either act as a container for style instructions or link to external style sheets β for example, in [[Cascading Style Sheets|CSS]], with <code>@import</code> directives of the form,<ref>[[#CSS1|CSS]] Β§1.1</ref> {{code|lang=html|code=<style> @import url; </style>}} }} {{defn|1= '''Standardized''' in [[#HTML32|HTML 3.2]]; still current.}} {{term|term=title |content= {{XMLElement|title|Title}} }} {{defn|1= This tag defines a document title. Required in every [[HTML]] and [[XHTML]] document. User agents may use the title in different ways. For example: * Web browsers usually display it in a window's [[title bar]] when the window is open, and (where applicable) in the [[task bar]] when the window is minimized. * It may become the default file-name when saving the page. * We can use <title> element only one time in a web page, and when we make another page then we will use again another <title> element with new title (do not take same name for all title tag in website, It can be problem for search engines). * [[Web search engine]]s' [[web crawler]]s may pay particular attention to the words used in the title. The {{tag|title|o}} element must not contain other elements, only text. Only one {{tag|title|o}} element is permitted in a document. }} {{defn|1= Existed in ''[[#HTMLTAGS|HTML Tags]]'', and was '''standardized''' in [[#HTML20|HTML 2.0]]; still current.}} {{glossary end}}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)