Share on Google+Share on Google+

HTML5 span element, Example of <span> tag of HTML5.

Advertisement
Introduction:In this section, you will see the use <span> tag. The <span> tag supports in both HTML5 and HTLM4.01

HTML5 span element, Example of <span> tag of HTML5.

Introduction:

In this section, you will see the use <span> tag. The <span> tag supports in both HTML5 and HTLM4.01. It is used for grouping inline elements. It is nothing without global attributes.
OR
The <span> tag is use for specifying a section in a document.

Declaration Syntax :

Declaration syntax of <span> in HTML5.

                           <span>............</span>

Example of <span> in HTML5:

Code:
Span_Tag.html
<!doctype html >
<html>
<head><title>Title of document</title></head>
<body>
<h2>Example of span tag in HTML5.</h2>
This site contains many quality <span style="color:#CC99FF">Java,<br>
JSP Tutorials, Hibernate Tutorials, Struts Tutorials,<br>
JSF Tutorials, RMI, MySQL Tutorials, Spring Tutorials,<br>
source codes</span> and links to other java resources. We have<br>
large number of links to the tutorials on java which <br>
will help you learn java in better way. You will find <br>
these links very useful.
</body>
</html>
Output:

Download this code

Difference Between HTML5 and HTML4.01:

None.

Advertisements

Advertisement

Posted on: September 14, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.