Front End Technology Articles

Page 569 of 652

How to specify the URL of the image to use in different situations in HTML?

Smita Kapse
Smita Kapse
Updated on 03-Mar-2020 363 Views

Use the srcset attribute to specify the URL of the image to use in different situations in HTML.ExampleYou can try to run the following code to implement srcset attribute. Resize the browser to see different images loading −                                                                

Read More

How do we include the legal number intervals for an input field in HTML?

radhakrishna
radhakrishna
Updated on 03-Mar-2020 345 Views

Use the step attribute to include the legal number intervals for an input field in HTML. The HTML input type step attribute sets the legal number intervals. Steps are number steps like 0, 5, 10, 15, 20, etc. The step attribute can be used together with the max and min attributes to create a range of legal values.ExampleYou can try to run the following code to implement step attribute −           HTML input step attribute                                            

Read More

Execute a script when the element loses focus in HTML?

Govinda Sai
Govinda Sai
Updated on 03-Mar-2020 331 Views

Use the onblur attribute execute a script when the element loses focus in HTML. You can try to run the following code to implement onblur attribute −Example           Type text below!       Country:                function display() {             var str = document.getElementById("myid");             str.value = str.value.toUpperCase();          }          

Read More

Set the shape of the area in HTML

mkotla
mkotla
Updated on 03-Mar-2020 183 Views

Use the shape attribute to set the shape of the area in HTML. You can try to run the following code to implement shape attribute −Example           HTML shape attribute                                              

Read More

How to specify that an option should be pre-selected when the page loads in HTML?

Jennifer Nicholas
Jennifer Nicholas
Updated on 03-Mar-2020 183 Views

Use the selected attribute to specify that the option should be pre-selected when page loads in HTML. You can try to run the following code to implement selected attribute −Example           HTML selected attribute               Here's the list of subjects. Select any one:                             Computer Architecture             Java             Discrete Mathematics                    

Read More

How to specify that the styles only apply to this element's parent element and that element's child elements in HTML?

seetha
seetha
Updated on 03-Mar-2020 296 Views

Use the scoped attribute to specify that the styles only apply to the parent element and the element’s child elements −Example                    h2 {             color:yellow;          }                                           h2 {                color:grey;             }                    Grey Heading             Yellow Heading    

Read More

How to specify that the element must be filled out before submitting the form in HTML?

vanithasree
vanithasree
Updated on 03-Mar-2020 818 Views

The required attribute in HTML is used to specify that the element should be filled before the form is submitted. If the field is not filled and the submit button is clicked, an error generates, which fails form submission. The error will be “Please fill out this field”.The required attribute can be used on input, select and textarea element.ExampleYou can try to run the following code to implement readonly attribute −           HTML placeholder attribute               Register                                    

Read More

How to set the audio output of the video to mute in HTML?

Sreemaha
Sreemaha
Updated on 03-Mar-2020 440 Views

Use the muted attribute to set the audio output of the video to mute. You can try to run the following code to implement muted attribute −Example                                        Your browser does not support the video element.          

Read More

How to specify a minimum value in HTML?

Sravani S
Sravani S
Updated on 03-Mar-2020 183 Views

Use the min attribute to add the minimum value in HTML. You can try to run the following code to implement min attribute −Example                    Rank:                              

Read More

How to specify the HTTP method to use when sending form-data in HTML?

Smita Kapse
Smita Kapse
Updated on 03-Mar-2020 293 Views

Use the method attribute to specify the HTTP method to use when sending form-data in HTML.ExampleYou can try the following code to implement method attribute −        HTML option Tag                                     HTML             Ruby                              

Read More
Showing 5681–5690 of 6,517 articles
« Prev 1 567 568 569 570 571 652 Next »
Advertisements