HTML <ins> tagS2C Home   « HTML <ins> tag

Definition

The <ins> tag is used to define editorial insertions in text.

Example


  <p>Today is <del>Sunday</del><ins>Monday</ins>.</p>

Today is SundayMonday.

Attributes

The following attributes can be used with the <ins> tag.


<ins> Specific Attributes
Attribute Value Description Example
citeurlSpecifies a URL containing information regarding the insertion.

<ins cite="../pages/insertions.html">Editorial insertion</ins>
datetimeA valid date string with optional timeSpecifies the date and time (optional) of the editorial deletion.

<ins datetime="2020-02-20">Editorial insertion</ins>
<ins> Global Attributes
Attribute Description Example
Common
classSpecifies a classname for the element allowing you to apply the style of the predefined class to the content.

<ins class="name">Editorial Insertion Text</ins>
idSpecifies a unique id for the element allowing you to apply the style of the predefined id to the content.

<ins id="name">Editorial Insertion Text</ins>
styleSpecifies an inline style for the element allowing you to apply the style to the contentt.

<ins style="color:red;">Editorial Insertion Text</ins>
titleSpecifies an inline style for the element allowing you to apply the style to the content.

<ins title="Content info">Editorial Insertion Text</ins>
Keyboard
accesskeySpecifies a keyboard shortcut to associate with the element.

<ins accesskey="a">Editorial Insertion Text</ins>
tabindexSpecifies a tab order for the element.

<ins tabindex="1">Editorial Insertion Text</ins>
Language
dirSpecifies the directional flow of the content.

<!-- The text will flow from left to right -->
<ins dir="ltr">Editorial Insertion Text</ins>
<!-- The text will flow from right to left -->
<ins dir="rtl">Editorial Insertion Text</ins>
langSpecifies a language code for the content of the element.

<ins lang="en">Editorial Insertion Text</ins>
spellcheckSpecifies an inline style for the element allowing you to apply the style to the contentt.

<!-- Valid values true and false. -->
<!-- Default inherited / browser specific. -->
<ins spellcheck="true">Editorial Insertion Text</ins> 
translateSpecifies an inline style for the element allowing you to apply the style to the content.

<!-- Valid values yes and no. -->
<!-- Default yes. -->
<ins translate="no">Editorial Insertion Text</ins> 
Miscellaneous
contenteditableSpecifies whether the content of the element is editable.

<!-- Valid values true and false. -->
<!-- Default inherited. -->
<ins contenteditable="true">Editorial Insertion Text</ins> 
draggableSpecifies whether the element is draggable.

<!-- Valid values true and false. -->
<!-- Default browser specific. -->
<ins draggable="true">Editorial Insertion Text</ins>
hiddenSpecifies whether the element is not yet, or no longer, relevant.

<!-- Valid values an empty string or hidden -->
<ins hidden>Editorial Insertion Text</ins> 
<ins hidden="hidden">Editorial Insertion Text</ins> 
<ins> Event Attributes
Attribute Description Example
Document Element
oncopyThe script to be run when the user copies the content of an element.

 <!-- Executes go() function -->
<ins oncopy="go()">Editorial Insertion Text</ins> 
oncutThe script to be run when the user cuts the content of an element.

 <!-- Executes go() function -->
<ins oncut="go()">Editorial Insertion Text</ins>
onpasteThe script to be run when the user pastes some content into an element.

 <!-- Executes go() function -->
<ins onpaste="go()">Editorial Insertion Text</ins>
Drag and Drop
ondragThe script to be run when an element is dragged.

 <!-- Executes go() function -->
<ins ondrag="go()">Editorial Insertion Text</ins>
ondragendThe script to be run when an element has stopped being dragged.

 <!-- Executes go() function -->
<ins ondragend="go()">Editorial Insertion Text</ins>
ondragenterThe script to be run when an element has been dragged to a valid drop target.

 <!-- Executes go() function -->
