Found 10723 Articles for Web Development

How to create an unordered list with square bullets in HTML?

Lokesh Badavath
Updated on 18-Oct-2022 11:05:34

9K+ 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 numbered and an unordered list is not numbered it can be created with the tag and define the items of the list using the tag . We can create 4 types of unordered list in HTML − disc − This creates an unordered list marked to a bullet (default). circle − This creates an unordered list marked to a circle. square − This creates an unordered list marked to a square. ... Read More

How to create an unordered list with circle bullets in HTML?

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

8K+ Views

An unordered list is unordered list of items marked with bullets, circle, disc and square. It gives you the ability to control the list 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 unordered list in HTML. The tag defines the unordered list. We use tag to start list of items. The list of items can be marked as bullets, square, disc and circle. By default, the list items in the context marked with the bullets. ... Read More

How to create an unordered list with disc bullets in HTML?

Lokesh Badavath
Updated on 18-Oct-2022 11:01:59

4K+ Views

An ordered list is numbered and an unordered list is not numbered it can be created with the tag and define the items of the list using the tag . We can create 4 types of unordered list in HTML − disc − This creates an unordered list marked to a bullet (default). circle − This creates an unordered list marked to a circle. square − This creates an unordered list marked to a square. none − This creates an unordered list without any marker. Syntax Following is the syntax to create an unordered list with disc bullets in HTML. ... Read More

How to create an ordered list in HTML?

Lokesh Badavath
Updated on 24-Nov-2023 00:35:52

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 supports ordered list and an unordered list. To create ordered list in HTML, we have to use the tag. We use tag to start list of items within the ordered list tag. 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 should ... Read More

How to use an HTML tag inside HTML table?

Lokesh Badavath
Updated on 18-Oct-2022 10:57:56

5K+ Views

We can easily add HTML tag inside a table. The HTML tag should be placed inside the tag. For example, adding a paragraph … tag or other available tags inside the tag. Syntax Following is the syntax to use an HTMl tag inside HTML table. Paragraph of the context Example 1 Given below is an example to use an HTML tag inside HTML table. DOCTYPE html> ... Read More

How to add space around table border in HTML?

Lokesh Badavath
Updated on 18-Oct-2022 10:55:38

7K+ Views

We use the CSS property border-spacing, to set border spacing for an HTML table. It adds space around the table border between the adjacent cells in a table. We should specify the value in pixels for the border-spacing property to add. Syntax Following is the syntax for adding space around table border in HTML. border-spacing: 10px; Example 1 Given below is an example where we are creating a table and trying to add spaces around it. DOCTYPE html> ... Read More

How to center align text in table cells in HTML?

Lokesh Badavath
Updated on 31-Aug-2023 02:10:42

112K+ Views

We use the CSS property text-align, to center align text in table cells. We use inline, internal style sheet for text alignment in table cells. The text-align property of CSS sets the alignment of the content in and . By default, the content of are center-aligned and the content of are left-aligned. We can override the attribute by other to change the alignment. We can also change the align-value to left and right. Syntax Following is the syntax to center align text in tag of the table. Table header... Following is the syntax to center ... Read More

How to create a table with a caption?

Lokesh Badavath
Updated on 18-Oct-2022 10:52:20

579 Views

We use the tag, to create a table with caption in HTML. The caption tag will be inserted immediately after the tag. We can add only one caption for one table. By default, the alignment of this tag is center. We can change the alignment using CSS property called align. Syntax Following is the syntax of the caption tag of HTML Caption of the table... Example 1 In the following example we are creating a table with employee name and employee id with Employees as the caption. DOCTYPE html> ... Read More

How to find the largest number contained in a JavaScript array?

Abhishek
Updated on 31-Oct-2022 07:57:15

11K+ Views

In this tutorial, we will learn about the different methods or ways of finding the largest number contained inside a JavaScript array. An array is a collection of different values. We will define an array of numbers in which we will search for the largest number. There are three ways of finding the largest number in a JavaScript array that is listed below − Traversing the Whole Array Using the reduce() Method Using the Math.max() and apply() methods Traversing the Whole Array This is the easiest or the most naive approach to find the largest number in the ... Read More

How to determine if a number is odd or even in JavaScript?

Shubham Vora
Updated on 02-Sep-2023 15:30:06

39K+ Views

In this tutorial, let’s see how to determine whether a number is odd or even using JavaScript. The first step is understanding the logic. What are even numbers? Even numbers will be exactly divisible by 2. The remainder will be zero. What are odd numbers? Odd numbers will carry a remainder when divided by 2. Using the if-else Condition and Modulo Operator "if" will check a condition, and the if block code will be executed if the condition is true. If the condition is false, else block code will be executed. The modulo operator in JavaScript returns the remainder. Syntax ... Read More

Advertisements