HTML DOM Paragraph Object

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





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



HTML DOM Paragraph Object



❮ Previous
Next ❯


Paragraph Object


The Paragraph object represents an HTML <p> element.


Access a Paragraph Object


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



Example



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

Try it Yourself »

Create a Paragraph Object


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



Example



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

Try it Yourself »

Paragraph Object Properties






Property Description
align
Not supported in HTML5. Use
style.textAlign instead.


Sets or returns the value of the align attribute of the paragraph

Standard Properties and Events


The Paragraph object also supports the standard properties and events.



Related Pages


HTML tutorial: HTML Paragraphs


HTML reference: HTML <p> tag





❮ Previous
Next ❯

Popular posts from this blog

California

New York City

CNN