Ankith Reddy has Published 1070 Articles

How to detect HTML5 audio MP3 support

Ankith Reddy

Ankith Reddy

Updated on 25-Jun-2020 05:29:55

162 Views

To detect HTML5 audio MP3 support, use the Modernizr library.As stated in the official specification − Source − Screenshot from the official Modernizr documentation For detecting HTML5 audio MP3 support, you can also check the User-Agent to detect which browser is used.You can also use JavaScript to test −var x = document.createElement('audio'); ... Read More

With CSS add transparency to a button

Ankith Reddy

Ankith Reddy

Updated on 24-Jun-2020 16:02:09

3K+ Views

To add transparency to a button, use the CSS opacity property. This creates a disabled look for the button.You can try to run the following code to add transparency to a buttonExampleLive Demo                    .btn1 {         ... Read More

Role of CSS justify-content property space-between value

Ankith Reddy

Ankith Reddy

Updated on 24-Jun-2020 15:46:18

100 Views

Use the justify-content property with value space-around to add space between the flex-items.You can try to run the following code to implement the space-between valueExampleLive Demo                    .mycontainer {             display: flex;         ... Read More

Horizontally align the flex items when the items do not use all available space on the main-axis with CSS

Ankith Reddy

Ankith Reddy

Updated on 24-Jun-2020 14:56:56

90 Views

Use the justify-content property to horizontally align the flex items when the items do not use all available space on the main-axis.You can try to run the following code to implement the justify-content propertyExampleLive Demo                    .mycontainer {       ... Read More

The:last-child selector not working as expected in HTML5

Ankith Reddy

Ankith Reddy

Updated on 24-Jun-2020 14:25:23

284 Views

The last-child selector is used to select the last child element of a parent. It cannot be used to select the last child element with a specific class under a given parent element.Style the last child li element with background-color −li:last-child{    background-color: blue; }It creates issues if the element ... Read More

Is it possible to add HTML5 validation to Visual Studio?

Ankith Reddy

Ankith Reddy

Updated on 24-Jun-2020 14:22:48

133 Views

For HTML5 validation, you need to install IntelliSense and validation support to Visual Studio. HTML5 is supported by Visual Studio 2012.VS 2010 had IntelliSense support, but VS 2012 added corresponding snippets making it fast and easy to write markup.Follow the steps −  Launch Visual Studio 2012  Go to Tools > Options menu  When ... Read More

How can I find non-ASCII characters in MySQL?

Ankith Reddy

Ankith Reddy

Updated on 24-Jun-2020 14:10:12

1K+ Views

Non ASCII characters are characters such as the pound symbol(£), trademark symbol, plusminus symbol etc. To find the non-ASCII characters from the table, the following steps are required −First a table is created with the help of the create command which is given as follows −mysql> CREATE table NonASciiDemo -> ... Read More

MySQL error 1452 - Cannot add or a child row: a foreign key constraint fails

Ankith Reddy

Ankith Reddy

Updated on 24-Jun-2020 14:06:30

7K+ Views

To understand error 1452, first we need to create a table and relate that to another table with the help of a foreign key constraint.Creating the first table −mysql> CREATE table ForeignTable -> ( -> id int, -> name varchar(200), -> Fk_pk int -> ); Query OK, 0 rows affected ... Read More

Applying a CSS style to an ID element when the beginning of its name stays identical and the end varies in HTML

Ankith Reddy

Ankith Reddy

Updated on 24-Jun-2020 14:05:19

34 Views

Posts can be selected using div with ‘id=post’. This will select all div elements with an id which contains a value in quotes.We can use either −div[id*='post-'] { ... } or div[id^='post-'] { ... }.div[id*='post-'] { ... } will select all div elements with id which is having all values ... Read More

How do I see all foreign keys to a table column?

Ankith Reddy

Ankith Reddy

Updated on 24-Jun-2020 14:01:05

2K+ Views

To see all the foreign keys to a table or column, the referenced_column_name command is used.First, two tables are created and then related with the help of the foreign key constraint.Creating the first table −mysql> CREATE table ForeignTable -> ( -> id int, -> name varchar(200), -> Fk_pk int -> ... Read More

Advertisements