Sreemaha has Published 68 Articles

Usage of font-variant property in CSS

Sreemaha

Sreemaha

Updated on 30-Jan-2020 10:36:27

77 Views

The font-variant property is used to create a small-caps effect. Possible values are normal and small-caps.                            This text will be rendered as small caps          

Usage of background property in CSS

Sreemaha

Sreemaha

Updated on 30-Jan-2020 09:22:35

103 Views

The background property is used as a shorthand to specify the number of other background properties such as image, position, repeat, etc.                            This parapgraph has fixed repeated background image.          

Usage of background-position property in CSS

Sreemaha

Sreemaha

Updated on 30-Jan-2020 08:53:42

112 Views

The background-position property is used to control the position of an image in the background.ExampleYou can try to run the following code to learn how to work with the background-position property. It sets the background image position 30 pixels away from the left side:           ... Read More

Style Rules in CSS

Sreemaha

Sreemaha

Updated on 30-Jan-2020 07:22:37

5K+ Views

CSS comprises of style rules interpreted by the browser and then applied to the corresponding elements in your document. A style rule is made of three parts −Selector -  A selector is an HTML tag at which a style will be applied. This could be any tag like or ... Read More

How do you find out which sequence number was assigned recently by MySQL AUTO_INCREMENT?

Sreemaha

Sreemaha

Updated on 30-Jan-2020 07:08:29

318 Views

Last_Insert_Id() MySQL function is used to find out which sequence number was assigned recently by AUTO_INCREMENT.Examplemysql> Create table Employee(Id INT PRIMARY KEY NOT NULL AUTO_INCREMENT, Name Varchar(5)); Query OK, 0 rows affected (0.13 sec) mysql> Insert into Employee(Name) Values('Harvinder'); Query OK, 1 row affected (0.06 sec) mysql> Insert ... Read More

How to use MySQL FROM_UNIXTIME() function to return datetime value in numeric format?

Sreemaha

Sreemaha

Updated on 30-Jan-2020 05:59:45

130 Views

As we know that we can convert a time of datetime value to an integer by adding 0(+0) to them. In a similar way, we can convert the datetime value returned by FROM_UNIXTIME() function in numeric format. The following example will clarify it more −mysql> Select FROM_UNIXTIME(1555033470)+0 AS 'Date in ... Read More

How many digits should be there in string or number so that it can be specified as a date value by MySQL?

Sreemaha

Sreemaha

Updated on 29-Jan-2020 06:43:57

70 Views

While considering the year as 4-digit value, minimum of 8 digits in a string or number is required for MySQL to specify it as a date value. In this case, if we also want to store microseconds then the value can be up to a maximum of 20 digits.mysql> Select ... Read More

How to get the first day of the previous month in MySQL?

Sreemaha

Sreemaha

Updated on 29-Jan-2020 05:19:15

2K+ Views

With the help of following MySQL query, we can get the first day of previous month −mysql> SELECT DATE_FORMAT(CURDATE() - INTERVAL 1 MONTH,'%Y-%m-01') AS 'FIRST DAY OF PREVOIUS MONTH'; +-----------------------------+ | FIRST DAY OF PREVOIUS MONTH | +-----------------------------+ | 2017-09-01                  | +-----------------------------+ 1 row in set (0.00 sec)

How to call a JavaScript Function from Chrome Console?

Sreemaha

Sreemaha

Updated on 09-Jan-2020 06:30:27

1K+ Views

To call a JavaScript function from the console, run the following code:Example                    var display = {             displayOne: function(){ return "displayTwo" ;}          };          console.log(display.displayOne());          

How to call a JavaScript function from an onmouseout event?

Sreemaha

Sreemaha

Updated on 08-Jan-2020 10:37:23

241 Views

The onmouseout triggers when you move your mouse out from that element.ExampleYou can try to run the following example to learn how to call a JavaScript function from onmouseout eventLive Demo                                         Bring your mouse inside the division to see the result:                 This is inside the division          

Advertisements