4 Program to demonstrate SPAN tag in HTML

A <span> element which is used to color a part of a text:

Program:

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <title>HTML SPAN TAG</title>

</head>

<body>

    <p>Follow Atharva Agrawal on Instagram <span style="color:blue">@theatharvagrawal</span> Thank You!</p>

</body>

</html>


Output:

Span Tag in HTML

Previous
Next Post »