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
Articles by Lokesh Badavath
Page 2 of 7
How to create an ordered list with list items numbered with lowercase letters in HTML?
An ordered list is a numbered list of items that allows you to control the sequence numbering format. The tag creates ordered lists in HTML, while the tag defines individual list items. By default, ordered lists use numbers (1, 2, 3...), but you can customize the numbering format using the type attribute. To create an ordered list with lowercase letters (a, b, c...), use type="a" on the element. This is particularly useful for sub-lists, legal documents, or any content where alphabetical ordering is preferred over numerical. Syntax Following is the syntax to create an ...
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 uppercase roman numbers in HTML?
An ordered list is a numbered list of items that allows you to control the sequence number and group related items in a structured format. HTML supports various types of ordered lists using the tag, with list items defined by the tag. The type attribute of the tag determines the numbering style. To create an ordered list with uppercase Roman numerals, we use type="I". This displays list items as I, II, III, IV, V, and so on. Syntax Following is the syntax to create an ordered list with uppercase Roman numerals − ...
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 set text direction in HTML?
Text direction in HTML controls how text flows within elements. The direction property specifies whether text reads from left-to-right (LTR) or right-to-left (RTL). This is essential for multilingual websites and proper display of languages like Arabic, Hebrew, or Persian. We can set text direction using the CSS direction property through inline styles, internal stylesheets, or external CSS files. The direction property affects the text flow, alignment, and even the positioning of UI elements within the container. Syntax Following is the syntax for setting text direction using the CSS direction property − direction: ltr | rtl ...
Read MoreHow to create hidden comments in HTML?
HTML comments are used to add notes and documentation to your code that are not displayed in the browser. They help developers understand the code structure and temporarily hide content without deleting it. HTML comments allow you to document your code, hide content temporarily, and leave notes for other developers. The browser completely ignores commented content, making it invisible to website visitors but visible in the page source. Syntax Following is the syntax to create comments in HTML − Comments start with . Everything between these markers is hidden from the browser ...
Read MoreHow to use inline CSS (Style Sheet) in HTML?
Inline CSS allows you to apply styling directly to individual HTML elements using the style attribute. This method is useful for quick, element-specific styling without creating separate CSS files or blocks. Inline CSS is one of three ways to apply CSS to HTML elements − Inline CSS − Using the style attribute directly within HTML tags. Internal CSS − Using tags in the document head. External CSS − Linking to separate CSS files. Inline CSS takes the highest precedence and will override internal and external styles applied to the same element. Syntax ...
Read MoreHow to use internal CSS (Style Sheet) in HTML?
Internal CSS is a method of applying styles to HTML elements by placing CSS rules inside a tag within the section of an HTML document. This approach allows you to define styles for a single HTML page without using external CSS files. Internal CSS is particularly useful when you want to apply unique styles to a specific page that differ from your site's global styles, or when creating standalone HTML documents that need their own styling. Syntax Following is the syntax for internal CSS − ...
Read MoreHow to link pages using absolute URL in HTML?
An absolute URL in HTML is a complete web address that includes the full path to a resource, including the protocol (http/https) and domain name. Unlike relative URLs, absolute URLs provide the complete location of a resource and can be used to link to external websites or specific pages within the same site. What is an Absolute URL? An absolute URL contains all the information needed to locate a resource on the web. It includes − Protocol − Such as http:// or https:// Domain name − The website address like www.example.com Path − The specific location ...
Read MoreHow to Change the Color of Links in HTML?
HTML links are hyperlinks that connect one web page to another. By default, links appear in specific colors: unvisited links are blue and underlined, visited links are purple and underlined, and active links are red and underlined. However, we can customize these colors using CSS to match our website's design. Syntax Following is the basic syntax for creating HTML links − Link text To change link colors, we use CSS pseudo-classes with the following syntax − a:link { color: colorname; } /* Unvisited link */ a:visited { ...
Read More