<ins ondragenter="go()">Editorial Insertion Text</ins>
ondragleaveThe script to be run when an element leaves a valid drop target.

 <!-- Executes go() function -->
<ins ondragleave="go()">Editorial Insertion Text</ins>
ondragoverThe script to be run when an element is being dragged over a valid drop target.

 <!-- Executes go() function -->
<ins ondragover="go()">Editorial Insertion Text</ins>
ondragstartThe script to be run at the start of a drag operation.

 <!-- Executes go() function -->
<ins ondragstart="go()">Editorial Insertion Text</ins>
ondropThe script to be run when a dragged element is being dropped.

 <!-- Executes go() function -->
<ins ondrop="go()">Editorial Insertion Text</ins>
Form
onblurThe script to be run when the element loses focus.

 <!-- Executes go() function -->
<ins onblur="go()">Editorial Insertion Text</ins>
onchangeThe script to be run when object changed and attempt to leave field.

 <!-- Executes go() function -->
<ins onchange="go()">Editorial Insertion Text</ins>
oncontextmenuThe script to be run when a context menu is triggered.

 <!-- Executes go() function -->
<ins oncontextmenu="go()">Editorial Insertion Text</ins>
onfocusThe script to be run when the element gets focus.

 <!-- Executes go() function -->
<ins onfocus="go()">Editorial Insertion Text</ins>
oninputThe script to be run when an element gets user input.

 <!-- Executes go() function -->
<ins oninput="go()">Editorial Insertion Text</ins>
oninvalidThe script to be run when an element is invalid.

 <!-- Executes go() function -->
<ins oninvalid="go()">Editorial Insertion Text</ins>
onresetThe script to be run when a dragged element is being dropped.

 <!-- Executes go() function -->
<ins onreset="go()">Editorial Insertion Text</ins>
onselectThe script to be run when some or all of the contents of an object are selected.

 <!-- Executes go() function -->
<ins onselect="go()">Editorial Insertion Text</ins>
onsubmitThe script to be run when a form is submitted.

 <!-- Executes go() function -->
<ins onsubmit="go()">Editorial Insertion Text</ins>
Keyboard
onkeydownThe script to be run when an element is in focus and keyboard key is pressed down.

 <!-- Executes go() function -->
<ins onkeydown="go()">Editorial Insertion Text</ins>
onkeypressThe script to be run when an element is in focus and keyboard key is pressed down and released.

 <!-- Executes go() function -->
<ins onkeypress="go()">Editorial Insertion Text</ins>
onkeyupThe script to be run when an element is in focus and keyboard key is released.

 <!-- Executes go() function -->
<ins onkeyup="go()">Editorial Insertion Text</ins>
Media
onabortThe script code to be run on abort.

 <!-- Executes go() function -->
<ins onabort="go()">Editorial Insertion Text</ins>
oncanplayThe script to be run when a file has buffered enough so it is ready to start playing.

 <!-- Executes go() function -->
<ins oncanplay="go()">Editorial Insertion Text</ins>
oncanplaythroughThe script to be run when a file can be played all the way to the end without further need of buffering.

 <!-- Executes go() function -->
<ins oncanplaythrough="go()">Editorial Insertion Text</ins>
oncuechangeThe script to be run when the cue changes when using the track element.

 <!-- Executes go() function -->
<ins oncuechange="go()">Editorial Insertion Text</ins>
ondurationchangeThe script to be run when the length of the media is changed.

 <!-- Executes go() function -->
<ins ondurationchange="go()">Editorial Insertion Text</ins>
onemptiedThe script to be run when a media resource element suddenly becomes empty, usually due to an error.

 <!-- Executes go() function -->
<ins onemptied="go()">Editorial Insertion Text</ins>
onendedThe script to be run when the media has reach the end.

 <!-- Executes go() function -->
<ins onended="go()">Editorial Insertion Text</ins>
onloadeddataThe script to be run when media data is loaded and playback can start.

 <!-- Executes go() function -->
