Lists in HTML are a concept of gathering a number of data or elements arranged in a specific order organized for the purpose of being used in the program execution. HTML uses three types of lists, namely Ordered List, Unordered List and Definition List, where Unordered List is a type of list where the data or elements can be arranged in the list in no specific order. The syntax for the HTML Unordered List is
- ………..
- is the tag that indicates the unordered list type.
The three types of lists we could use to bring order to the web pages. Below are the different types:
- Ordered List
- Unordered list
- Definition List
In this article, we shall go through the unordered list specification with an example. The unordered list is a list that doesn’t require any order of numbering in their list; instead, we use bullets for the list levels.
Syntax of HTML Unordered List
The syntax for the unordered list is similar to the ordered list we created in the previous article. Unordered list is created using an element named
- element and ends with
- element.
- ………..
Example #1
This shows how this short item list is implemented in a browser.
<title> Demo on Unordered list</title><br> <h1 id="u-Demo-on-Unordered-list-u"><u>Demo on Unordered list</u></h1> <h2 id="Ingredients-for-making-of-cake">Ingredients for making of cake</h2> <h3> <ul type="square"> <li>Baking Powder</li> <li>Flour</li> <li> Sugar</li> <li>Coco poder</li> </ul> <h3> </h3> </h3>
Output:
This will give you the result like
Example #2
Unordered List with colors and for the positions.
<title>unordered list Demo2</title> <h1 id="Unordered-Disc">Unordered Disc</h1>
- Lion
- Tiger
- Giraffe
- Camel
Top Rhymes
- Johny Johny Yes papa
- Wheels on the Bus
- Baa Baa Black Sheep
Fruits Name List
- Avacado
- Orange
- Pears
- Banana
Output:
Types of Attributes for HTML Unordered List
To figure the unordered list, there are three primary types of attributes for this unordered element. The unordered list is used where it is not required to represent the lists in any specific orders. The following sections explain the related attributes and examples of them.
This attribute gives the type of bullets to be used in the list.
- type =’disc’ – Gives default bullet structure
- type =’square’ – Looks like solid box bullets
- type =’circle’ – Gives Hollow box structure
1. Attribute type=’disc.’
This is the default type, and all the items are marked as bullets. Here we use type attribute, and all these attributes support in HTML 3, To define under HTML5, we are supposed to implement list-style CSS. Here is an example demo.
Example:
<title> Demo on Unordered list Types</title><br> <h1 id="u-Demo-on-Unordered-list-Types-u"><u>Demo on Unordered list Types</u></h1>
- This is Program Agenda.
- First a Welcome Note
- Second We Start with the talks
- Opening Speech
- Mrs.Claria Winston from Ireland and Eyjolfur From Bank of America.
- Tea Break
- Last part from the topic Data Lake By Surendran Thomas.
Output:
2. Attribute type=’square.’
Here the items are marked with Square bullets.
Example:
Demonstrating the HTML code with the square bullet embedded with style color and the position.
<meta name="viewport" content="width=device-width, initial-scale=1.5"> <style> ul { list-style: square; } ul li::before { content: "\1022"; color: pink; font-weight: bold; display: inline-block; width: 0.8em; margin-left: -1em; } </style> <h2 id="List-of-top-hollywood-movies-Square">List of top hollywood movies-Square</h2>
- World Of the wars
- Mission Impossible
- Independence Day special
- Behind enemy lines
Output:
3. Attribute type=’circle.’
This attribute gives hollow bullet values. Below are the example rendering circle and square attribute together with the nested lists.
Example:
<title> EDUCBA List Example </title> ;style> h3{ color:orange; } ul{ list-style: none; } ul li::before { content: "\25AA"; color: brown; display: inline-block; width: 1em; margin-left: -0.8em; font-weight: bold; font-size:1rem; } <h1 id="List-of-Mobiles"> List of Mobiles</h1>
- Redmi Xiami
- Iphone
- Samsung
- Nokia
Mobile Operating System Supports
- Android
- Windows phone
- Samsung
- Nokia
Output:
Replacing HTML list Items with Customizable Images
This would ultimately enhance the overall theme and makes the website visually good. The default bullets are replaced by native style or even can customizable using images with CSS help. Actually speaking, there are three styling lists to be used in HTML. Here we go with a list-style-type and list-style-image.
Using image bullet is to make the lists more unique and differentiate the information by type, Giving the presentation a look on the web page.
In the below example, the examples are demonstrated by style properties between the list elements.
Example #1 – Style properties between the list elements
<title>HTML unordered list with Styles</title> <style> ul li { background: red; } ul.in.li { list-style: circle inside none; color: red; left: -20px; position: inside; text-align: left; width: 27px; }</style>
- Finland is a Scandinavian Country
- Oslo is the capital city
- Iceland is known for its beauty , hiking, fishing
- Ranked among the chillness country in europe
Output:
This will give out the output like
Example #2 – With image style
<style> ul { list-style-image: url('sqpurple.gif'); } </style> <h2 id="The-list-style-Demo">The list-style- Demo</h2> <p>Harry Potter Characters:</p>
- Harry
- Hermione
- Ron Weasely
Output:
결론
이제 HTML에서 정렬되지 않은 목록을 작성하는 방법을 살펴보았습니다. 우리는 순서가 지정되지 않은 블록 요소가 다양한 예제를 통해 웹 페이지를 생성하는 데 어떻게 역할을 하는지 살펴보고 일부 목록 기능을 탐색했습니다. 탐색 메뉴에서도 이를 사용하여 수직으로 표시할 수 있습니다. 순서가 지정되지 않은 목록을 만드는 것은 매우 간단합니다. 최상의 비트 위치를 위해 이 접근 방식을 수정할 위치를 고려하는 것이 중요합니다. 즉, 완벽한 문서는 HTML 목록 형식을 사용하는 것을 선호합니다.
위 내용은 HTML 비순차 목록의 상세 내용입니다. 자세한 내용은 PHP 중국어 웹사이트의 기타 관련 기사를 참조하세요!

