Nishtha Thakur has Published 498 Articles

How to specify that a user can enter more than one value in HTML?

Nishtha Thakur

Nishtha Thakur

Updated on 31-May-2020 00:19:32

146 Views

Use the multiple attribute in HTML to specify a user can enter more than one value.ExampleYou can try to run the following code to implement multiple attribute −           Upload multiple files                                  After uploading multiple files, click Submit.                    

What is the usage of onblur event in JavaScript?

Nishtha Thakur

Nishtha Thakur

Updated on 22-May-2020 11:11:53

856 Views

The blur event triggers when object lose focus. You can try to run the following code to learn how to implement onblur event in JavaScript.Example           Write below:                      function newFunc(a) {             a.style.background = "green";          }          

How to use geolocation coordinates in HTML5?

Nishtha Thakur

Nishtha Thakur

Updated on 14-May-2020 10:46:51

386 Views

HTML5 Geolocation API lets you share your location with your favorite websites. A Javascript can capture your latitude and longitude and can be sent to backend web server and do fancy location-aware things like finding local businesses or showing your location on a map. The geolocation coordinates specifies the geographic ... Read More

How to properly integrate HTML5 Boilerplate with Twitter Bootstrap?

Nishtha Thakur

Nishtha Thakur

Updated on 04-Mar-2020 06:40:50

220 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

Execute a script when the document is about to be unloaded in HTML?

Nishtha Thakur

Nishtha Thakur

Updated on 03-Mar-2020 12:20:33

162 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?";          }          

Execute a script when a user navigates away from a page in HTML?

Nishtha Thakur

Nishtha Thakur

Updated on 03-Mar-2020 07:37:07

255 Views

When the user navigates from a page, the onpagehide attribute triggers. The navigation occurs when a user clicks a link, closes the browser tab, submits a form, etc.To execute it, try −You can also use,object.onpagehide = function(){script};

How do we add bold text in HTML?

Nishtha Thakur

Nishtha Thakur

Updated on 03-Mar-2020 05:58:35

2K+ Views

To display bold text, use the tag. The HTML tag is used for emphasizing an important text.ExampleYou can try to run the following code to implement tag in HTML −           HTML strong Tag               This is an important text    

How to include the character encoding in HTML?

Nishtha Thakur

Nishtha Thakur

Updated on 03-Mar-2020 05:23:51

183 Views

Character encoding is a method of converting bytes into characters. To validate or display an HTML document properly, a program must choose a proper character encoding.Use the element, to set the charset attribute and specify the character encoding for the HTML document −                         Click following link       Welcome to Qries    

How to include an abbreviation in HTML?

Nishtha Thakur

Nishtha Thakur

Updated on 02-Mar-2020 12:18:45

209 Views

The HTML tag is used for indicating an abbreviation. You can try to run the following code to learn how to include an abbreviation in HTML −Example        HTML abbr Tag                     pvt.             WHO       promotes the global game.                

How to work with Scalable Vector Graphics (SVG) in HTML5?

Nishtha Thakur

Nishtha Thakur

Updated on 25-Feb-2020 07:50:58

345 Views

SVG stands for Scalable Vector Graphics and it is a language for describing 2D-graphics and graphical applications in XML and the XML is then rendered by an SVG viewer.SVG is mostly useful for vector type diagrams like Pie charts, Two-dimensional graphs in an X, Y coordinate system etc.To work with ... Read More

Previous 1 ... 7 8 9 10 11 ... 50 Next
Advertisements