
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 10483 Articles for Web Development

240 Views
The task we are going to perform in this article is how to specify that the details should be visible to the user in HTML. The user can open and close more details by using the tag, which specifies them. Create interactive widgets that the user can open and close by using the tag. The widget's closed state by default. It expands when you open it, revealing the contents. The details tag is a container for any kind of content. Syntax Following is the syntax for tag Text content ... Read More

288 Views
Use the name attribute to set the name of the element. You can use this with the following HTML elements: , , , , , , , , , , , ExampleYou can try to run the following code to implement name attribute − Subject: Add an incorrect spelling for a word above and see what happens. This is an editable conttent, with a spelling mistake. Click to edit.

190 Views
In HTML, forms for user input are created using the tag. The form tag uses a lot of different elements. When submitting a form, the novalidate attribute of the HTML tag is used to indicate that the form-data should not be validated. This attribute is a Boolean one. Following are the examples… Example In the following example we are using novalidate to make the form disabled after getting submitted. DOCTYPE html> Name: ... Read More

218 Views
In this article we are going to learn about how to execute a script when an error occurs in HTML. If an error happens while loading an external file, the onerror event is started (e.g. a document or an image). Let’s look into the following examples to understand more about how to execute a script when an error occurs in HTML. Using HTML Example In the following example we are using img to get displayed on our webpage using img src. ... Read More

123 Views
When an element has been dragged in HTML to a valid drop target, the ondragenter attribute fires.ExampleYou can try to run the following code to implement the ondragenter attribute − #boxA, #boxB { float:left;padding:10px;margin:10px; -moz-user-select:none; } #boxA { background-color: #6633FF; width:75px; height:75px; } #boxB { background-color: #FF6699; width:150px; height:150px; } function dragStart(ev) { ev.dataTransfer.effectAllowed = 'move'; ev.dataTransfer.setData("Text", ev.target.getAttribute('id')); ev.dataTransfer.setDragImage(ev.target,0,0); return true; } Drag and drop HTML5 demo Try to drag the purple box around. Drag Me Dustbin

243 Views
The ondurationchange attribute triggers when the length of the audio/ video changes in HTML.ExampleYou can try to run the following code to implement ondurationchange attribute − Your browser does not support the video element. function display(vLength) { alert("Video Length: " + vLength.duration + " seconds"); }