<strike> Tag. Not Supported in HTML5.


Definition and Usage

The <strike> tag is not supported in HTML5. Use CSS instead.

The <strike> tag were used to define strikethrough text. Use <del> instead.

<span>

The <span> tag is supported in all major browsers.


Definition and Usage

The <span> tag is used to group inline-elements in a document.

The <span> tag provides no visual change by itself.

The <span> tag provides a way to add a hook to a part of a text or a part of a  document.

Tip: When a text is hooked in a <span> element you can add styles to the content, or  manipulate the content with for example JavaScript.


Differences Between HTML 4.01 and HTML5

NONE


Global Attributes

The <span> tag also supports the Global attributes in HTML5.


Event Attributes

The <span> tag also supports the Global Event Attributes in HTML5

<source>

The <source> tag is supported in all major browsers.


Definition and Usage

The <source> tag is used to specify multiple media resources for media elements, such as <video> and <audio>.

The <source> tag allows you to specify alternative video/audio  files which the browser may choose from, based on its media type or codec  support.


Differences Between HTML 4.01 and HTML5

The <source> tag is new in HTML5.


Attributes

New : New in HTML5.

AttributeValueDescription
media   New media_query Specifies the type of media resource
src        New URL Specifies the URL of the media file
type     New MIME_type Specifies the MIME type of the media resource

 

Global Attributes

The <source> tag also supports the Global attributes in HTML5


Event Attributes

The <source> tag also supports the Global Event Attributes in HTML5.

<small>

The <small> tag is supported in all major browsers.


Definition and Usage

The <small> tag defines smaller text (and other side comments).


Differences Between HTML 4.01 and HTML5

Practically none. In HTML 4.01 the small element is displayed as smaller  text. In HTML5 the small element defines small text and other side comments, and is  displayed as smaller text.


Global Attributes

The <small> tag also supports the Global attributes in HTML5.


Event Attributes

The <small> tag also supports the Global Event Attributes in HTML5.

 <select>

The <select> tag is supported in all major browsers.


Definition and Usage

The <select> element is used to create a drop-down list.

The <option> tags inside the <select> element define the available options in  the list.


Differences Between HTML 4.01 and HTML5

HTML5 has some new attributes.


Tips and Notes

Tip: The <select> element is a form control and can be used in a form to collect user input.


Attributes

New : New in HTML5.

AttributeValueDescription
autofocus   New autofocus Specifies that the drop-down list should automatically get focus when the page loads
disabled disabled Specifies that the drop-down list should be disabled
form         New form_id Defines one or more forms the select field belongs to
multiple multiple Specifies that multiple items can be selected at once
name text Defines a name for the drop-down list
size number Defines the number of visible options in the drop-down list

Global Attributes

The <select> tag also supports the Global attributes in HTML5.


Event Attributes

The <select> tag also supports the Global Event Attributes in HTML5

<section>

The <section> tag is supported in all major browsers.


Definition and Usage

The <section> tag defines sections in a document. Such as chapters,  headers, footers, or any other sections of the document.


Differences Between HTML 4.01 and HTML5

The <section> tag is new in HTML5.


Global Attributes

The <section> tag also supports the Global attributes in HTML5.


Event Attributes

The <section> tag also supports the Global Event Attributes in HTML5.

<script>

The <script> tag is supported in all major browsers.


Definition and Usage

The <script> tag is used to define a client-side script, such as a  JavaScript.

The <script> element either contains scripting statements or it points to an  external script file through the "src" attribute.

Common uses for JavaScript are image manipulation, form validation, and dynamic  changes of content.


Differences Between HTML 4.01 and HTML5

The "type" attribute is required in HTML 4, but optional in HTML5.

The "async" attribute is new in HTML5.

Some HTML 4.01 attributes are not supported in HTML5.


Tips and Notes

Note: If the "src" attribute is present, the <script> element must be empty.

Note: There are several ways an external script can be executed:

  • If async="async": The script is executed asynchronously with the rest of the page (the script will be executed while the page continues the parsing)
  • If async is not present and defer="defer": The script is executed when the page has finished parsing
  • If neither async or defer is present: The script is fetched and executed immediately, before the browser  continues parsing the page

Attributes

New : New in HTML5.

AttributeValueDescription
async    New async Specifies that the script is executed asynchronously (only for external scripts)
defer defer Specifies that the script is executed when the page has finished parsing (only for external scripts)
type MIME_type Specifies the MIME type of the script
charset character_set Specifies the character encoding used in an external script file
src URL Specifies the URL of an external script file
xml:space preserve Not supported in HTML5

Global Attributes and Events

The <script> tag also supports the Global attributes in HTML5.


Event Attributes

NONE

<samp>

See <code>

The <em>, <strong>, <dfn>, <code>, <samp>, <kbd>, and <var> tags are all phrase tags. They are not deprecated, but it is possible to achieve richer effect with CSS.

<s>

The <s> tag is supported in all major browsers.


Definition and Usage

The <s> tag specifies text that is no longer correct, accurate or  relevant.

The <s> tag should not be used to define replaced or deleted text, use the <del>  tag to define replaced or deleted text.


Differences Between HTML 4.01 and HTML5

The <s> element is deprecated in HTML 4.01,  and used to define strikethrough text.

The <s> element is redefined in HTML5, and is now used to define text that is no  longer correct.


Global Attributes

The <s> tag also supports the Global attributes in HTML5


Event Attributes

The <s> tag also supports the Global Event Attributes in HTML5

<ruby>

The <ruby> tag is supported in all major browsers.


Definition and Usage

The <ruby> tag specifies a ruby annotation.

Ruby annotations are used for East Asian typography, to show the pronunciation of East Asian characters.

Use the <ruby> tag together with the <rt> and/or the <rp> tags: The <ruby> element consists of one or more characters that needs an  explanation/pronunciation, and an <rt> element that gives that information, and  an optional <rp> element that defines what to show for browsers that not support ruby  annotations.


Differences Between HTML 4.01 and HTML5

The <ruby> tag is new in HTML5.


Global Attributes

The <ruby> tag also supports the Global Attributes in HTML5.


Event Attributes

The <ruby> tag also supports the Event Attributes  in HTML5.