Varma has Published 63 Articles

Align the text of a document with CSS

varma

varma

Updated on 31-Jan-2020 06:02:44

92 Views

The text-align property is used to align the text of a document. Possible values are left, right, center, justify.ExampleYou can try to run the following code to align text:                            Asia is a continent.                      Asia is a continent.          

Make a font italic with CSS

varma

varma

Updated on 30-Jan-2020 09:24:23

385 Views

To make a font italic, use the font-style property. You can try to run the following code to learn how to work with the font-style property:Example                            This text is in italic style          

Including an external stylesheet file in your HTML document

varma

varma

Updated on 30-Jan-2020 08:25:06

631 Views

The element can be used to include an external style sheet file in your HTML document.An external style sheet is a separate text file with .css extension. You define all the Style rules within this text file and then you can include this file in any HTML document using ... Read More

Type Selectors in CSS

varma

varma

Updated on 30-Jan-2020 07:24:30

1K+ Views

A selector is an HTML tag at which a style will be applied. This could be any tag like or etc.With the type selector, set for HTML tags like h1, h2, h3, p, etc:h2 {    color: #FF0000; }Set for p:p {    color: #800000; }

What is the use of NO_UNSIGNED_SUBTRACT SQL mode in handling overflow?

varma

varma

Updated on 30-Jan-2020 07:10:16

403 Views

In case of enabled SQL strict mode, subtraction between integers value in which one is of UNSIGNED type will produce an unsigned result by default. But MySQL produces an error if the result is a negative one. It can be observed with the following example −mysql> SET sql_mode = ''; ... Read More

How can MySQL interpret the number and string, having no delimiter, as a date?

varma

varma

Updated on 29-Jan-2020 06:48:06

276 Views

If a string or number, even without any delimiter, in the format of YYYYMMDDHHMMSS or YYMMDDHHMMSS is making sense as the date is provided then MySQL interpret that string as a valid date.Examples are given for valid as well as invalid dates −mysql> Select Timestamp(20171022040536); +---------------------------+ | Timestamp(20171022040536) | +---------------------------+ | ... Read More

How MySQL use YEAR data type to store year value in a table?

varma

varma

Updated on 28-Jan-2020 12:24:02

590 Views

MySQL permits to declare a column YEAR type, with the help of which we can store year values in that column.mysql> Create table year1 (Year_Copyright YEAR); Query OK, 0 rows affected (0.21 sec) mysql> Insert into year1(Year_Copyright) values (2017); Query OK, 1 row affected (0.08 sec) mysql> Select ... Read More

How can I calculate full 24hour days between two specified dates in MySQL?

varma

varma

Updated on 28-Jan-2020 10:35:33

294 Views

In DATEDIFF() function only the date parts of the values are used in calculation hence we can use TIMESTAMPDIFF() function to calculate full 24 hour days between two specified dates.For example, if we want to find full 24hour days between ‘2017-05-27 11:59:00’ and 2017-05-23 12:00:00’ then following would be MySQL ... Read More

How to deal with floating point number precision in JavaScript?

varma

varma

Updated on 10-Jan-2020 07:29:46

962 Views

To handle floating point number precision in JavaScript, use the toPrecision() method. It helps to format a number to a length you can specify.ExampleLive Demo                    var num = 28.6754;          document.write(num.toPrecision(3));          document.write(""+num.toPrecision(2));          document.write(""+num.toPrecision(5));           Output28.7 29 28.675

How to call a JavaScript function from an onmouseover event?

varma

varma

Updated on 08-Jan-2020 10:36:14

2K+ Views

The onmouseover event triggers when you bring your mouse over any element.ExampleYou can try to run the following example to learn how to call a JavaScript function from onmouseover eventLive Demo                                         Bring your mouse inside the division to see the result:                 This is inside the division          

Advertisements