Anvi Jain has Published 500 Articles

How do we add a single-line input field in HTML?

Anvi Jain

Anvi Jain

Updated on 30-May-2020 22:59:17

739 Views

Use the tag to add a single-line input field. The HTML tag is used for querying a document through a text field. The tag can be used anywhere but head tag is preferable. Note: It is a deprecated tag and should not be used.The following are the attributes ... Read More

Which event occurs in JavaScript when an element is getting dragged?

Anvi Jain

Anvi Jain

Updated on 22-May-2020 11:28:34

172 Views

Use the ondrag event in JavaScript to drag an element. The ondrag event is triggered when an element is dragged.ExampleYou can try to run the following code to learn how to work with ondrag event in JavaScript.                    .drag {     ... Read More

What is the usage of onscroll event in JavaScript?

Anvi Jain

Anvi Jain

Updated on 21-May-2020 07:48:28

227 Views

The onscroll event occurs when scrollbar is being scrolled for an element. You can try to run the following code to learn how to implement onscroll event in JavaScript.Example                    div {             border: 2px solid ... Read More

How can I display an image inside SVG circle in HTML5?

Anvi Jain

Anvi Jain

Updated on 13-May-2020 11:09:15

10K+ Views

To display an image inside SVG circle, use the element and set the clipping path. The element is used to define a clipping path. Image in SVG is set using the element.ExampleYou can try to run the following code to learn how to display an image inside ... Read More

How do we create the title of the text track in HTML?

Anvi Jain

Anvi Jain

Updated on 03-Mar-2020 09:59:51

186 Views

Use the label attribute in HTML to create the title of the text track in HTML.ExampleYou can try to run the following code to implement the label attribute −                                                            Your browser does not support the video element.          

How do we set the alignment according to surrounding elements in HTML?

Anvi Jain

Anvi Jain

Updated on 02-Mar-2020 12:40:23

732 Views

Use the align attribute to set the alignment. You can try to run the following code to implement align attribute in HTML −Note − The align attribute deprecated in HTML5. Use CSS instead.Example           A right-aligned paragraph.       Note: The align attribute is not supported in HTML5. Use CSS instead.    

How to copy tables or databases from one MySQL server to another MySQL server?

Anvi Jain

Anvi Jain

Updated on 07-Feb-2020 07:01:32

5K+ Views

If we want to copy tables or databases from one MySQL server to another, then use the mysqldump with database name and table name.Run the following command at the source host. This will dump the complete database into dump.txt file.$ mysqldump -u root -p database_name table_name > dump.txt password *****We can copy ... Read More

How Can MySQL CAST handle overflow?

Anvi Jain

Anvi Jain

Updated on 30-Jan-2020 07:13:12

274 Views

MySQL CAST can handle overflow occurs during numerical expression assessment. Suppose if numeric expression evaluation produces overflow then MySQL reflects an error message. Now to handle this overflow we can change that numeric value to UNSIGNED with the help of CAST.For example on adding 1 to BIGINT maximum value, MySQL ... Read More

HTML5 preload attribute

Anvi Jain

Anvi Jain

Updated on 29-Jan-2020 10:22:10

170 Views

To prevent HTML5 video from loading before playing, use preload attribute. You can try to run the following code:                                        Your browser does not support the video tag.          

Why HTML5 Web Workers are useful?

Anvi Jain

Anvi Jain

Updated on 29-Jan-2020 08:33:46

216 Views

JavaScript was designed to run in a single-threaded environment, meaning multiple scripts cannot run at the same time. Consider a situation where you need to handle UI events, query and process large amounts of API data, and manipulate the DOM.JavaScript will hang your browser in situation where CPU utilization is ... Read More

Advertisements