Skip to content

nammoooo/How-to-create-list-in-HTML

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 

Repository files navigation

How-to-create- unordered list in HTML

An unordered list in HTML

<title>Unordered list</title>

Software Engineer Interview Topic

List of discussion areas
  • Data Structures & Algorithm
  • Web Technology
  • Apptitude & Logical Reasoning
  • Programming Languages
<h2> HTML5: How to define an unordered list? </h2>

<ul>
	<li>Disc</li>
	<li>Circle</li>
	<li>Square</li>
	<li>Arrow</li>
	<li>Pointer</li>
</ul>
The HTML unordered list has various list item markers: <title>HTML ul tag</title>

Unordered List with Disc Bullets

<ul style="list-style-type:disc;">

	<li>Disc</li>
	<li>Circle</li>
	<li>Square</li>
	<li>Arrow</li>
	<li>Pointer</li>
</ul>
<h2>Unordered List with Circle Bullets</h2>


<ul style="list-style-type: circle">
	<li>Disc</li>
	<li>Circle</li>
	<li>Square</li>
	<li>Arrow</li>
	<li>Pointer</li>
</ul>
<h2>Unordered List with Square Bullets</h2>

<ul style="list-style-type: square">
	<li>Disc</li>
	<li>Circle</li>
	<li>Square</li>
	<li>Arrow</li>
	<li>Pointer</li>
</ul>
<h2>Unordered List with No Bullets</h2>

<ul style="list-style-type: none">
	<li>Disc</li>
	<li>Circle</li>
	<li>Square</li>
	<li>Arrow</li>
	<li>Pointer</li>
</ul>
<h2>Nested Unordered List</h2>
<p>Interview content List:</p>

<ul>
	<li>DSA</li>
	<ul>
		<li>Array</li>
		<li>Linked List</li>
		<li>stack</li>
		<li>Queue</li>
	</ul>
	<li>Web Technologies</li>
	<ul>
		<li>HTML</li>
		<li>CSS</li>
		<li>JavaScript</li>
	</ul>
	<li>Apptitude</li>
	<li>Technical</li>
	<li>Behavioural</li>
</ul>
<style> li { padding-left: 23px; } </style>

unordered list - space

<h2 style="text-align:center">
	How to create space between
	list bullets and text in HTML?
</h2>

<!-- padding-left property used here -->
<p><b>list of fruits</b></p>

<ul>
	<li>Java</li>
	<li>C++</li>
	<li>Golang</li>
	<li>Python</li>
	<li>C#</li>
</ul>

How to create a ordered list in HTML

<style> h2 { color: green; } </style>

Ordered List with Roman Numbers

  1. HTML
  2. CSS
  3. JAVA
  4. SASS
<style> h2 { color: green; } </style>

Ordered List with LowerCase Roman Numbers

<ol type="i">
	<li>HTML</li>
	<li>CSS</li>
	<li>JAVA</li>
	<li>SASS</li>
</ol>

Ordered List with Numbers

  1. HTML
  2. CSS
  3. Java
  4. SASS

Ordered List with Letters

  1. HTML
  2. CSS
  3. Java
  4. SASS

Ordered List with Lowercase Letters

  1. HTML
  2. CSS
  3. Java
  4. SASS

Ordered List with Uppercase Roman Numbers

  1. HTML
  2. CSS
  3. Java
  4. SASS

Ordered List with Lowercase Roman Numbers

  1. HTML
  2. CSS
  3. Java
  4. SASS

Nested Ordered List

  1. HTML
  2. CSS
    1. CSS3
    2. CSS4
  3. JavaScript

A Description List

CSS
- Inline CSS
HTML
- XHTML
<title> HTML Input list Attribute </title>
<h1 style="color:green">
HTML Input list Attribute
<form action="">
	<label>Your Cars Name: </label>
	<input list="cars">
	<datalist id="cars">
		<option value="Java" />
		<option value="C++" />
		<option value="Golang" />
		<option value="Android" />
		<option value="iOS" />
	</datalist>
</form>
<title>reversed attribute</title> <style> h1, h2 { text-align:center; } </style>

HTML List

HTML reversed attribute

	<ol reversed>
		<li>Data Structures</li>
		<li>Operating System</li>
		<li>python programming</li>
		<li>DBMS</LI>
		<li>Computer Network</li>
	</ol>
</body>

Rank in Descending order

  1. Coding
  2. DevOps
  3. Database
  4. Data Science
  5. front End
  6. Back End
  7. Mobile
  8. Testing
  9. FullTStack
  10. Code Review

Rank in Descending order

  1. Sourcer
  2. Recruiter
  3. Advisor
  4. Talent Analyst
  5. Talent Partner
  6. Generalist
  7. FullStack
  8. Backend HR
  9. Diversity
  10. Leadership

About

List -ordered, unordered, ascending & descending

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published