HTML <span> tag
HTML <span> tag : Definition
• The HTML <span> tag is a generic inline container for phrasing content, which has no default rendering or meaning.
• The <span> element is used to easily style by CSS or manipulate with JavaScript using the class or id attribute.
Html <span> tag example
<!DOCTYPE html> <html> <head> <title>span Tag example</title> </head> <body> <p>I love you <span style="color:blue; font-weight:bold">mom</span> so much you are awesom and beautiful, you always <span style="color:green; font-weight:bold">guide</span> me to the right way.</p> </body> </html>
Output :
I love you mom so much you are awesom and beautiful, you always guide me to the right way.