Found 10483 Articles for Web Development

How to block a website in your web browsers (Chrome and Internet Explorer)

Johar Ali
Updated on 15-Jun-2020 08:39:06

339 Views

To block a website on any of the web browsers like Google Chrome, Firefox, and Internet Explorer in a Windows system is quite easy. Follow the below-given steps to block a website −Open Notepad as an administrator i.e. Run as Administrator.Now, after opening Notepad, click on File, then click Open and move to the following path −C:\Windows\System32\drivers\etcThe following files will be visible. Click hosts and open it in Notepad −The notepad file will consist of some text. Reach the last line and press enter. Here, add the following to block any website and click Save to save the Notepad. We’re ... Read More

How to create a modal popup using JavaScript and CSS?

Nishtha Thakur
Updated on 16-Jun-2020 13:05:24

586 Views

Creating a modal popup means adding a dialog box, which generates on click of a button and close when user clicks anywhere outside of the popup.Here’s how a popup looks like below with header and a text. You can also add a footer to it −To create a modal popup using CSS and JavaScript, try to run the following code −ExampleLive Demo                    .popup {             display: none;             position: fixed;             z-index: 1;   ... Read More

How to create an ordered list with list items numbered with lowercase roman numbers in HTML?

Lokesh Badavath
Updated on 18-Oct-2022 11:27:00

8K+ Views

A list is a connected items written consecutively (usually one below other). Using HTML, you can create two kinds of lists unordered list and ordered list. An ordered list is marked with the numbers by default. You can create an ordered list using the tag and, define the list items using . We can create 4 types of ordered lists IN HTML − type="1"− This creates a numbered list starting from 1. type="A"− This creates a list numbered with uppercase letters starting from A. type="a"− This creates a list numbered with lowercase letters starting from a. type="I"− This ... Read More

How to compare two numbers in JavaScript?

Shubham Vora
Updated on 08-Aug-2022 09:02:40

18K+ Views

In this tutorial, we will learn to compare two numbers in JavaScript. If you are a competitive coder or application developer, in these cases, you need to make a comparison between two numbers and need to perform the particular operation basis on the comparison result of the numbers. Still, many programmers think we can compare the number only using the equality operator. Still, we can also compare the numbers using the less than or greater than operators. We will see the use of all three operators to compare the number in this tutorial. Using the Strict Equality Operator (===) In ... Read More

How to convert a String containing Scientific Notation to correct JavaScript number format?

Jennifer Nicholas
Updated on 17-Jun-2020 06:44:36

1K+ Views

To convert a string with Scientific Notation, use the Number function. Pass the value to this function.ExampleYou can try to run the following code to convert a string to correct number format −Live Demo                    document.write("String with Scientific Notation converted below:");          document.write(Number("7.53245683E7"));           OutputString with Scientific Notation converted below: 75324568.3

How to create an ordered list with list items numbered with uppercase roman numbers in HTML?

Lokesh Badavath
Updated on 24-Nov-2023 00:53:03

2K+ Views

An ordered list is a numbered list of items. It gives you the ability to control the sequence number in the context. Allow us to group a set of related items in lists. HTML support ordered list, unordered list and we have to use the tag, to create ordered list in HTML. The tag defines the ordered list. We use tag to start list of items. The list of items can be marked as numbers, lowercase letters uppercase letters, roman letters, etc. The default order is numbers for list items in the context. The tag ... Read More

How to get the length of a Number in JavaScript?

Vrundesha Joshi
Updated on 17-Jun-2020 06:34:53

19K+ Views

Use the toString() method to covert the Number to string, then the length() method gives you length.ExampleYou can try to run the following code to learn how to get the length of a Number −Live Demo                    var num1 = 344;          var num2 = 149856;          document.write("Length of number "+num1+" = "+ num1.toString().length);          document.write("Length of number "+num2+" = "+ num2.toString().length);           OutputLength of number 344 = 3 Length of number 149856 = 6

How to create an ordered list with list items numbered with uppercase letters in HTML?

Lokesh Badavath
Updated on 18-Oct-2022 11:23:28

10K+ Views

A list is a connected items written consecutively (usually one below other). Using HTML, you can create two kinds of lists unordered list and ordered list. An ordered list is marked with the numbers by default. You can create an ordered list using the tag and, define the list items using . We can create 4 types of ordered lists IN HTML − type="1"− This creates a numbered list starting from 1. type="A"− This creates a list numbered with uppercase letters starting from A. type="a"− This creates a list numbered with lowercase letters starting from a. type="I"− This ... Read More

How to create an ordered list with list items numbered with lowercase letters in HTML?

Lokesh Badavath
Updated on 23-Nov-2023 14:09:14

1K+ Views

An ordered list is a numbered list of items. It gives you the ability to control the sequence number in the context. Allow us to group a set of related items in lists. HTML support ordered list, unordered list and we have to use the tag, to create ordered list in HTML. The tag defines the ordered list. We use tag to start list of items. The list of items can be marked as numbers, lowercase letters uppercase letters, roman letters, etc. The default order is numbers for list items in the context. The tag ... Read More

How to create an ordered list with list items numbered with numbers in HTML?

Lokesh Badavath
Updated on 08-Sep-2023 23:28:16

44K+ Views

A list is a connected items written consecutively (usually one below other). Using HTML, you can create two kinds of lists unordered list and ordered list. An ordered list is marked with the numbers by default. You can create an ordered list using the tag and, define the list items using . We can create 4 types of ordered lists in HTML − type="1"− This creates a numbered list starting from 1. type="A"− This creates a list numbered with uppercase letters starting from A. type="a"− This creates a list numbered with lowercase letters starting from a. type="I"− This ... Read More

Advertisements