HTML Unordered Lists


The HTML <ul> tag defines an unordered (bulleted) list.


Unordered HTML List

An unordered list starts with the <ul> tag. Each list item starts with the <li> tag.

The list items will be marked with bullets (small black circles) by default:

Example

<ul>
  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
</ul>


Unordered HTML List - Choose List Item Marker

The CSS list-style-type property is used to define the style of the list item marker. It can have one of the following values:

Value Description
disc Sets the list item marker to a bullet (default)
circle Sets the list item marker to a circle
square Sets the list item marker to a square
none The list items will not be marked

Example - Disc

<ul style="list-style-type:disc;">
  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
</ul>

Example - Circle

<ul style="list-style-type:circle;">
  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
</ul>

Example - Square

<ul style="list-style-type:square;">
  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
</ul>

Example - None

<ul style="list-style-type:none;">
  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
</ul>


Nested HTML Lists

Lists can be nested (list inside list):

Example

<ul>
  <li>Coffee</li>
  <li>Tea
    <ul>
      <li>Black tea</li>
      <li>Green tea</li>
    </ul>
  </li>
  <li>Milk</li>
</ul>

Note: A list item (<li>) can contain a new list, and other HTML elements, like images and links, etc.


Horizontal List with CSS

HTML lists can be styled in many different ways with CSS.

One popular way is to style a list horizontally, to create a navigation menu:

Example

<!DOCTYPE html>
<html>
<head>
<style>
ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #333333;
}

li {
  float: left;
}

li a {
  display: block;
  color: white;
  text-align: center;
  padding: 16px;
  text-decoration: none;
}

li a:hover {
  background-color: #111111;
}
</style>
</head>
<body>

<ul>
  <li><a href="#home">Home</a></li>
  <li><a href="#news">News</a></li>
  <li><a href="#contact">Contact</a></li>
  <li><a href="#about">About</a></li>
</ul>

</body>
</html>

Tip: You can learn much more about CSS in our .


Chapter Summary

  • Use the HTML <ul> element to define an unordered list
  • Use the CSS list-style-type property to define the list item marker
  • Use the HTML <li> element to define a list item
  • Lists can be nested
  • List items can contain other HTML elements
  • Use the CSS property float:left to display a list horizontally

HTML List Tags

Tag Description
Defines an unordered list
Defines an ordered list
Defines a list item
Defines a description list
Defines a term in a description list
Describes the term in a description list

For a complete list of all available HTML tags, visit our .


Smart API is an User Friendly Software specially developed for Developer's. It is used for Creating API's for various purposes including Form Submissions, Inserting Data to Database, Fetching Data from Database etc.

Smart API Logo

SmartAPI is a revolutionary software tool designed for developers, database managers, and businesses to simplify the process of API creation and management. With SmartAPI, users can seamlessly connect to their existing databases and generate CRUD (Create, Read, Update, Delete) APIs without writing a single line of code. This tool is ideal for anyone looking to quickly build scalable APIs for their web applications without deep technical overhead or coding expertise

smartapi

Key Features of SmartAPI

  1. No-Code API Creation

    With SmartAPI, setting up an API is straightforward: users simply connect their database credentials, and the tool automatically generates CRUD APIs based on the database schema.

    This is perfect for rapid development cycles, Where time-to-market and efficiency are key. By bypassing manual coding, SmartAPI lets developers save significant time and focus on other parts of the application.


  2. Database Integration

    SmartAPI supports a wide range of databases, making it easy to connect to MySQL, PostgreSQL, MongoDB, and more.

    Adding database credentials is user-friendly and secure, allowing users to manage multiple databases and generate APIs in a matter of minutes
    .

  3. Efficient API Management

    Once APIs are generated, SmartAPI offers tools for efficient management, including versioning, documentation, and access control.

    This ensures that as your application evolves, you can keep track of API changes and maintain a clean, organized API structure for long-term scalability.

  4. Built-in Security and Authentication

    Security is a major concern for any API-based system, and SmartAPI has built-in support for securing endpoints.

    With options for API keys, OAuth, and token-based authentication, users can control access to their APIs and protect their data effectively.

  5. Scalability and Flexibility

    SmartAPI is designed to handle applications of any size, making it suitable for both small startups and large enterprises.

    Whether you’re building a lightweight API for internal data access or a comprehensive solution for public access, SmartAPI can scale to meet your needs.

