Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
HTML Articles
Page 65 of 151
How to use floating image in HTML page?
To use a floating image in HTML, use the CSS float property. It allows you to position an image to the left or right side of its container, causing surrounding text to wrap around the image naturally. Syntax Following is the syntax for the CSS float property − img { float: value; } Alternatively, you can apply it inline − Float Property Values The float property accepts the following values − Property Value Description none Default value. ...
Read MoreHow to create table header in HTML?
To create table headers in HTML, use the tag. Table headers are placed within table rows and define column or row headings. The element automatically displays text in bold and center-aligned by default, making it visually distinct from regular table data cells. Table headers serve multiple purposes − they provide semantic meaning for screen readers, can be styled differently with CSS, and help organize data in a structured format. Headers can be placed at the top of columns, beginning of rows, or both depending on your table structure. Syntax Following is the syntax to ...
Read MoreHow to markup postal address in HTML?
A postal address is structured information used to identify the physical location of a building, apartment, or business. In HTML, we use the tag to mark up contact information, including postal addresses, for the author of a document or article. The element provides semantic meaning to contact information, making it accessible to screen readers and search engines. By default, browsers render address content in italic format and add line breaks before and after the element. Syntax Following is the syntax for the tag − Contact information goes here ...
Read MoreHow to set horizontal header for a table?
Tables in HTML can have horizontal headers and vertical headers. A horizontal header displays column labels across the top of the table, while a vertical header displays row labels down the left side. For horizontal headers, we place all elements inside the first tag of the table. Horizontal vs Vertical Table Headers Horizontal Headers Name Age John 25 Sarah 30 Vertical Headers ...
Read MoreHow to create a collapsed border in HTML?
The border-collapse property is a CSS property used to control how table borders are displayed. When set to collapse, it merges adjacent table cell borders into a single border, creating a cleaner appearance. When set to separate, each cell maintains its own individual border. Syntax Following is the syntax for the border-collapse property − border-collapse: value; The border-collapse property accepts the following values − collapse − Borders are collapsed into a single border separate − Borders are kept separate (default behavior) initial − Sets the property to its default value (separate) inherit ...
Read MoreHow to add space around table border in HTML?
The border-spacing CSS property adds space between table cells by controlling the distance between adjacent cell borders. This property only works on tables that use the separated borders model (the default), not on tables with collapsed borders. Syntax Following is the syntax for adding space around table border in HTML − border-spacing: value; The border-spacing property accepts the following values − Single value − Sets equal horizontal and vertical spacing (e.g., border-spacing: 10px;) Two values − Sets horizontal and vertical spacing separately (e.g., border-spacing: 10px 5px;) Units − Accepts pixels (px), ems ...
Read MoreHow to use an HTML tag inside HTML table?
HTML allows you to place any valid HTML tag inside table cells, making tables highly flexible for displaying structured content. The HTML tags should be placed inside (table data) or (table header) elements to create rich, formatted content within your tables. Syntax Following is the syntax to use HTML tags inside table cells − Content You can include paragraphs, lists, images, links, forms, or any other HTML element inside table cells. The nested tags follow the same rules as regular HTML elements. Using Paragraph Tags in ...
Read MoreHow to create an ordered list with list items numbered with uppercase letters in HTML?
A list is a collection of related items displayed consecutively, usually one below the other. HTML provides two main types of lists: unordered lists and ordered lists. An ordered list displays items in a numbered sequence by default. You can create an ordered list using the tag and define individual list items using the tag. HTML supports 5 different types of ordered list numbering − type="1" − Creates a numbered list starting from 1 (default) type="A" − Creates a list numbered with uppercase letters starting from A type="a" − Creates a list numbered with ...
Read MoreHow to create an ordered list with list items numbered with lowercase roman numbers in HTML?
A list is a collection of connected items written consecutively, usually one below the other. HTML provides two main types of lists: unordered lists and ordered lists. An ordered list displays items with sequential markers like numbers, letters, or Roman numerals. You create an ordered list using the tag and define individual list items with tags. HTML supports 5 types of ordered list numbering systems using the type attribute − type="1" − Creates a numbered list starting from 1 (default). type="A" − Creates a list numbered with uppercase letters starting from A. type="a" − ...
Read MoreHow to create a website without using HTML?
If you have no knowledge of HTML or CSS and want to create a website, do not worry. You can easily create a professional-looking website without writing even a single line of HTML code using modern website building tools. Here are the most effective ways to build a website without writing any HTML or code − Website Builders Website builders are drag-and-drop platforms that allow you to create websites using visual interfaces. Most web hosting companies provide free website builder tools when you purchase a hosting plan. Popular Website Builders Wix − Offers hundreds ...
Read More