Tuesday 14 January 2014

span tag: example prog for span tag

The <span> element has no special meaning.
When used together with CSS, the <span> element can be used to set style attributes to parts of the text.

HTML Inline Elements

Inline elements are normally displayed without starting a new line.
Examples: <b>, <td>, <a>, <img>

Definition and Usage

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.
<! you can find the diff b/w div and span tags">
<html>
<head>

<title>Untitled Document</title>
<style type="text/css">

</style>
</head>

<body>
<h2>SR Eng..</h2>
<div>cse</div>
<div>ece</div>
<div>mech</div>
<h2> SR Eng </h2>
<span>cse</span>
  <span>ece</span>
  <span>mech</span>

</body>
</html>

No comments:

Post a Comment