HTML tutorial, understanding the optgroup element

HTML tutorial, understanding the optgroup element

Select the category selection. After testing, IE and FF can support this element well.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>runcode</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Author" content="Sheneyan" />
</head>
<body>
<select>
<optgroup label="a">
<option>a1</option>
<option>a2</option>
<option>a3</option>
</optgroup>
<optgroup label="b">
<option>b1</option>
<option>b2</option>
<option>b3</option>
</optgroup>
</select>
</body>
</html>

<<:  Detailed explanation of Vue's live broadcast function

>>:  Why is UTF-8 not recommended in MySQL?

Recommend

How to draw a vertical line between two div tags in HTML

Recently, when I was drawing an interface, I enco...

Parsing Linux source code epoll

Table of contents 1. Introduction 2. Simple epoll...

Advanced techniques for using CSS (used in actual combat)

1. The ul tag has a padding value by default in Mo...

Detailed explanation of special phenomena examples of sleep function in MySQL

Preface The sleep system function in MySQL has fe...

Nginx 502 Bad Gateway Error Causes and Solutions

I have encountered the Nginx 502 Bad Gateway erro...

...

Detailed steps to expand LVM disk in Linux

1. Add a hard disk 2. Check the partition status:...

MySQL uses init-connect to increase the implementation of access audit function

The mysql connection must first be initialized th...

How to upload projects to Code Cloud in Linux system

Create a new project test1 on Code Cloud Enter th...

Detailed explanation of JavaScript BOM composition and common events

Table of contents 1. BOM 2. Composition of BOM 2....

Detailed explanation of Nginx timed log cutting

Preface By default, Nginx logs are written to a f...

Detailed explanation of Strict mode in JavaScript

Table of contents Introduction Using Strict mode ...

CocosCreator ScrollView optimization series: frame loading

Table of contents 1. Introduction 2. Analysis of ...

Summary of Common Commands for Getting Started with MySQL Database Basics

This article uses examples to describe the common...