Language

HTML Span Tag


The <span> tag is used to design small text. This tag does not change any size of the text by itself. The <span> tag can be easily styled with css. The example is shown using a little css.

HTML Span Image

Example

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <p>Lorem ipsum <span style="color:green;"> dolor sit amet </span> consectetur.</p>
</body>
</html>