Found 8591 Articles for Front End Technology

How do we set the text direction for the content in an element in HTML?

Arjun Thakur
Updated on 03-Mar-2020 05:29:57

218 Views

Use the dir attribute in HTML, to set the text direction for the content in an element. You can try to run the following code to implement dir attribute −Example           This is demo text from left-to-right.       This is demo text from right-to-left.    

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

vanithasree
Updated on 24-Jun-2020 08:26:38

121 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                    

How to set that the text direction will be submitted in HTML?

V Jyothi
Updated on 03-Mar-2020 05:30:41

224 Views

Use the dirname attribute allows you to submit the the text direction. The value will be the name of the input followed by “.dir”.Example           Student Contact Form                Student Name:          Student Subject:                    

How to execute the script when the page has finished parsing in HTML?

Rishi Rathor
Updated on 03-Mar-2020 05:29:14

403 Views

Use the defer attribute to execute the script when the page has finished parsing in HTML.Firstly, add a js file.Let us give it a name, new.js,function sayHello() {    alert("Hello World") }ExampleLet’s add the HTML code now and execute the above script −                         This is demo text.    

How to identify that the track is to be enabled if the user's preferences do not indicate that another track would be more appropriate in HTML?

Sravani S
Updated on 03-Mar-2020 05:28:15

86 Views

Use the default attribute to identify that the track is to be enabled, if you’re providing with two subtitle tracks for the video.ExampleYou can try the following code to implement the default attribute for tracks −                                                            Your browser does not support the video element.          

How to specify the number of columns a table cell should span in HTML?

radhakrishna
Updated on 03-Mar-2020 05:27:24

845 Views

Use the colspan attribute to set the number of columns a table cell should span. You can try to run the following code to implement colspan attribute −                    table, th, td {             border: 1px solid black;          }                     Total Marks                Subject          Marks                       Maths             300                                 Java             450                                 Total Marks: 750                    

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

122 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

195 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                    

Advertisements