Nishtha Thakur has Published 387 Articles
Nishtha Thakur
604 Views
Follow the below given steps in Bootstrap to create default navbar −Add the classes .navbar, .navbar-default to the tag.Add role = "navigation" to the above element, to help with accessibility.Add a header class .navbar-header to the element. Include an element with class navbar-brand. This will give the ... Read More
Nishtha Thakur
555 Views
You might have encountered a situation where you clicked a URL to reach a page X but internally you were directed to another page Y. It happens due to page redirection.It is quite simple to do a page redirect using JavaScript on the client side. To redirect your site visitors ... Read More
Nishtha Thakur
2K+ Views
To call multiple JavaScript functions in on click event, use a semicolon as shown below −onclick="Display1();Display2()"ExampleLive Demo function Display1() { document.write ("Hello there!"); } function Display2() { document.write ("Hello World!"); } Click the following button to call the function
Nishtha Thakur
256 Views
To implement animation on text-decoration property with CSS, you can try to run the following code −ExampleLive Demo #demo { position: absolute; right: 0; width: 300px; height: 200px; background-color: blue; text-decoration: underline; animation: myanim 3s infinite; } @keyframes myanim { 30% { right: 350px; text-decoration-color: orange; } } CSS text-decoration-color property This is demo text.
Nishtha Thakur
647 Views
The px unit defines a measurement in screen pixels. The following is an example −div { padding: 40px; }The em unit is a relative measurement for the height of a font in em spaces. Because an em unit is equivalent to the size of a given font, if you ... Read More
Nishtha Thakur
167 Views
The CSS rest-after property is useful for speech media to set pause after an element.The following is the syntax −rest-after: | none | x-weak | weak | medium | strong | x-strongHere, x-weak | weak | medium | strong | x-strong is the rest by the strength of pauseLet ... Read More
Nishtha Thakur
250 Views
To integrate, use the Initializr. It is an HTML5 templates generator.You can also use Workless, an open source HTML, CSS & JS framework for developing front-end web applications faster.Workless uses Font Awesome web-font icons and allows you to add a lot of icons in your project. It can automatically style ... Read More
Nishtha Thakur
190 Views
The onbeforeunload event attribute’ fires when the document is ready to be unloaded.ExampleYou can try to run the following code to implement the onbeforeunload attribute − Close this window or press F5. function display() { return "Wanna stay here or leave?"; }
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP