span

I. Description

The span html element is used when you want an element which does not change the formatting of the elements or text within it. Span is typically used when you simply want to encapsulate some text with an element so you can manipulate that element with Javascript.

II. Examples

<!DOCTYPE html>
<html>
    <head>
        <title>Example Page</title>
    </head>
    <body>
        <h1>Example HTML Page</h1>
        <p>This is a sample html document which contains a <span>span</span> element.</p>
    </body>
</html>