Found 2202 Articles for HTML

How do we display the visible width of a text area in HTML?

Arjun Thakur
Updated on 03-Mar-2020 05:26:22

192 Views

Use the cols attribute in HTML to display the visible width of a textarea. You can try to run the following code to implement cols attribute −Example                    This is a demo paragraph. This is a demo paragraph.          This is a demo paragraph. This is a demo paragraph.          

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

Daniol Thomas
Updated on 24-Jun-2020 08:21:37

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.                                

How to display a URL which explains the quote/deleted/inserted text in HTML?

Giri Raju
Updated on 28-May-2020 00:23:13

121 Views

The cite attribute allows you to add URL and explain why the text was deleted or inserted.ExampleYou can try to run the following code to implement cite attribute −           Define WordPress             WordPress is open source software you can use to create a beautiful website, blog, or app.    

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

Ankitha Reddy
Updated on 28-May-2020 00:22:39

194 Views

Use the checked attribute to specify an element is to be pre-selected on page load. The attribute works with − .ExampleYou can try to run the following code to implement checked attribute in HTML − Live Demo           Which sports do you like?                 Football           Cricket           Hockey                    

How to include the character encoding in HTML?

Nishtha Thakur
Updated on 03-Mar-2020 05:23:51

184 Views

Character encoding is a method of converting bytes into characters. To validate or display an HTML document properly, a program must choose a proper character encoding.Use the element, to set the charset attribute and specify the character encoding for the HTML document −                         Click following link       Welcome to Qries    

How do we display the thickness of the border of an element in HTML?

Chandu yadav
Updated on 02-Mar-2020 12:46:08

165 Views

Use the border attribute in HTML to display the thickness of the border.Note − This attribute is not supported in HTML5.ExampleYou can try to run the following code to learn how to implement border attribute in HTML −           Cricketers                Name                       Sachin Tendulkar                                 Virat Kohli                     Use CSS instead, since the border attribute deprecated in HTML5.                    table, th, td {             border: 1px solid black;          }                     Cricketers                Indian Cricketers          Name                       Sachin Tendulkar                                 Virat Kohli                    

How do we specify that the audio/video will start playing as soon as it is ready in HTML?

Ankith Reddy
Updated on 02-Mar-2020 12:44:10

333 Views

Use the autoplay attribute to set that the audio or video will start playing automatically as the page loads.ExampleYou can try to run the following code to implement autoplay attribute in HTML −                                        Your browser does not support the video element.          

How to display the background color of an element in HTML?

Abhinaya
Updated on 02-Mar-2020 12:44:56

918 Views

Use the bgcolor attribute in HTML to display the background color of an element. It is used to control the background of an HTML element, specifically page body and table backgrounds.Note − This attribute is not supported in HTML5.ExampleYou can try to run the following code to learn how to implement bgcolor attribute in HTML −           HTML Background Colors                                                          This background is yellow                                                                              This background is sky blue                                                                              This background is green                                

How to specify that the element should automatically get focus when the page loads in HTML?

mkotla
Updated on 02-Mar-2020 12:43:31

267 Views

Use the autofocus attribute to specify that the element should get focus automatically on page load in HTML −ExampleYou can try to run the following code to learn how to implement autofocus attribute in HTML −           Click on the below button to generate an alert box.       Result    

How to specify whether the
or the element should have autocomplete enabled in HTML?

Smita Kapse
Updated on 24-Jun-2020 08:19:19

158 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

Advertisements