<ins onloadeddata="go()">Editorial Insertion Text</ins>
onloadedmetadataThe script to be run when metadata has been loaded.

 <!-- Executes go() function -->
<ins onloadedmetadata="go()">Editorial Insertion Text</ins>
onloadstartThe script to be run whenthe media resource has started loading.

 <!-- Executes go() function -->
<ins onloadstart="go()">Editorial Insertion Text</ins>
onpauseThe script to be run when the media resource has been paused.

 <!-- Executes go() function -->
<ins onpause="go()">Editorial Insertion Text</ins>
onplayThe script to be run when the media resource starts playback.

 <!-- Executes go() function -->
<ins onplay="go()">Editorial Insertion Text</ins>
onplayingThe script to be run when when playback has already begun.

 <!-- Executes go() function -->
<ins onplaying="go()">Editorial Insertion Text</ins>
onprogressThe script to be run when the browser is fetching the media data.

 <!-- Executes go() function -->
<ins onprogress="go()">Editorial Insertion Text</ins>
onratechangeThe script to be run when the playback rate changes.

 <!-- Executes go() function -->
<ins onratechange="go()">Editorial Insertion Text</ins>
onseekedThe script to be run when the seeking attribute is set to false indicating that seeking has finished.

 <!-- Executes go() function -->
<ins onseeked="go()">Editorial Insertion Text</ins>
onseekingThe script to be run when the seeking attribute is set to true indicating that seeking is currently active.

 <!-- Executes go() function -->
<ins onseeking="go()">Editorial Insertion Text</ins>
onstalledThe script to be run when the browser is unable to continue fetching media data.

 <!-- Executes go() function -->
<ins onstalled="go()">Editorial Insertion Text</ins>
onsuspendThe script to be run when media data has stopped before being completely loaded.

 <!-- Executes go() function -->
<ins onsuspend="go()">Editorial Insertion Text</ins>
ontimeupdateThe script to be run when the media resources current playback position has changed.

 <!-- Executes go() function -->
<ins ontimeupdate="go()">Editorial Insertion Text</ins>
onvolumechangeThe script to be run when the volume has changed or been muted.

 <!-- Executes go() function -->
<ins onvolumechange="go()">Editorial Insertion Text</ins>
onwaitingThe script to be run when the media resource has paused but is expected to resume.

 <!-- Executes go() function -->
<ins onwaiting="go()">Editorial Insertion Text</ins>
Mouse
onclickThe script to be run when when a mouse is clicked on an element.

 <!-- Executes go() function -->
<ins onclick="go()">Editorial Insertion Text</ins>
ondblclickThe script to be run when a mouse is double clicked on an element.

 <!-- Executes go() function -->
<ins ondblclick="go()">Editorial Insertion Text</ins>
onmousedownThe script to be run when he mouse button is pressed down while the cursor is over an element.

 <!-- Executes go() function -->
<ins onmousedown="go()">Editorial Insertion Text</ins>
onmousemoveThe script to be run when the mouse button is moved.

 <!-- Executes go() function -->
<ins onmousemove="go()">Editorial Insertion Text</ins>
onmouseoutThe script to be run when the mouse cursor moves off an element.

 <!-- Executes go() function -->
<ins onmouseout="go()">Editorial Insertion Text</ins>
onmouseoverThe script to be run when the mouse cursor moves over an element.

 <!-- Executes go() function -->
<ins onmouseover="go()">Editorial Insertion Text</ins>
onmouseupThe script to be run when the mouse button is released while the cursor is over the element.

 <!-- Executes go() function -->
<ins onmouseup="go()">Editorial Insertion Text</ins>
onwheelThe script to be run when the mouse wheel rolls up or down over an element.

 <!-- Executes go() function -->
<ins onwheel="go()">Editorial Insertion Text</ins>
Scroll
onscrollThe script code to be run when the scrollbar of an element is being scrolled.

 <!-- Executes go() function -->
<ins onscroll="go()">Editorial Insertion Text</ins> 
Window - NONE