HTML의 핵심 목적은 브라우저가 웹 컨텐츠를 이해하고 표시 할 수 있도록하는 것입니다. 1. HTML은 TO 등과 같은 태그를 통해 웹 페이지 구조와 컨텐츠를 정의합니다. 2. HTML5는 멀티미디어 지원을 향상시키고 소개 및 태그를 향상시킵니다. 3.html은 사용자 상호 작용을 지원하기위한 양식 요소를 제공합니다. 4. HTML 코드를 최적화하면 HTTP 요청 감소 및 HTML 압축과 같은 웹 페이지 성능이 향상 될 수 있습니다.

htmltagsareessentialforwebdevelopmentasthuctureandenhancewebpages.1) thefinelayout, semantics 및 internactivity.2) semantictagsimproveAccessibility 및 sseo.3) appleasoftagscanoptimizeperformanceandenseRocRossercompatiber.

일관된 HTML 인코딩 스타일은 코드의 가독성, 유지 가능성 및 효율성을 향상시키기 때문에 중요합니다. 1) 소문자 태그 및 속성 사용, 2) 일관된 압입 유지, 3) 단일 또는 이중 인용문을 선택하고 고수하십시오. 4) 프로젝트에서 다양한 스타일을 혼합하지 않으십시오.

솔루션 Bootstrap4에서 다중 프로 젝트 회전 목마를 구현하는 것은 부트 스트랩 4에서 멀티 프로 젝트 회전 목마를 구현하는 것은 쉬운 일이 아닙니다. 부트 스트랩 ...

마우스 스크롤링 이벤트 침투의 효과를 달성하는 방법은 무엇입니까? 웹을 탐색하면 종종 특별한 상호 작용 디자인이 발생합니다. 예를 들어, DeepSeek 공식 웹 사이트에서 � ...

HTML 비디오의 기본 재생 제어 스타일은 CSS를 통해 직접 수정할 수 없습니다. 1. JavaScript를 사용하여 사용자 정의 컨트롤을 만듭니다. 2. CSS를 통해 이러한 통제를 아름답게합니다. 3. video.js 또는 plyr와 같은 라이브러리를 사용하여 호환성, 사용자 경험 및 성능을 고려하면 프로세스를 단순화 할 수 있습니다.

휴대 전화에서 기본 선택을 사용하는 데있어 잠재적 인 문제는 모바일 애플리케이션을 개발할 때 종종 상자를 선택해야 할 필요가 있습니다. 일반적으로 개발자 ...

휴대 전화에서 기본 선택을 사용하는 단점은 무엇입니까? 모바일 장치에서 애플리케이션을 개발할 때는 올바른 UI 구성 요소를 선택하는 것이 매우 중요합니다. 많은 개발자 ...


핫 AI 도구

Undresser.AI Undress
사실적인 누드 사진을 만들기 위한 AI 기반 앱

AI Clothes Remover
사진에서 옷을 제거하는 온라인 AI 도구입니다.

Undress AI Tool
무료로 이미지를 벗다

Clothoff.io
AI 옷 제거제

Video Face Swap
완전히 무료인 AI 얼굴 교환 도구를 사용하여 모든 비디오의 얼굴을 쉽게 바꾸세요!

인기 기사

뜨거운 도구

메모장++7.3.1
사용하기 쉬운 무료 코드 편집기

SublimeText3 Linux 새 버전
SublimeText3 Linux 최신 버전

VSCode Windows 64비트 다운로드
Microsoft에서 출시한 강력한 무료 IDE 편집기

Eclipse용 SAP NetWeaver 서버 어댑터
Eclipse를 SAP NetWeaver 애플리케이션 서버와 통합합니다.

mPDF
mPDF는 UTF-8로 인코딩된 HTML에서 PDF 파일을 생성할 수 있는 PHP 라이브러리입니다. 원저자인 Ian Back은 자신의 웹 사이트에서 "즉시" PDF 파일을 출력하고 다양한 언어를 처리하기 위해 mPDF를 작성했습니다. HTML2FPDF와 같은 원본 스크립트보다 유니코드 글꼴을 사용할 때 속도가 느리고 더 큰 파일을 생성하지만 CSS 스타일 등을 지원하고 많은 개선 사항이 있습니다. RTL(아랍어, 히브리어), CJK(중국어, 일본어, 한국어)를 포함한 거의 모든 언어를 지원합니다. 중첩된 블록 수준 요소(예: P, DIV)를 지원합니다.