A <span> element which is used to color a part of a text:
Program:
Output:
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: