AmitDiwan has Published 10744 Articles

HTML DOM li Object

AmitDiwan

AmitDiwan

Updated on 30-Jul-2019 22:30:26

141 Views

The HTML DOM Li Object in HTML represents the element.SyntaxFollowing is the syntax −Creating a elementvar liObject = document.createElement(“LI”)PropertiesHere, “LiObject” can have the following properties −PropertyDescriptionvalueIt returns/sets the value of the value attribute of a elementExampleLet us see an example for Li value property − Live Demo ... Read More

HTML DOM li value Property

AmitDiwan

AmitDiwan

Updated on 30-Jul-2019 22:30:26

155 Views

The Li value property returns/sets the value of the value attribute of a element.SyntaxFollowing is the syntax −Returning value of the value attributeliObject.valueValue of the attribute value setliObject.value = ‘string’Let us see an example for Li value property −Example Live Demo HTML DOM value    form ... Read More

HTML DOM Link disabled Property

AmitDiwan

AmitDiwan

Updated on 30-Jul-2019 22:30:26

142 Views

The HTML DOM Link disabled property sets/returns whether element is enabled or disabled.SyntaxFollowing is the syntax −Returning boolean value - true/falselinkObject.disabledSetting disabled to booleanValuelinkObject.disabled = booleanValueBoolean ValuesHere, “booleanValue” can be the following −booleanValueDetailstrueIt defines that the is disabled.falseIt defines that the is not disabled and it is also the ... Read More

HTML DOM Link href Property

AmitDiwan

AmitDiwan

Updated on 30-Jul-2019 22:30:26

265 Views

The HTML DOM Link href property sets/returns the path/url of a linked document. −SyntaxFollowing is the syntax −Returning href attribute valuelinkObject.hrefSetting href to a stringlinkObject.href = stringBoolean ValuesHere, “string” can be the following −booleanValueDetailspathIt defines the absolute/relative path to a document.urlIt defines the url address of the document to be ... Read More

HTML DOM Link hreflang Property

AmitDiwan

AmitDiwan

Updated on 30-Jul-2019 22:30:26

125 Views

The Link hreflang property sets/returns the language code of a linked document.SyntaxFollowing is the syntax −Returning hreflang attribute valuelinkObject.hreflangSetting hreflang to a language codelinkObject.hreflang = langCodeExampleLet us see an example for Link hreflang property − Live Demo Link hreflang Link-hreflang Spanish ... Read More

HTML DOM Link Object

AmitDiwan

AmitDiwan

Updated on 30-Jul-2019 22:30:26

291 Views

The HTML DOM Link Object in HTML represents the element.SyntaxFollowing is the syntax −Creating a elementvar linkObject = document.createElement(“LINK”)propertiesHere, “LinkObject” can have the following properties −PropertyDescriptioncrossOriginIt sets/returns the the CORS settings of the linked documentdisabledIt sets/returns whether the linked document is disabled, or nothrefIt sets/returns the URL of ... Read More

HTML DOM Link rel Property

AmitDiwan

AmitDiwan

Updated on 30-Jul-2019 22:30:26

133 Views

The HTML DOM Link rel property sets/returns the relationship between the current and the linked document and is required to mention.SyntaxFollowing is the syntax −Returning rel attribute valuelinkObject.relSetting rel to a valueStringlinkObject.rel = valueStringValue StringsHere, “valueString” can be the following −valueStringDescriptionalternateIt providesauthorIt provides a link to the author of the ... Read More

HTML DOM Link sizes Property

AmitDiwan

AmitDiwan

Updated on 30-Jul-2019 22:30:26

165 Views

The HTML DOM Link sizes property returns the value of the sizes attribute of link element.NOTE − The sizes property is used only when rel property is set to ‘icon’SyntaxFollowing is the syntax −Returning sizes attribute valuelinkObject.sizesExampleLet us see an example for Link rel property − Live Demo Link sizes ... Read More

HTML DOM Subscript Object

AmitDiwan

AmitDiwan

Updated on 30-Jul-2019 22:30:26

118 Views

The HTML DOM Subscript Object represent the element of an HTML document.Let us see how to create subscript objectSyntaxFollowing is the syntax −document.createElement(“SUB”);ExampleLet us see an example of HTML DOM subscript object − Live Demo    body {       text-align: center;       background-color: ... Read More

HTML DOM Link type Property

AmitDiwan

AmitDiwan

Updated on 30-Jul-2019 22:30:26

128 Views

The Link type property sets/returns the type of a linked document.SyntaxFollowing is the syntax −Returning type attribute valuelinkObject.typeSetting type to a valid valuelinkObject.type = valueNOTE  − valid values include "text/javascript", "text/css", "image/gif", etc.ExampleLet us see an example for Link type property − Link type ... Read More

Advertisements