span tag in html

The <span> tag is used to group inline-elements in a document.
The <span> tag provides no visual change by itself.
The <span> tag provides a way to add a hook to a part of a text or a part of a document.


<!DOCTYPE html>
<html>
<body>

<p>My mother has <span style="color:blue;font-weight:bold">blue</span> eyes and my father has <span style="color:darkolivegreen;font-weight:bold">dark green</span> eyes.</p>

</body>
</html>

Output:
My mother has blue eyes and my father has dark green eyes.

Comments

Popular posts from this blog

Introduction and Format of HTML

Headings In HTML

dfn tag in html