Giri Raju has Published 116 Answers

How do we create an image map in HTML?

Giri Raju

Giri Raju

Updated on 24-Jun-2020 07:55:47

To add an image map, use the <map> tag in HTML. The HTML <map> tag is used for defining an image map along with <img> tag.The following is the attribute −AttributeValueDescriptionnameunique_nameDefines a unique name for the map tagExampleYou can try to run the following code to learn how to create ... Read More

CSS border-box Value

Giri Raju

Giri Raju

Updated on 24-Jun-2020 06:05:16

Use the CSS background-origin property to set the border-box value. With the border-box value, the background image begins from the upper left corner of the border.You can try to run the following code to implement the border-box value:ExampleLive Demo<!DOCTYPE html> <html>    <head>       <style>         ... Read More

How to work with CSS Transitions?

Giri Raju

Giri Raju

Updated on 23-Jun-2020 16:27:52

Use the transition property to work with CSS Transitions.You can try to run the following code to implement transitions in CSS:ExampleLive Demo<!DOCTYPE html> <html>    <head>       <style>          div {             width: 150px;             height: ... Read More

How to select elements with a specified attribute with CSS

Giri Raju

Giri Raju

Updated on 23-Jun-2020 16:09:58

To select elements with an attribute, use the CSS [attribute] selector.For example, alt attribute or a target attribute, etc.You can try to run the following code to implement the CSS[attribute] selector, ExampleLive Demo<!DOCTYPE html> <html>    <head>       <style>          img[alt] {       ... Read More

Style every checked <input> element with CSS

Giri Raju

Giri Raju

Updated on 22-Jun-2020 14:53:19

To style every checked <input> element, use the CSS :checked selector. You can try to run the following code to implement the :checked selector −ExampleLive Demo<!DOCTYPE html> <html>    <head>       <style>          input:checked {             height: 20px;       ... Read More

JavaScript function definition in Chrome? How can I find it?

Giri Raju

Giri Raju

Updated on 22-Jun-2020 14:33:58

To find the JavaScript function definition in Google Chrome, open the web browser and press F12 to reach Developer Tools.Now press Ctrl + Shift + FCheck Regular Expression as shown below −Search for function and that’s it.

How to write PHP script by using LIKE clause inside it to match the data from MySQL table?

Giri Raju

Giri Raju

Updated on 22-Jun-2020 14:17:26

We can use the similar syntax of the WHERE...LIKE clause into the PHP function – mysql_query(). This function is used to execute the SQL command and later another PHP function – mysql_fetch_array() can be used to fetch all the selected data if the WHERE...LIKE clause is used along with the SELECT ... Read More

Print number with commas as 1000 separators in C#

Giri Raju

Giri Raju

Updated on 22-Jun-2020 12:57:50

Firstly, set the number as string −string num = "1000000.8765";Now, work around differently for number before and after the decimal −string withoutDecimals = num.Substring(0, num.IndexOf(".")); string withDecimals = num.Substring(num.IndexOf("."));Use the ToString() method to set the format for 1000 separators −ToString("#, ##0")The following is the complete code to display number with ... Read More

Global and Local Variables in C#

Giri Raju

Giri Raju

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

Local VariablesA local variable is used where the scope of the variable is within the method in which it is declared. They can be used only by statements that are inside that function or block of code.Example Live Demousing System; public class Program {    public static void Main() {   ... Read More

How can we simulate the MySQL INTERSECT query returning multiple expressions?

Giri Raju

Giri Raju

Updated on 22-Jun-2020 12:35:18

Since we cannot use the INTERSECT query in MySQL, we will use the EXIST operator to simulate the INTERSECT query. It can be understood with the help of the following example −ExampleIn this example, we are two tables namely Student_detail and Student_info having the following data −mysql> Select * from ... Read More

Advertisements