Create Unordered List with Disc Bullets in HTML

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

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

Use HTML Tag Inside HTML Table

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

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

Add Space Around Table Border in HTML

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

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

Create a Table with a Caption

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

855 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

Create a Collapsed Border in HTML

Lokesh Badavath
Updated on 18-Oct-2022 10:50:33

16K+ Views

We use border-collapse property to create a collapsed border in HTML. The border-collapse is a CSS property used to set the table borders should collapse into a single border or be separated with its own border in HTML. Border-collapse property has four values: separate, collapse, initial, inherit. With the value collapse If you pass collapse as a value of the border-collapse Property, the borders of the table are simply collapsed into a single border. Following is the syntax to create a collapsed border in HTML. border-collapse: collapse; Example 1 In the example given below we are trying to ... Read More

Set Horizontal Header for a Table

Lokesh Badavath
Updated on 18-Oct-2022 10:48:06

3K+ Views

Tables in HTML can have horizontal header and vertical header. For the horizontal header, we need to set all inside a single  tag. Syntax Following is the syntax to set horizontal header for a table − horizontal header1… horizontal header2… Example 1 Now let us see an example program to set horizontal header for a table. DOCTYPE html> table, tr, th, ... Read More

Use Tables to Structurize Forms in HTML

AmitDiwan
Updated on 18-Oct-2022 08:12:52

419 Views

The tables can be used to create and structurize forms in HTML. But, before that let us see how to create a form in HTML. Create a Form in HTML Example Let us see how to create a form using the tags. We have set three input type radio with individual labels − DOCTYPE html> HTML Form Details Select the subject you want to choose: ... Read More

Default Body Margin Width in CSS

AmitDiwan
Updated on 18-Oct-2022 08:05:28

3K+ Views

The default margin is 8px in HTML. It is defined in pixels by the user-agent-stylesheet your browser provides. Some browsers allow you to create and use your own user-agent-stylesheet, but if you are developing a website, keep it the same. Default Margin in HTML Example Let us see a simple example. Here, since the default margin is 8px, we won’t try to change it − DOCTYPE html> Example body { background: orange; ... Read More

What Does enctype=multipart/form-data Mean in HTML

AmitDiwan
Updated on 18-Oct-2022 08:00:13

2K+ Views

Use the enctype attribute to specify how the browser encodes the data before it sends it to the server. Possible values are − application/x-www-form-urlencoded − This is the standard method most forms use in simple scenarios. mutlipart/form-data − This is used when you want to upload binary data in the form of files like image, word file etc. Example Let us now see an example − DOCTYPE html> HTML enctype attribute form { ... Read More

Center One and Right/Left Align Other Flexbox Elements in HTML

AmitDiwan
Updated on 18-Oct-2022 07:42:14

8K+ Views

Let’s say we have P, Q, R, S, T aligned in the center of a web page − P Q R S T We want the above to remain same, except the rightmost i.e. the T to shift on the right, like this − ... Read More

Advertisements