Computing is usually defined as the activity of using and developing computer technology, computer hardware and computer software. It is the computer-specific part of information technology.... , an HTML element indicates structure in an HTML
HTML
HTML, an Acronym and initialism of HyperText Markup Language, is the predominant markup language for Web pages. It provides a means to describe the structure of text-based information in a document?by denoting certain text as links, headings, paragraphs, lists, and so on?and to supplement that text with interactive forms, embedded '... document and a way of hierarchically arranging content. More specifically, an HTML element is an SGML
Standard Generalized Markup Language
The Standard Generalized Markup Language is an International Organization for Standardization Standard metalanguage in which one can define markup languages for documents.... element that meets the requirements of one or more of the HTML Document Type Definition
Document Type Definition
Document Type Definition is one of several SGML and XML schema languages, and is also the term used to describe a document or portion thereof that is authored in the DTD language.... s (DTDs). These elements have properties: both attributes and content, as specified (both allowable and required) according to the appropriate HTML DTD (for example, the HTML 4.01 strict DTD).
Computing is usually defined as the activity of using and developing computer technology, computer hardware and computer software. It is the computer-specific part of information technology.... , an HTML element indicates structure in an HTML
HTML
HTML, an Acronym and initialism of HyperText Markup Language, is the predominant markup language for Web pages. It provides a means to describe the structure of text-based information in a document?by denoting certain text as links, headings, paragraphs, lists, and so on?and to supplement that text with interactive forms, embedded '... document and a way of hierarchically arranging content. More specifically, an HTML element is an SGML
Standard Generalized Markup Language
The Standard Generalized Markup Language is an International Organization for Standardization Standard metalanguage in which one can define markup languages for documents.... element that meets the requirements of one or more of the HTML Document Type Definition
Document Type Definition
Document Type Definition is one of several SGML and XML schema languages, and is also the term used to describe a document or portion thereof that is authored in the DTD language.... s (DTDs). These elements have properties: both attributes and content, as specified (both allowable and required) according to the appropriate HTML DTD (for example, the HTML 4.01 strict DTD). Elements may represent headings, paragraphs, hypertext links, lists, embedded media, and a variety of other structures.
HTML, an Acronym and initialism of HyperText Markup Language, is the predominant markup language for Web pages. It provides a means to describe the structure of text-based information in a document?by denoting certain text as links, headings, paragraphs, lists, and so on?and to supplement that text with interactive forms, embedded '... (and their associated values)
some amount of content (characters and other elements)
an end tag (note: Empty elements should not have an end tag. It is optional for some others.)
Many HTML elements include attributes in their start tags, defining desired behavior or indicating additional element properties.
The end tag is optional for many elements; in a minimal case, an empty element has no content and requires no end tag. There are a few elements that are not part of any official DTDs, yet are supported by some browsers and used by some web pages. Such elements may be ignored or displayed improperly on browsers not supporting them.
Informally, HTML elements are sometimes referred to as "tags" (an example of synecdoche
Synecdoche
Synecdoche is a figure of speech in which:* a term denoting a part of something is used to refer to the whole thing , or* a term denoting a thing is used to refer to part of it , or... ), though many prefer the term tag strictly in reference to the semantic structures delimiting the start and end of an element.
The Extensible Hypertext Markup Language, or XHTML, is a markup language that has the same depth of expression as HTML, but also conforms to XML syntax.... is the successor to HTML 4.01; XHTML 1.0 supports the same elements as HTML 4 and in most cases valid XHTML 1.0 documents will be valid or nearly valid HTML 4 documents. XHTML 1.0 migrates HTML from its SGML underpinnings to an XML foundation. Accordingly, the discussion of elements within this article focuses on the final SGML based HTML, version 4.01 (unless noted otherwise). However, to the extent that XHTML 1.0 elements remain identical to the HTML 4.01 elements, the discussion remains applicable (see HTML
HTML
HTML, an Acronym and initialism of HyperText Markup Language, is the predominant markup language for Web pages. It provides a means to describe the structure of text-based information in a document?by denoting certain text as links, headings, paragraphs, lists, and so on?and to supplement that text with interactive forms, embedded '... for a discussion of the minor differences in content between XHTML 1.0 and HTML 4.01).
Head elements
Define a document title. This element is required in every HTML and XHTML document. Different user agents may make use of the title in different ways. For example:
Web browsers usually display it in a window's title bar
Title bar
In computing, the title bar consists of that part of a Window where the title of the window appears. Most graphical operating systems and window managers position the title bar at the top of the application software window as a horizontal bar.... when the window is open, and in the task bar when the window is minimized.
It may become the default filename when saving the page.
A search engine is an information retrieval designed to help find information stored on a computer system. The search results are usually presented in a list and are commonly called hits.... s' Web crawlers may pay particular attention to the words used in the title.
The title element must not contain any nested tags (that is, it cannot contain any other elements). Only one title element is permitted in a document.
In Information technology, a Uniform Resource Locator is a type of Uniform Resource Identifier that specifies where an identified resource is available and the mechanism for retrieving it.... for all relative href and other links in the document. Must appear before any element that refers to an external resource. HTML permits only one base element for each document. The base element has attributes, but no contents.
Specifies links to other documents, such as "previous" and "next" links, or alternate versions . A common use is to link to external stylesheet
Cascading Style Sheets
Cascading Style Sheets is a stylesheet language used to describe the presentation of a document written in a markup language. Its most common application is to style web pages written in HTML and XHTML, but the language can be applied to any kind of XML document, including Scalable Vector Graphics and XUL.... s, using the form
<link rel="stylesheet" type="text/css" href="url" title="description_of_style">
A less-common, but important, usage is to supply navigation hints consistently through use of microformats. Several common relationships are defined, that may be exposed to users through the browser interface rather than directly in the web page.
<link rel="next" href="url">
A document's head element may contain any number of link elements. The link element has attributes, but no contents.
Specifies a base font size, typeface, and color for the document. Used together with font elements. Deprecated
Deprecation
In computer software standards and documentation, the term deprecation is applied to software features that are superseded and should be avoided.... in favor of stylesheets.
Used to add scripts to the document. The script code may be typed literally between the script tags or may be given in a separate resource whose URL is specified with the script element's optional src attribute.
Cascading Style Sheets is a stylesheet language used to describe the presentation of a document written in a markup language. Its most common application is to style web pages written in HTML and XHTML, but the language can be applied to any kind of XML document, including Scalable Vector Graphics and XUL.... for the document, usually in the form
Cascading Style Sheets is a stylesheet language used to describe the presentation of a document written in a markup language. Its most common application is to style web pages written in HTML and XHTML, but the language can be applied to any kind of XML document, including Scalable Vector Graphics and XUL.... ) statements may be typed literally between the style tags or may be given in separate resources whose URLs are specified with @import directives of the form
;.
Used for including generic objects within the document header. Though rarely used within a head element, it could potentially be used to extract foreign data and associate it with the current document.
Meta element
Meta elements are HTML element or XHTML elements used to provide structured metadata about a Web page. Such elements must be placed as tags in the head section of an HTML or XHTML document....
Metadata is "data about other data", of any sort in any media. An item of metadata may describe an individual datum, or content item, or a collection of data including multiple content items and hierarchical levels, for example a database schema.... about a document, such as its author, publication date, expiration date, page description, keywords, or other information not provided through the other header elements and attributes. Because of their generic nature, meta elements specify associative key-value pairs
Associative array
An associative array is an abstract data type composed of a Collection of unique keys and a collection of values, where each key is associated with one value .... .
In one form, meta elements can specify HTTP headers which should be sent before the actual content when the HTML page is served from Web server to client: for example,
<meta http-equiv="foo" content="bar">
This specifies that the page should be served with an HTTP header called foo that has a value bar.
In the general form, a meta element specifies name and associated content attributes describing aspects of the HTML page. To prevent possible ambiguity, an optional third attribute, scheme, may be supplied to specify a semantic framework that defines the meaning of the key and its value: for example,
<meta name="foo" content="bar" scheme="DC">
In this example, the meta element identifies itself as containing the foo element, with a value of bar, from the DC or Dublin Core
Dublin Core
The Dublin Core metadata element set is a standard for cross-domain information Resource description. It provides a simple and standardised set of conventions for describing things online in ways that make them easier to find.... resource description framework
Resource Description Framework
The Resource Description Framework is a family of World Wide Web Consortium specifications originally designed as a metadata data model. It has come to be used as a general method for conceptual description or modeling, of information that is implemented in web resources; using a variety of syntax formats.... .
Inline elements
Inline elements cannot be placed directly inside the body element; they must be wholly nested within block-level elements (see Block elements, below).
General phrase elements
Emphasis (conventionally displayed in italics)
strong emphasis (conventionally displayed bold). An oral user agent may use different voices for emphasis.
A quotation containing only inline elements (for quotations containing block level elements see blockquote below). Quote elements may be nested. By the specification, the author should not include quotation marks. Rather, quotation marks — including nested quotation marks — should be rendered through stylesheet properties or the browser's default stylesheet. Practical concerns due to browser non-compliance may force authors to find work-arounds. The citeattribute gives the source, and must be a fully qualified URI
Uniform Resource Identifier
In Information technology, a Uniform Resource Identifier is a Character string of Character s used to Identifier or name a Resource on the Internet.... .
Note: within semantic HTML, the display of a lengthy inline quotation as an indented block should be handled through stylesheet presentation. One method is to use an XSLT to select quotation elements exceeding a certain length (in terms of characters or words, etc.) for indented block presentation. An alternative, using Cascading Stylesheets, requires some presentational markup to manually classify the element as a lengthy quotation. For example:
<q class='lengthy'>An inline quotation of significant length (say 25 words, for example) goes here...</q>.
A citation. Reference for a quote or statement in the document.
An abbreviation is a shortened form of a word or phrase. Usually, but not always, it consists of a letter or group of letters taken from the word or phrase.... , like abbr.
Similar to the abbr element, but contains an acronym, like HTML.
Computer code phrase elements
These elements are useful primarily for documenting computer code development and user interaction through differentiation of source code (<code>), source code variables (<var>), user input (<kbd>), and terminal output (<samp>).
A code snippet. Conventionally rendered in a monospace font: Code snippet.
Sample output (from a program or script)
Keyboard - text to be entered by the user
Variable
Special inline elements
Create subscript or superscript text: Equivalent CSS: or
Strikethrough is a typographical presentation of words with a horizontal line through the center of them. Here is an example.It signifies one of two meanings.... : Deleted text.
Inserted text. Often used to mark up replacement text for <del>'d text. Typically rendered underline
Underline
An underline, also called an underscore, is one or more horizontal lines immediately below a portion of writing. Single, and occasionally double , underlining was originally used in hand-written or typewriter documents to emphasise text.... d: Inserted text.
Note, both ins and del elements may be used as block elements: containing other block and inline elements. However, these elements must still remain wholly within their parent element to maintain a well-formed HTML document. For example deleting text from the middle of one paragraph across several other paragraphs and ending in a final paragraph would need to use three separate del elements. Two del elements would be required as inline element to indicate the deletion of text in the first and last paragraphs, and a third, used as a block element, to indicate the deletion in the intervening paragraphs.
The :isindex element requires server side support for indexing documents. Visually presents a one-line text input for keyword entry. When submitted, the query string
Query string
In World Wide Web, a query string is the part of a Uniform Resource Locator that contains data to be passed to web applications such as Common Gateway Interface programs.... is appended to the current URL
Uniform Resource Locator
In Information technology, a Uniform Resource Locator is a type of Uniform Resource Identifier that specifies where an identified resource is available and the mechanism for retrieving it.... and the document is displayed with these keywords highlighted. Generally if the server supports this feature it will add the isindex elements to documents without author intervention.
In computing, a hyperlink, usually shortened to link, is a directly followable reference within a hypertext document.The area from which the hyperlink can be activated is called its anchor; its target is what the link points to, which may be another location within the same page or document, another page or document, or a... with the href (hypertext reference) attribute set to a URL
Uniform Resource Locator
In Information technology, a Uniform Resource Locator is a type of Uniform Resource Identifier that specifies where an identified resource is available and the mechanism for retrieving it.... ; additionally the attribute title may be set to a hover box text, some informative text about the link:
In most graphical browsers, when the cursor hovers over the link, the cursor typically changes into a hand with a stretched index finger and the additional information pops up, not in a regular window, but in a special "hover box", usually similar to a Tooltip
Tooltip
The tooltip is a common graphical user interface element. It is used in conjunction with a cursor , usually a mouse pointer. The user hovers the cursor over an item, without clicking it, and a small "hover box" appears with supplementary information regarding the item being hovered over.... , which disappears when the cursor is moved away. Some browsers render alt text
Alt attribute
The alt attribute is used in HTML and XHTML documents to specify text that is to be rendering when the HTML element to which it is applied cannot be rendered.... the same way, though this is technically incorrect.
Alternatively (and sometimes concurrently), the element becomes an anchor with the name attribute set, which preceded by a number sign
Number sign
'Number sign' is a name for the symbol '#'; it is the preferred Unicode name for the code point associated with that glyph. The symbol is similar to the musical symbol called Sharp .... , or pound ' # ', and appended to the URL, acts as a link target in a URI scheme
URI scheme
In the field of computer networking, a URI scheme is the top level of the Uniform Resource Identifier naming structure. All URIs and absolute URI references are formed with a scheme name, followed by a Colon , and the remainder of the URI called the scheme-specific part.... (a "document fragment
Fragment identifier
In computer hypertext, a fragment identifier is a short Character string of character s that refers to a resource that is subordinate to another, primary resource.... "), typically causing a Web browser
Web browser
A Web browser is a application software which enables a user to display and interact with text, images, videos, music, games and other information typically located on a Web page at a website on the World Wide Web or a local area network.... to scroll directly to that point of the page. Any element can be made into an anchor by using the id attribute, so using <a name="foo"> is not necessary.
An image is an artifact, usually two-dimensional , that has a similar appearance to some subject —usually a physical object or a person.... with the src attribute. The required alt attribute
Alt attribute
The alt attribute is used in HTML and XHTML documents to specify text that is to be rendering when the HTML element to which it is applied cannot be rendered.... provides alternative text in case the image cannot be displayed. Alt is intended as alternative text, although Microsoft Internet Explorer
Internet Explorer
Windows Internet Explorer , commonly abbreviated to IE, is a series of graphical user interface web browsers developed by Microsoft and included as part of the Microsoft Windows line of operating systems starting in 1995.... renders it as a tooltip
Tooltip
The tooltip is a common graphical user interface element. It is used in conjunction with a cursor , usually a mouse pointer. The user hovers the cursor over an item, without clicking it, and a small "hover box" appears with supplementary information regarding the item being hovered over.... if no title is given; the title attribute is the tooltip text. It was proposed by Marc Andreessen.
In HTML and XHTML , an image map is a list of coordinates relating to a specific , created in order to hyperlink areas of the image to various destinations .... .
Specifies an area in the map.
Includes an object in the page of the type specified by the type attribute. This may be in any MIME
MIME
Multipurpose Internet Mail Extensions is an Internet standard that extends the format of electronic mail to support* Text in character sets other than ASCII... -type the Web browser understands, such as an embedded page, code to be handled by a plug-in such as Flash, a Java
Java (programming language)
Java is a programming language originally developed by James Gosling at Sun Microsystems and released in 1995 as a core component of Sun Microsystems' Java .... applet
Applet
An applet is a software component that runs in the context of another program, for example a web browser. An applet usually performs a very narrow function that has no independent use.... , a sound file, etc.
This element may only appear inside an object element. Using attributes such as name and value, each <param> sets a parameter for the object. Examples include width, height, font, background colour, etc, depending on what has been exposed in this way by the object's developers.
<embed>…</embed> (proprietary)
Calls a plug-in handler for the type specified by the type attribute. Used for embedding Flash files, sound files, etc. This is a proprietary Netscape
Netscape
Netscape Communications is a United States computer services company, best known for its web browser. The browser was once dominant in terms of Usage share of web browsers, but lost most of that share to Internet Explorer during the browser wars.... extension to HTML; <object> is the W3C standard method.
<noembed>…</noembed> (proprietary)
Specifies alternative content, if the embed cannot be rendered.
Includes a Java applet in the page. Deprecated; <object> is now preferred.
Span element
Span and div
In HTML and XHTML, span and div HTML element are used to describe content that cannot be properly described by other, more semantic tags....
Creates an inline logical division. This may be used to identify a part of the HTML page, for example so as to apply an id or class attribute, which can then be referenced from CSS
Cascading Style Sheets
Cascading Style Sheets is a stylesheet language used to describe the presentation of a document written in a markup language. Its most common application is to style web pages written in HTML and XHTML, but the language can be applied to any kind of XML document, including Scalable Vector Graphics and XUL.... or DOM
Document Object Model
The Document Object Model is a platform- and programming language-independent standard object model for representing HTML or XML documents as well as an Application Programming Interface for querying, traversing and manipulating such documents.... call. Like most HTML elements, span also supports inline CSS in its optional style attribute.
Block elements
Many HTML elements are designed for altering the semantic structure or meaning of a document. Some are block-level, but most are inline and can be included in the normal flow of text.
General block elements
Creates a paragraph, perhaps the most common block level element. The closing tag is not required in HTML, however is required for XHTML.
Contains quoted material when the quotation itself includes block level elements (for instance, quoting several paragraphs). The cite attribute may give the source, and must be a fully qualified Uniform Resource Identifier
Uniform Resource Identifier
In Information technology, a Uniform Resource Identifier is a Character string of Character s used to Identifier or name a Resource on the Internet.... . The blockquote element is often misunderstood. It is an element meant to contain quotations that are themselves block level. In other words, it contains a complete paragraph or many paragraphs. In HTML strict DTDs inline elements are prohibited from blockquote elements. For quotations not containing block level elements see the quote (q) element.
Inserts a horizontal rule. Horizontal rules can also be handled through the CSS properties.
Headings
Section headings at different levels. Use <h1> for the highest-level heading (the major sections), <h2> for the next level down (sub-section), <h3> for a level below that, and so on. The lowest level heading is <h6>.
Most web browsers will show <h1> as large bold text, and <h6> as small bold-faced text, but this can be overridden with CSS
Cascading Style Sheets
Cascading Style Sheets is a stylesheet language used to describe the presentation of a document written in a markup language. Its most common application is to style web pages written in HTML and XHTML, but the language can be applied to any kind of XML document, including Scalable Vector Graphics and XUL.... . The heading elements are not intended merely for creating large or bold text: they describe something about the document's structure and organization. Some programs use them to generate outlines and tables of contents.
Lists
Creates a definition list (consisting of definition terms paired with definitions). Can also be used to specify speakers and quoted text.
In HTML an ordered list .. is a HTML element#Lists for a list of items where each item is automatically prefixed by an indication of its position in the list....
Creates an ordered (enumerated) or unordered (bulleted) list. With ol, the type attribute can be used to specify the kind of ordering, but CSS gives more control: . The default is Arabic numbering. For ul, CSS can be used to specify the list marker: . The default marker is a disc.
Creates a list item in ordered and unordered lists.
Delimits a directory listing. Deprecated in favor of <ul>.
Creates a menu listing. Should be more compact than an <ul> list, but badly supported. Deprecated in favor of <ul>.
Tables
Creates a table
Creates a row in the table.
Creates a table header cell within a row or a column; contents are conventionally displayed bold and centered. An aural user agent may use a louder voice for these items.
Creates a table data cell within a row.
Specifies a column group in a table.
Specifies attributes for an entire column in a table.
Specifies a caption for the entire table.
Specifies the header part of a table. This section may be repeated by the user agent if the table is split across pages (in printing or other paged media).
Specifies the main part of a table.
Specifies the footer part of a table. Like <thead>, this section may be repeated by the user agent if the table is split across pages (in printing or other paged media)
Forms
These elements can be combined into a form or used separately as user-interface controls. Combined with a first-class javascript engine, these controls provide support for rich user interfaces.
HTML specifies the elements that make up a form, and the method by which it will be submitted. However, some form of script either server-side or client side must be used to process the user's input once it is submitted.
A webform on a web page allows a user to enter data that is sent to a Server for processing. Webforms resemble form because internet users fill out the forms using checkboxes, radio buttons, or menus.... .
Create a selection list, from which the user can select a single option. May be rendered as a dropdown list.
A radio button or option button is a type of graphical user interface elements of graphical user interfaces that allows the user to choose one of a predefined set of options.... . If multiple radio buttons are given the same name, the user will only be able to select one of them from this group.
Creates a general-purpose button. But it's advised to use <button> if possible (i.e. if the client supports it) which provides richer possibilities.
Creates a submit button.
Creates a button using an image. The image URL may be specified with the src tag.
Creates a reset button for resetting the form to default values.
Creates a one-line text input. The size attribute specifies the default width of the input in character-widths. Maxlength sets the maximum number of characters the user can enter (which may be greater than size).
Creates a variation of one-line text input. The only difference is that inputted text is masked: usually every character is shown as an asterisk or a dot. It should be noted, however, that the value is submitted to the server as clear text. So an underlying secure transport layer like HTTPS is needed if confidentiality is a concern.
In HTML, a file-select control is a component of a form with which a user can select a file from his local machine. When the form is submitted , the file is uploaded to the web server....
Is not visible in the rendered page, but allows a designer to maintain a copy of something that needs to be submitted to the server as part of the form. This may, for example, be data that this web user entered or selected on a previous form that needs to be processed in conjunction with the current form.
Creates a label for a form input (e.g. radio button). Clicking on the label fires a click on the matching input.
Create a multiple-line text area, the size of which is specified by cols and rows attributes. Text in between the tags appears in the text area when the page is loaded.
Other containers
Creates a block logical division. This may be used to identify a part of the HTML document, for example so as to apply an id or class attribute, which can then be referenced from CSS
Cascading Style Sheets
Cascading Style Sheets is a stylesheet language used to describe the presentation of a document written in a markup language. Its most common application is to style web pages written in HTML and XHTML, but the language can be applied to any kind of XML document, including Scalable Vector Graphics and XUL.... or DOM
Document Object Model
The Document Object Model is a platform- and programming language-independent standard object model for representing HTML or XML documents as well as an Application Programming Interface for querying, traversing and manipulating such documents.... calls. Like most HTML elements, div also supports inline CSS in its optional style attribute.
Creates pre-formatted text. Text within this element is typically displayed in a non-proportional font exactly as it is laid out in the file (see ASCII art
ASCII art
ASCII art is a 20th century art movement that utilizes computers for presentation and consists of pictures pieced together from the 95 printable character defined by the ASCII Standard from 1963 and ASCII compliant character sets with proprietary extended characters .... ). Whereas browsers ignore white space (for example, hard returns, carriage-returns, line-feeds, tabs, and repeated-spaces) for all of the other HTML elements, the pre element signals that this white space should be rendered as authored. With the CSS properties: , other elements can be presented in the same way. This element can contain any inline element except: image (img), object (object), big font size (big), small font size (small), superscript (sup), and subscript (sub).
Used to mark up contact information like address for the document or a section of it. Inline elements are the only permitted. Authors can use the break element br to insert a new line within this element.
IFrame
IFrame is an HTML element which makes it possible to embed an HTML document inside another HTML document.The size of the IFrame can be specified in the surrounding HTML page, so that the surrounding page can already be presented in the Web browser while the IFrame is still being loaded....
Includes another HTML document in the page. Although not formally deprecated in HTML 4.01, "The object element allows HTML authors to specify object for its presentation by a user agent [and] thus subsumes some of the tasks carried out by" iframe
Unlike an object element, an iframe (inline frame) element may be the "target" frame for links defined in other elements and it may be "selected" by a browser as the focus for printing, viewing HTML source etc.
The . Otherwise the content after the
The iframe element was not included in the version 1.1 XHTML specification, despite having never been formally deprecated. Those serving their web content as XHTML 1.1 must use the object element.
Frames
An HTML document may contain a header and a body or a header and a frameset, but not both. For frames the Frames DTD must be used.
Delimit the frameset. The frames layout is given by comma separated lists in the rows and cols attributes.
Delimit a single frame, or region, within the frameset. A different document linked with the src attribute appears inside.
Contains a normal <body> element with child elements that will appear in web browsers that don't support frames.
IFrame is an HTML element which makes it possible to embed an HTML document inside another HTML document.The size of the IFrame can be specified in the surrounding HTML page, so that the surrounding page can already be presented in the Web browser while the IFrame is still being loaded.... inside a normal HTML <body>, which embeds another HTML document. A similar effect can also be achieved using the object element. These approaches differ in some ways (World Wide Web Consortium
World Wide Web Consortium
The World Wide Web Consortium is the main international standards organization for the World Wide Web . It is arranged as a consortium where member organizations maintain full-time staff for the purpose of working together in the development of standards for the World Wide Web.... ).
On a web page, framing means that a website can be organized into HTML element#Frames. Each frame displays a different HTML document. Headers and sidebar menus do not move when the content frame is scrolled up and down.... .
Presentational markup
Official presentational markup
The use of presentational markup is discouraged. The equivalent CSS should be used instead. Deprecated elements are only valid in the Transitional and Frameset variants of HTML 4.01 and XHTML1.0. They are invalid in the Strict variants of HTML 4.01, XHTML1.0 and XHTML 1.1. <b>…</b> and <i>…</i> are invalid in the current draft of .
Creates a block-level centered division. May also center-align all text. Deprecated in favor of <div> or another element with centering defined using CSS.
Use boldface type. Equivalent CSS: or the conceptual replacement, the strong tag.
Use italic type. Equivalent CSS: or the conceptual replacement, the em (emphasis) tag.
Can specify the font color with the color attribute, typeface with the face attribute, and absolute or relative size with the size attribute.
Examples (all the examples are deprecated, use CSS equivalents if possible):
<font color="green">text</font> creates green text.
<font color="#1f4099">text</font> creates text with hexadecimal color
Web colors
Web colors are colors used in designing world wide web pages, and the methods for describing and specifying those colors.Authors of web pages have a variety of options available for specifying colors for elements of web documents.... #1f4099.
<font size="4">text</font> creates text with size 4. Sizes are from 1 to 7. The standard size is 3, unless otherwise specified in the <body> or other tags.
<font size="+1">text</font> creates text with size 1 bigger than the standard.. <font size="-1">text</font> is opposite.
<font face="Courier">text</font> makes text with Courier font.
Equivalent CSS for font attributes:
<font size="N"> corresponds to (the HTML specification does not define the relationship between size N and unit-size Y, nor does it define a unit).
<font color="red"> corresponds to
<font face="Courier"> corresponds to
Unofficial presentational markup
These are unofficial presentational elements that may not be supported in all browsers.
The blink element is a non-standard presentational HTML element that indicates to a user agent that the page author intends the content of the element to blink .... (unofficial)
Causes text to blink. Can be done with CSS where supported:
The marquee tag is a non-standard HTML Markup element type which causes text to scroll up, down, left or right. The tag was first introduced in early versions of Microsoft's Internet Explorer, and was compared to Netscape's blink element, as a proprietary non-standard extension to the HTML standard with usability problems.... (unofficial)
Creates scrolling text. No equivalent with CSS; use scripting instead.
<blackface>…</blackface> (unofficial)
Supported only in WebTV browsers, generates extra bold lettering. Can be done with CSS where supported: ; with some fonts (such as Arial
Arial
Arial, sometimes marketed as Arial MT, is a sans-serif typeface and computer font packaged with Microsoft Windows, other Microsoft computer software applications, Apple Computer Mac OS X, and many PostScript computer printers.... or Gill Sans
Gill Sans
Gill Sans is a Sans-serif#Classification sans-serif typeface designed by Eric Gill.The original design appeared in 1926 when Douglas Cleverdon opened his own bookshop in his home town of Bristol, where Eric Gill painted the fascia over the window in sans-serif capitals that would be later be known as Gill Sans.... ), using "black" or "ultra bold" variants are more effective.
<shadow>…</shadow> (unofficial)
Supported only in WebTV browsers, generates a shadow underneath text. It is supported in CSS3, via the property text-shadow.
<nobr>…</nobr> (unofficial)
Causes text to not return at end of line. Can be done with CSS:
<wbr> (unofficial)
Adds an optional line break the browser may use if required for wrapping. It performs the same function as zero width space (HTML entity ​).
HTML comment
Encloses a comment. This is an SGML construct and not limited to HTML, so it may appear anywhere in the document, even before the DTD or after </html>. (However, placing comments – or indeed any characters except for whitespace – before the DTD will throw Internet Explorer 6 into quirks mode
Quirks mode
Quirks mode refers to a technique used by some web browsers for the sake of maintaining backward compatibility with web pages designed for older browsers, instead of strictly complying with World Wide Web Consortium and Internet Engineering Task Force standards in standards mode.... ). None of its enclosed contents are rendered. For compatibility with some pre-1995 browsers, the contents of <style> and <script> elements are still sometimes surrounded by comment delimiters.
HTML comment tags do not nest: the text "<!--A <!--B <!--C -->" is one single comment, not 3 being nested. Similarly, the coding "<!--Xbegin<!--Y-->Xend-->" will yield the text "Xend-->" since the comment ended after "Y" and did not nest.