Found 2202 Articles for HTML

HTML download Attribute

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

188 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 Live Demo 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 ... Read More

HTML placeholder Attribute

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

450 Views

The placeholder attribute of the element is used to set a hint for the input that would give a short description about what is expected in that particular input. This attribute works for the following input types − text, url, search, email, password and tel. It introduced in HTML5.Following is the syntax −Here, placeholder_text is the short hint i.e. placeholder which would be visible to the users whenever they will visit that web page.Let us now see an example to implement the placeholder attribute of the element −Example Live Demo Register Id − ... Read More

HTML max Attribute

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

374 Views

The max attribute of the element is used to set the maximum value for . Both min and max are used to set a range of value for input element with type number, date, datetime, range, etc. It introduced in HTML5.Let us now see an example to implement the man attribute of the element. Here, we have set max as 10, therefore a user cannot enter an ID more than 1 −Example Live Demo Log in to your account Id − Password − DOB − ... Read More

HTML DOM Abbreviation Object

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

325 Views

The element is used in HTML to display abbreviations. The Abbreviation object represent this element.In the below example, we will learn how to access an abbreviation object −Example Live Demo Demo Heading BCCI Display the abbreviation title Abbreviation Title    function display() {       var a = document.getElementById("myid").title;       document.getElementById("demo").innerHTML = a;    } OutputClick on the button to display the title −

Advertisements