HTML - Tags - <span>

#122 of 147
span

 <html>
 <body>
     Your time zone is: <span id="timezone">Eastern</span>
 </body>
 </html>
 

The span element is a inline level container for child elements.

The span element allows a run of text to be styled using CSS, or accessed from JavaScript.

A live example:


Your timezone is Eastern

N of

Ads by Google


Ask a question, send a comment, or report a problem - click here to contact me.

© Richard McGrath