Use Text IDs to wrap text with an id for reference later

Text Ids add a span with an id around the text you specify it so you can reference a range of text later.

For example, let’s say you are displaying information to your visitor in a text field and that information will change.

Name: John Smith

Then you can add text to find and an id to use around it.

image

Before:

<div id="text1">
	<span>Name: John Smith</span>
</div>

After:

<div id="text1">
	<span>Name: <span id="username">John Smith</span></span>
</div>

One reason for wrapping a word or phrase with a span with an ID is so you can refer to it later with JavaScript using document.getElementById(“spanID”).

Separate each text id name and value pair with a semicolon.

Text IDs are case sensitive.