HTML Articles

Page 122 of 151

How do we add a push button to HTML?

Arjun Thakur
Arjun Thakur
Updated on 24-Jun-2020 3K+ Views

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 More

How do we add glossary definitions in HTML?

Anvi Jain
Anvi Jain
Updated on 24-Jun-2020 2K+ Views

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 More

Create a draggable paragraph in HTML5

Nancy Den
Nancy Den
Updated on 24-Jun-2020 530 Views

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 More

How to add a unique id for an element in HTML?

Abhinaya
Abhinaya
Updated on 24-Jun-2020 978 Views

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 More

Execute a script when media data is loaded in HTML?

Vrundesha Joshi
Vrundesha Joshi
Updated on 24-Jun-2020 199 Views

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 More

How to set that the specified element/group of elements should be disabled in HTML?

vanithasree
vanithasree
Updated on 24-Jun-2020 149 Views

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 More

How to change the text color of an element in HTML?

Daniol Thomas
Daniol Thomas
Updated on 24-Jun-2020 9K+ Views

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 More

How to specify whether the <form> or the <input> element should have autocomplete enabled in HTML?

Smita Kapse
Smita Kapse
Updated on 24-Jun-2020 196 Views

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 More

Create a command/menu item that the user can invoke from a popup menu in HTML5

Ankith Reddy
Ankith Reddy
Updated on 24-Jun-2020 337 Views

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 More

How do we include the direction of text display in HTML?

Rishi Rathor
Rishi Rathor
Updated on 24-Jun-2020 234 Views

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
Showing 1211–1220 of 1,508 articles
« Prev 1 120 121 122 123 124 151 Next »
Advertisements