Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
HTML Articles
Page 122 of 151
How do we add a push button to HTML?
Use the tag in HTML to add a push button. The HTML tag is used for creating a button within HTML form. You can also use tag to create similar buttons.The following are the attributes of the tag −AttributeValueDescriptionautofocusAutofocusSpecifies that the button should have input focus when the page loads.disabledDisabledSpecifies the button is disabled.formform_idSpecifies the forms to which button belongs.formactionURLSpecifies the link where the form submits.formenctypeapplication multipart/form-data text/plainSpecifies how the form data is encoded before sending it to server.formmethodget postSpecifies how to send form data.formnovalidateFormnovalidateSpecifies that the form data should not be validated.formtarget_blank_self _parent _topSpecifies where the response should ...
Read MoreHow do we add glossary definitions in HTML?
Use the tag in HTML to add the glossary definitions. The HTML tag is used for declaring a definition list. This tag is used within tag.A definition list is similar to other lists but in a definition list, each list item contains two entries; a term and a description.ExampleYou can try to run the following code to implement tag − HTML dl Tag Definition List A list of terms and their definitions/descriptions. HTML An HTML tutorial. PHP An PHP tutorial.
Read MoreCreate a draggable paragraph in HTML5
Use the draggable attribute to create a draggable paragraph. Enable or Disable the drag using the values true and false.ExampleYou can try to run the following code to implement draggable element and drag an element − .drag { float: left; width: 100px; height: 75px; border: 1px dashed #876587; margin: 15px; padding: 10px; } ...
Read MoreHow to add a unique id for an element in HTML?
Use the id attribute in HTML to add the unique id of an element.ExampleYou can try to run the following code to implement id attribute − Tutorialspoint We provide Tutorials! More... function display() { document.getElementById("myid").innerHTML = "We provide learning videos as well"; }
Read MoreExecute a script when media data is loaded in HTML?
Use the onloaddata event to execute a script when media data is loaded. You can try to run the following code to implement onloaddata event −ExampleThe following code generates an alert box when the video gets loaded − Your browser does not support the video element. function display() { alert("Loaded!"); }
Read MoreHow to set that the specified element/group of elements should be disabled in HTML?
Use the disabled attribute to disable an element. The attribute can be used for the following elements: , , , , etc.ExampleYou can try to run the following code to implement disabled attribute − Which sports do you like? Football Cricket Hockey
Read MoreHow to change the text color of an element in HTML?
Use the color attribute in HTML to display the color of the text.Note − This attribute is not supported in HTML5.ExampleYou can try to run the following code to learn how to implement color attribute in HTML − HTML Background Colors This is demo text.
Read MoreHow to specify whether the <form> or the <input> element should have autocomplete enabled in HTML?
Use the autocomplete attribute to enable autocomplete in an HTML form. The autocomplete attribute is used with form elements to set the autocomplete feature on or off. If the autocomplete feature is on, the browser will automatically show values, based on what users entered before in the field.If the autocomplete feature is off, the browser won’t automatically show values, based on what users entered before in the field.The following are the attribute values −S. NoAttribute ValueDescription1OnThis is the default value. Browser automatically complete values based on what users entered before.2OffBrowser won’t complete values based on what users entered before. Users have to type the ...
Read MoreCreate a command/menu item that the user can invoke from a popup menu in HTML5
Use the tag to create a command/ menu item that the user can invoke from a popup menu in HTML5. The HTML tag is used for defining a menu item for a menu.The following are the attributes of the tag −AttributeValueDescription checked checked defines that a menuitem should be checked default default a menuitem is marked as a default command disabled disabled disables a menuitem and cannot be clicked icon url defines an icon for a menuitem label text defines a name for a menuitem which is displayed to the user radiogroup groupname defines a group of commands out of which only one can be selectedtype ...
Read MoreHow do we include the direction of text display in HTML?
Use the dir attribute in HTML, to add the direction of the text.ExampleYou can try to run the following code to include the direction of text display in HTML − This is demo text from left-to-right. This is demo text from right-to-left.
Read More