Nishtha Thakur has Published 564 Articles

How to use geolocation coordinates in HTML5?

Nishtha Thakur

Nishtha Thakur

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

257 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

100 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

108 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

138 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

1K+ 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

108 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

134 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

218 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

What are equality operators in C++?

Nishtha Thakur

Nishtha Thakur

Updated on 11-Feb-2020 07:46:53

960 Views

The equality operators in C++ are is equal to(==) and is not equal to(!=). They do the task as they are named. The binary equality operators compare their operands for strict equality or inequality. The equality operators, equal to (==) and not equal to (!=), have lower precedence than the ... Read More

The mutable storage class in C++

Nishtha Thakur

Nishtha Thakur

Updated on 10-Feb-2020 12:34:28

1K+ Views

The mutable storage class specifier is used only on a class data member to make it modifiable even though the member is part of an object declared as const. You cannot use the mutable specifier with names declared as static or const, or reference members.In the following example −class A ... Read More

Advertisements