
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 2202 Articles for HTML

346 Views
The HTML DOM Body object is associated with the HTML element. The attributes and their values set inside the body tag stay throughout the HTML document unless they are overridden by any of its child node.The body object can be used to access and manipulate these properties and their values.PropertiesFollowing are the properties for HTML DOM Body object −Note − The properties below are not supported in HTML5 .Use CSS instead −PropertyDesciptionaLinkTo set or return the active link color in a document.backgroundTo set or return the background image for the documentbgColorTo set or return the background color of the ... Read More

186 Views
The HTML DOM blockquote basically represent the HTML element . The element does not add any quotation marks unlike the tag. We can create and access properties with the help of the blockquote object.SyntaxFollowing is the syntax for −Creating the blockquote object −var x = document.createElement("BLOCKQUOTE");ExampleLet us see an example of the blockquote object −Live Demo Click on the below button to create a blockquote object CREATE function createBloc() { var x = document.createElement("BLOCKQUOTE"); var t = document.createTextNode("This is a random block quote.This is some sample text."); ... Read More

160 Views
The HTML DOM blockquote cite property is associated with the HTML element. This property is used to set or return the cite attribute of the quote. The cite property is useful for screen readers and not so much for normal user as it doesn’t have any visual effect on the web page. The cite property is used to set the source url of the quote.SyntaxFollowing is the syntax for −Setting the cite property −blockquoteObject.cite = URLHere, URL specifies the quotation location.ExampleLet us see an example for the blockquote cite property − Quote Here is a quote: ... Read More

146 Views
The HTML DOM Bdo object is associated with the element in HTML. The bdo stands for Bi-Directional Override. It is used for creating and accessing a bdo object. It has only one property “dir”. The text direction by default is left to right but can be overridden with the element. The bdo object represents the element.propertiesFollowing is the bdo object property −PropertyDescriptiondirSets or returns the value of the dir attribute of a elementSyntaxFollowing is the syntax for −Creating a bdo object −var a = document.createElement("BDO");Accessing a bdo object −var a = document.getElementById("demoBdo");ExampleLet us see an example ... Read More

150 Views
The HTML DOM Bdo dir property is associated with the HTML element. Here, bdo stands for Bi-Directional Override. The tag is used to override the current text direction which is by default left to right. The bdo dir property sets or returns the dir attribute value of a element. The dir property is compulsory for the element. It specifies the direction of the text flow.SyntaxFollowing is the syntax for −Setting the dir property −bdoObject.dir = "ltr|rtl"Here, ltr is left-to-right text direction, whereas rtl is right-to-left text direction.Returning the dir property −bdoObject.dirExampleLet us see an example for HTML ... Read More

176 Views
The HTML DOM Base object is associated with the HTML element. The element is used to specify the base url for all other URLs in the HTML document. There can at most one element in an HTML document. The Base object is used to set or get the href attribute of the element.PropertiesFollowing are the properties of Base object −PropertyDescriptionhrefSets or returns the value of the href attribute in a base elementtargetSets or returns the value of the target attribute in a base elementSyntaxFollowing is the syntax for −Creating the base element −document.createElement ("base")Accessing the base ... Read More

281 Views
The HTML DOM Base href property is associated with the HTML tag. The tag is used to specify the base URL for all relative URLs in the current HTML document. There can be a maximum of one tag in a HTML document. The Base href Property returns the value of href attribute in the base element.SyntaxFollowing is the syntax for −Setting the href property −baseObject.href = URLHere, URL is the base URL.Returning the href property −baseObject.hrefExampleLet us see an example for Base href Property − IMAGES Click the below button to change ... Read More

498 Views
The HTML DOM Audio Object represents the HTML element. The audio element newly introduced in HTML 5. Using the audio object we can manipulate the audio element to get information about audioTrack , change to autoplay, etc.PropertiesFollowing are the properties of HTML DOM Audio Object −PropertyDescriptionaudioTracksTo return audioTrackList object containing available audio tracksautoplayTo return or set the audio to start playing automatically.bufferedTo return a TimeRanges object containing all buffered parts of an audio.controllerTo return the MediaController object representing the current media controller of an audio.controlsTo set or return whether the audio should have play/pause control displayed or notcrossOriginTo set ... Read More

110 Views
The HTML DOM Article object represents the HTML element that was introduced in the HTML5. An article is a self-contained area in an HTML document. It is a part of the semantic tags introduced in HTML5.SyntaxFollowing is the syntax for −Creating an article objectvar a = document.createElement("ARTICLE");ExampleLet us see an example of HTML DOM article object − Live Demo ARTICLE HEADING Heading Sample Article Text Click the below button to change article size and color CHANGE ADD function ChangeArticle() { var x = document.getElementById("ArticleObj"); x.style.color = "green"; ... Read More

131 Views
The HTML DOM Area Object is associated with the image map in HTML. Area basically represents the clickable area inside the image map.The image object helps us in creating and accessing the element within the object. We can change clickable region inside the map or change the shape etc. of the image map based on the user input. It can also be used to manipulate the link inside the area elementPropertiesFollowing are the properties for Area Object −ValueDescriptionaltTo set or return alt attribute value.coordsTo set or return the cords attributes of an area.hashTo set or return the anchor part ... Read More