Anjana has Published 72 Answers

How to merge table columns in HTML?

Anjana

Anjana

Updated on 30-Dec-2021 05:03:42

To merge table columns in HTML use the colspan attribute in <td> tag. With this, merge cells with each other. For example, if your table is having 4 rows and 4 columns, then with colspan attribute, you can easily merge 2 or even 3 of the table cells.ExampleYou can try ... Read More

How to create clickable areas in an image in HTML?

Anjana

Anjana

Updated on 22-Dec-2021 11:09:45

To create clickable areas in an image, create an image map, with clickable areas. For example, on clicking a box, the different website opens and on clicking a triangle in the same image, a different website opens.The <area> tag defines an area inside an image-and nested inside a <map> tag. ... Read More

How to create table rows & columns in HTML?

Anjana

Anjana

Updated on 22-Dec-2021 09:27:59

To create table rows and columns in HTML, use the <table> tag. A table consist of rows and columns, which can be set using one or more <tr>, <th>, and <td> elements. A table row is defined by the <tr> tag. For table rows and columns, <tr> tag and <td> ... Read More

What is the usage of onreset event in JavaScript?

Anjana

Anjana

Updated on 23-Jun-2020 09:08:43

The onreset event is useful when a form is reset. You can try to run the following code to learn how to implement onreset event in JavaScript −Example<!DOCTYPE html> <html>    <body>       <script>          function resetFunct() {             alert("The form ... Read More

Match any string with p at the end of it.

Anjana

Anjana

Updated on 23-Jun-2020 08:40:30

To match any string with p at the end of it with JavaScript RegExp, use the p$ Quantifier.Example<html>    <head>       <title>JavaScript Regular Expression</title>    </head>    <body>       <script>          var myStr = "Welcome to our website! Welcome";       ... Read More

Set the day of the month for a specified date according to universal time?

Anjana

Anjana

Updated on 23-Jun-2020 08:17:22

JavaScript date setUTCDate() method sets the day of the month for a specified date according to universal time.The following is the parameter for setUTCDate(dayValue) −dayValue − An integer from 1 to 31, representing the day of the month.ExampleYou can try to run the following code to set the day of ... Read More

How can we create MySQL views with column list?

Anjana

Anjana

Updated on 22-Jun-2020 13:06:25

As we know that while creating a view, providing the list of columns is optional. But if we are providing the name of the columns while creating the view then the number of names in the list of columns must be the same as the number of columns retrieved by ... Read More

How can we delete an existing MySQL event permanently?

Anjana

Anjana

Updated on 22-Jun-2020 12:26:04

We need to use the DROP statement to delete an existing MySQL event permanently. To illustrate it we are deleting the event named testing_event as follows −Examplemysql> DROP EVENT testing_event; Query OK, 0 rows affected (0.00 sec)

What is the purpose of MySQL TRIM() function?

Anjana

Anjana

Updated on 22-Jun-2020 07:36:35

MySQL TRIM() function is used to remove the specific suffix or prefix or both from the string. The working of TRIM() function can be understood with the help of its syntax −SyntaxTRIM([{BOTH | LEADING | TRAILING} [str_to_remove] FROM] string)Here,  the argument BOTH means the prefixes from both left and right ... Read More

How can I use MySQL IN() function to compare row constructors?

Anjana

Anjana

Updated on 22-Jun-2020 06:38:09

We can also use IN() function to compare row constructors. Consider the following example to make it clearer −mysql> Select (10, 2) IN ((5, 10), (10, 2), (2, 10), (100, 100)); +--------------------------------------------+ | (10, 2) IN ((5, 10), (10, 2), (2, 10), (100, 100)) | +--------------------------------------------+ | 1     ... Read More

1 2 3 4 5 6 7 8 Next
Advertisements