插入符 (有时称为“文本光标”)是屏幕上显示的,用于指示文本输入将插入的位置的指示器。
大多数用户界面使用细长的,会闪烁的垂直线或字符大小的方框来表示插入符,但这可能也会有所不同。文本中的这一点称为 插入点 。单词“插入符”将文本插入点与鼠标光标区分开来。
在 Web 上,插入符用于表示
<input>
和
<textarea>
元素中的插入点,以及任何设置了
contenteditable
属性,从而允许用户编辑元素的内容的元素。
<input type="password">
<input type="search">
<input type="date">
、
<input type="time">
以及
<input type="datetime-local">
<input type="number">
、
<input type="range">
<input type="email">
、
<input type="tel">
以及
<input type="url">
<textarea>
contenteditable
属性的元素