First of all, users can create an account on the smart API then login to your account.

  1. Add Your Database
    Step 1: Click on Add Database Button
    Step 2: Select Your Database Type
    Step 3: Fill your Database Credentials
    And it's done, Your Database is now Connected to SmartAPI

  2. Create Project
    Step 1:
    Click on Create Project
    Step 2: Enter Your Project Name
    And Submit, that's it
    Project Name Helps you to manage your APIs if You work on multiple projects and Create multiple apis

  3. Generate API
    Step 1:
    Click on Generate API button
    Step 2: Select your Project Name that you Created before
    Step 3: Enter Your API Name (or App Name)
    Step 4: Select Your Database in which you have to perform the Operations
    Step 5: Select Your Table Name
    And Submit 
    Congrats you created your First 4 API for CRUD Operations

  4. Manage and Test APIs: With an intuitive dashboard, you can manage all your APIs, test their functionality, and even set up additional filters or validations.

  5. Deploy and Monitor: Once your APIs are ready, you can deploy them instantly and monitor their usage. SmartAPI includes analytics features to help you keep track of API calls, performance, and user interactions.
How SmartAPI Works?

These are Following Steps to use Smart API

  1. After Generate the APIs 4 APIs  Create, Read, Update and Delete are Created

  2. Your API Name, Project Name and Following information is showing on the Dashboard including API Key and CRUD Type

  3. CRUD column contains C, R, U, D values which defines the APIs operation type

  4. You have to Copy the API Key

  5. Paste your API Key after the URL
    Example -> https://smartapi.nikusoft.com/beta/api/YOUR_API_KEY

  1. Enter this URL in POSTMAN or Thunder Client

  2. And send the required Data on request Body in JSON format

How to use Smart API

These are the following steps to Customize Smart API

  • You have an Edit Button on the right side of your API Table

  • You can define that which Columns data you have to enter in your Database

  • Suppose you have to Enter Students Name and Age in the Database

  • You select the Name and Age column in where section and set the Values

  • And just Save the Changes

  • If you want to insert Multiple students Data

  • Do the same that mention in above and Select the Column name in where section and leave the where value blank

  • And Pass the Students Data in JSON body

Example:

  • Thats it you Your Data now Inserted to Your Database using API

Note: ALL the 4 Operations works in Same way for Detail Instruction go with Below links:

  • CREATE : LINK

  • READ : LINK

  • UPDATE : LINK

  • DELETE : LINK

 

For Read

{
  "columns":["column-1","column-2","column-3"],  // enter "*" to get all columns 
  "where":[
    {
      "column_name":"my-col-name",
      "value":"my-col-value",
      "condition":"OR"  // put condition only if you have multiple columns in Where clause 
    },
    {
      "column_name":"another-col-name",
      "value":"my-col-value"
    }
  ],
  "orderby":{
    "column_name":"my-col-name",
    "order":"ASC"
  },
  "limit":[4,1] // [limit, skip]
}
How to use Smart API

8. JSON Data format for Request Body

For Read

{
  "columns":["column-1","column-2","column-3"],  // enter "*" to get all columns 
  "where":[
    {
      "column_name":"my-col-name",
      "value":"my-col-value",
      "condition":"OR"  // put condition only if you have multiple columns in Where clause 
    },
    {
      "column_name":"another-col-name",
      "value":"my-col-value"
    }
  ],
  "orderby":{
    "column_name":"my-col-name",
    "order":"ASC"
  },
  "limit":[4,1] // [limit, skip]
}
 
For Create
 
{
    // column_name : value
    "first_name":"Avengers",
    "last_name":"Endgame"
}
 
For Update
 
{
    "set":{
        "first_name":"Iron-Man",
        "last_name":"Avengers"
    },
    "where":{
        "first_name":"Iron Man"
    }
}
 
For Delete
 
{
    "where":[
        {
            "column_name":"first_name",
            "value":"Avengers",
            "condition":"AND"
        },
        {
            "column_name":"last_name",
            "value":"Avengers"
        }
    ]
}

Graph Button :- Graph button shows you the Data of Your API that How many times your API called.

API Buttons Functionality

Documentation Button : You can write down the documentation, Notes, API purposes or whatever you want you can write down it here and don't want to worrying to write anywhere.

Public Button : This Button will make your API Documentation accessible to Everyone.
It will Upload Your API Documentation on OneDoubt.com Platform where everyone can read your API documentation.

OneDoubt is an Platform where you can learn about lot of Technology like Programming Languages, IOT, Software etc.

Duplicate API : This button will make a duplicate of your api with diffrent key but both api will work same.

It is very useful In case if you want to share you api with someone but just for a short time you can duplicate your api and share it and DELETE it when the work is done


Login
ADS CODE