Tutorialspoint

HTML Doctypes

Chandu yadav
Answered on 21st Jun, 2019

Whenever you create an HTML document, the doctype is the first thing placed in the document.It conveys the web browser about the version of the HTML, this page is written on. It is not casesensitive.Let us see an example displaying DOCTYPE on the top −Example Live Demo<!DOCTYPE html> <html> <head> <title>Document ... Read More

HTML DOM Anchor hash Property

Arjun Thakur
Answered on 21st Jun, 2019

The HTML DOM Anchor hash property is used to set or return the anchor part of the href attribute value. The part of the URL after the # is what we call the anchor part of a link.Following is the syntax to set the hash property −anchorObject.hash = anchor_partAbove, anchor_part ... Read More

HTML DOM Anchor download Property

Ankith Reddy
Answered on 21st Jun, 2019

The HTML DOM download property is used to set or return the value of the download attribute of a link.Following is the syntax to set the download property −anchorObject.download = fileAbove, file represents the file name you can set for the file to be downloaded. The actual extension will get ... Read More

How to add a number and a string in JavaScript?

vineeth.mariserla
Answered on 21st Jun, 2019

In javascript , we can add a number and a number but if we try to add a number and a string then, as addition is not possible, 'concatenation' takes place.In the following example, variables a, b, c and d are taken. For variable 'a', two numbers(5, 5) are added therefore it ... Read More

HTML <th> colspan Attribute

George John
Answered on 21st Jun, 2019

The colspan attribute of the <th> element is used to set the number of columns a header cell should span.Following is the syntax −<th colspan="num">Above, num is the count of columns a header cell should span.Let us now see an example to implement the colspan attribute of the <th> element ... Read More

HTML <textarea> required Attribute

Chandu yadav
Answered on 21st Jun, 2019

The required attribute of the <textarea> element in HTML is used to let visitors know that this textarea field is to be filled before submitting the form. If a visitor clicks on Submit, without filling the textarea set with required attribute, then the form won’t submit.Following is the syntax −<textarea ... Read More

HTML canvas shadowBlur Property

Arjun Thakur
Answered on 21st Jun, 2019

The shadowBlur property of the HTML canvas is used to set the blur level for shadows. The default value is 0. The <canvas> element allows you to draw graphics on a web page using JavaScript. Every canvas has two elements that describes the height and width of the canvas i.e. ... Read More

HTML DOM Style lineHeight Property

Ankith Reddy
Answered on 21st Jun, 2019

The HTML DOM Style lineHeight property is used to set the line height, which is the distance between the lines in a text.Following is the syntax to set the lineHeight property −object.style.lineHeightFollowing is the syntax to return the lineHeight property −object.style.lineHeight = "normal|number|length|%|initial|inherit"Above, the values are described below −normal: Normal ... Read More

HTML <optgroup> disabled Attribute

George John
Answered on 21st Jun, 2019

The disabled attribute of the <optgroup> is used to disable an option-group. After that, the option-group becomes unclickable. Following is the syntax −<optgroup disabled>Let us now see an example to implement the disabled attribute of the <optgroup> element −Example Live Demo<!DOCTYPE html> <html> <body> <h2>Water Levels</h2> <p>Impurity Level <meter min="0" low="50" ... Read More

HTML canvas shadowOffsetY Property

Chandu yadav
Answered on 21st Jun, 2019

The shadowOffsetY property of the HTML canvas is used to set the vertical distance of the shadow from the shape. The <canvas> element allows you to draw graphics on a web page using JavaScript. Every canvas has two elements that describes the height and width of the canvas i.e. height ... Read More

HTML DOM Address Object

Arjun Thakur
Answered on 21st Jun, 2019

Use the address object to represent the <address> element. Let us see an example to create <address> −Example Live Demo<!DOCTYPE html> <html> <body> <h2>Heading Two</h2> <p>Create address element</p> <button onclick="display()">Display</button> <script>    function display() {       var a = document.createElement("Address");       var node = document.createTextNode("ABC Inc, P ... Read More

What are the differences between compareTo() and compare() methods in Java?

raja ramesh
Answered on 21st Jun, 2019

The Comparable interface provides a compareTo() method for the ordering of objects. This ordering is called the class’s natural ordering and the compareTo() method is called its natural comparison method. The Comparator interface provides the methods for performing sorting operations. By using the Comparator interface we can do multiple sorting sequences. We can sort the objects ... Read More

HTML canvas stroke() Method

Ankith Reddy
Answered on 21st Jun, 2019

The stroke() method of the HTML canvas is used to draw the path. This path is drawn with moveTo() and lineTo() method. The <canvas> element allows you to draw graphics on a web page using JavaScript. Every canvas has two elements that describes the height and width of the canvas ... Read More

HTML <area> href Attribute

George John
Answered on 21st Jun, 2019

The href attribute of the <area> element sets the the hyperlink target. Following is the syntax −<area href="URL">Above, URL is the hyperlink you need to mention for the area, which can be a relative link, absolute link, script, protocol, etc.Let us now see an example to implement the href attribute ... Read More

HTML DOM Object name Property

Chandu yadav
Answered on 21st Jun, 2019

The HTML DOM Object name property sets or returns the value of the name attribute. However, the name attribute only sets the name.Following is the syntax to set the object name property −obj.nameFollowing is the syntax to return the object name property −obj.name = nameLet us now see an example ... Read More

Advertisements
Loading...
Unanswered Questions View All

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.