Web Development Articles

Page 139 of 801

HTML DOM Anchor pathname Property

George John
George John
Updated on 11-Mar-2026 164 Views

The HTML DOM Anchor pathname property is used to set or return the path name of the href attribute.Following is the syntax to set the pathname property −anchorObj.pathname = pathAbove, path is the pathname of the URL.Following is the syntax to return the pathname property −anchorObj.pathnameLet us now see an example to implement the DOM Anchor pathname property −Example Company Products Display pathname Display hreflang function display1() { var a = document.getElementById("mylink").pathname; document.getElementById("myid").innerHTML = a; } ...

Read More

HTML <area> download Attribute

Chandu yadav
Chandu yadav
Updated on 11-Mar-2026 217 Views

The download attribute of the element is used to set the name of the file to be downloaded which would download when user clicks on the hyperlink.Following is the syntax −The file is the name of the file set for download.Let us now see an example to implement the download attribute of the element −Example Learning Learn these technologies with ease.... OutputNow, when you will click on let’s say “PERL”, the file will download as shown below −Above, we have ...

Read More

HTML <input> width Attribute

Arjun Thakur
Arjun Thakur
Updated on 11-Mar-2026 281 Views

The width attribute of the element is only used with image and allows you to set the width of the image added using −The width attribute introduced in HTML5 and acts as the submit button. Following is the syntax −Above, width represents the width in pixels.Let us now see an example to implement the width attribute of the element wherein the width is set for input type image −Example Register    Id −    Password −    DOB −    Telephone −    Email −     OutputIn ...

Read More

HTML <meter> value Attribute

Ankith Reddy
Ankith Reddy
Updated on 11-Mar-2026 171 Views

The value attribute of the element specifies the current value of the gauge. This is a required attribute.Following is the syntax −Above, num represents the current value as a floating-point number.Let us now see an example to implement the value attribute of the element −Example    Result    Girls pass %    Boys pass % OutputIn the above example, we have set the pass percentage of girls as well as boys using the element. The current value is set using the value attribute −Boys pass %

Read More

HTML <object> data Attribute

George John
George John
Updated on 11-Mar-2026 145 Views

Tha data attribute of the element sets the URL of the resource, which can be audio, video, pdf, flash, etc. used by the object.Following is the syntax:The url is the URL of the resource used by the object.Let us now see an example to implement the data attribute of the element:Example CSS Demonstrating Application     OutputIn the above example, we have set the URL of the resource, which is a .swf file i.e. a flash file:The external link we have used in the element is:https://www.tutorialspoint.com/flex/samples/CSSApplication.swf

Read More

HTML <output> for Attribute

Chandu yadav
Chandu yadav
Updated on 11-Mar-2026 157 Views

The for attribute of the element sets the relationship between the result of the calculation and the elements used in the calculation.Following is the syntax:Above, id is the element id, which sets a separate list of one or more elements with a space. These elements specify the relationship between the result of the calculation and the elements used in the calculation.Let us now see an example to implement the for attribute of the element:Example Result 0    100++    = OutputNow, increase the slider and the result would get displayed:

Read More

HTML <progress> max Attribute

Ankith Reddy
Ankith Reddy
Updated on 11-Mar-2026 130 Views

Tha max attribute of the tag in HTML is used to set the maximum value in a progress bar.Following is the syntax −Above, num represents the number in floating-point. It displays how much effort the task necessitates.Let us now see an example to implement the max attribute of the element −Example    Windows Build 10.58.89.1       Downloading and Installing:       OutputIn the above example, we have displayed the progress of a task going on using the − We have set the maximum value in the progress bar using the max attribute −max="100"

Read More

HTML <q> cite Attribute

Arjun Thakur
Arjun Thakur
Updated on 11-Mar-2026 198 Views

The cite attribute of the element is used to set the source URL of a quote. The source won’t get displayed on the web page, but it is beneficial for the screen readers.Let us now see an example to implement the cite attribute of the element −Example What we want? PETA states,    We are the largest animal rights organization in the     world, with more than 6.5 million members and supporters worldwide. We need your continued     support in order to stop cruelty to animals wherever it occurs. OutputIn the above example, we ...

Read More

HTML <select> size Attribute

Chandu yadav
Chandu yadav
Updated on 11-Mar-2026 164 Views

The size attribute of the element is used to set the number of visible list items from a drop-down list. A scrollbar would get added if the size is set more than 1.Following is the syntax−Above, num is the count of the visible list items in the drop-down list.Let us now see an example to implement the size attribute of the element−Example Candidate Profile Following are the details to be submitted by the candidate: Educational Qualification Graduation    BCA    B.COM    B.TECH    B.SC Postgraduation    MCA   ...

Read More

HTML <textarea> autofocus Attribute

Arjun Thakur
Arjun Thakur
Updated on 11-Mar-2026 63 Views

The autofocus attribute of the element is used to set the autofocus to the textarea itself when the page loads. The autofocus attribute for the element introduced in HTML5.Following is the syntax −Let us now see an example to implement the autofocus attribute of the element −Example Interview Questions Why do you want go for the Technical Writer Job Profile? (100 words)           Write the answer in 100 words only...        What are your strengths? (50 words)           Write the answer in 50 words only... ...

Read More
Showing 1381–1390 of 8,006 articles
« Prev 1 137 138 139 140 141 801 Next »
Advertisements