Daniol Thomas has Published 212 Articles

Animate CSS width property

Daniol Thomas

Daniol Thomas

Updated on 12-Jun-2020 08:49:56

354 Views

To implement animation on width property with CSS, you can try to run the following code −ExampleLive Demo                    div {             width: 300px;             height: 250px;             background-color: maroon;             color: white;             animation: myanim 3s;          }          @keyframes myanim {             30% {                width: 500px;             }          }                     CSS width property                This is demo text!          

Attributes and usage of

Daniol Thomas

Daniol Thomas

Updated on 04-Jun-2020 11:28:45

210 Views

The HTML5 audio tag can have a number of attributes to control the look and feel and various functionalities of the control:Sr. No.Attribute & Description1autoplayThis boolean attribute if specified, the audio will automatically begin to play back as soon as it can do so without stopping to finish loading the ... Read More

How to display a short hint that describes the expected value of the element in HTML?

Daniol Thomas

Daniol Thomas

Updated on 31-May-2020 00:27:36

224 Views

Use the placeholder attribute in HTML to display a hint describing the expected value of the element.ExampleYou can try to run the following code to implement placeholder attribute −           Login                                              

Execute a script when the browser window is being resized in HTML?

Daniol Thomas

Daniol Thomas

Updated on 30-May-2020 23:28:32

181 Views

When the web browser window is resized, the onresize attribute triggers.ExampleYou can try to run the following code to implement onresize attribute −           Resize the window to trigger event.                function display() {             alert("Web browser window resized!");          }          

What is the role of Keyboard Event altKey Property in JavaScript?

Daniol Thomas

Daniol Thomas

Updated on 23-May-2020 11:00:45

91 Views

The altkey property is used to show whether ALT key is pressed or not when key event was triggered.ExampleYou can try to run the following code to learn how to implement altKey property in JavaScript.                 Press any key   ... Read More

Values to set page size in CSS

Daniol Thomas

Daniol Thomas

Updated on 16-Mar-2020 08:14:58

2K+ Views

There are four values that can be used to set page size −auto − The page box will be set to the size and orientation of the target sheet.landscape − Overrides the target's orientation. The page box is the same size as the target, and the longer sides are horizontal.portrait − Overrides the ... Read More

Explain the difference between RowSet and ResultSet in JDBC?

Daniol Thomas

Daniol Thomas

Updated on 09-Mar-2020 06:42:48

2K+ Views

Following are the differences between RowSet and ResultSet:ResultSetRowSetA ResultSet always maintains connection with the database.A RowSet can be connected, disconnected from the database.It cannot be serialized.A RowSet object can be serialized.ResultSet object cannot be passed other over network.You can pass a RowSet object over the network.ResultSet object is not a ... Read More

What is Result in JDBC? How to retrieve data from ResultSet object?

Daniol Thomas

Daniol Thomas

Updated on 09-Mar-2020 06:31:58

2K+ Views

A ResultSet interface in JDBC represents the tabular data generated by SQL queries. It has a cursor which points to the current row. Initially, this cursor is positioned before the first row.Moving the pointer throughout result setThe next() method of the ResultSet interface moves the pointer of the current (ResultSet) object ... Read More

How can I alter the color of an HTML5 canvas element using jQuery?

Daniol Thomas

Daniol Thomas

Updated on 04-Mar-2020 08:00:00

194 Views

To alter the color of an HTML5 canvas, use −document.getElementById("ID").style.background = red;You can also try the following −var ctx = canvas.getContext('2d'); ctx.fillStyle = "#FF0000"; ctx.fill();

Create a pattern with HTML5 Canvas

Daniol Thomas

Daniol Thomas

Updated on 04-Mar-2020 07:11:09

300 Views

Use the following method to create a pattern with HTML5 Canvas: createPattern(image, repetition)− This method will use an image to create the pattern. The second argument could be a string with one of the following values: repeat, repeat-x, repeat-y, and no-repeat. If the empty string or null is specified, repeat ... Read More

Previous 1 ... 5 6 7 8 9 ... 22 Next
Advertisements