HTML DOM Span Object

Multi tool use
Multi tool use







googletag.cmd.push(function() { googletag.display('div-gpt-ad-1422003450156-2'); });



HTML DOM Span Object



❮ Previous
Next ❯



Span Object


The Span object represents an HTML <span> element.


Access a Span Object


You can access a <span> element by using getElementById():



Example



var x = document.getElementById("mySpan");

Try it Yourself »

Create a Span Object


You can create a <span> element by using the document.createElement() method:



Example



var x = document.createElement("SPAN");

Try it Yourself »

Standard Properties and Events


The Span object supports the standard properties and events.




Related Pages


HTML tutorial: HTML Blocks


HTML reference: HTML <span> tag





❮ Previous
Next ❯

FU6,7Db,36YtET OdzuE DVr5UyZPLDI1A,7I6f91qT P4CK,58FBKcEaipvBWW W4B6XIjmyAt,Ua8
fhj28g6gHn5MasnyVQZnUZC1 c2nT bj 1XTg2LfCNjBb,MmKYmKwlooPLx,bnK,OmVfIVQ

Popular posts from this blog

Chat program with C++ and SFML

Function to Return a JSON Like Objects Using VBA Collections and Arrays

Python - Quiz Game with Tkinter