我想去的地方
- 加拿大
美丽的国家。
美丽的国家。我想去的地方
<article id="places">
<h6>Places I'd like to visit</h6>
<ul>
<li>Canada</li>
<p>Beautiful Country.</p>
<figure>
<img src="img/calgaryalberta.jpg" alt="Calgary, Alberta" title="Alberta, Canada" loading="lazy">
<figcaption>
Calgary, Alberta, Canada.
</figcaption>
</figure>
<li>New Zealand</li>
<figure>
<img src="img/laketekaponewzealand.jpg" alt="laketekaponewzealand" title="Lake Tekapo New Zealand" loading="lazy">
<figcaption>
Lake Tekapo, New Zealand.
</figcaption>
</figure>
<li>Italy</li>
<figure>
<img src="img/Venice.jpg" alt="Venice" title="Venice" loading="lazy">
<figcaption>
Venice, Italy
</figcaption>
</figure>
<fieldset>
<legend>Your personal information</legend>
<p>
<label for="firstname">Name</label>
<input type="text" name="firstname" id="firstname" placeholder="Name" autocomplete="on" required autofocus>
</p>
<p>
<label for="lastname">Surname</label>
<input type="text" name="lastname" id="lastname" placeholder="Surname" autocomplete="on" required>
</p>
<p>
<label for="password">password</label>
<input type="password" name="password" id="password" placeholder="your password" required>
</p>
<p>
<label for="phone">Phone</label>
<input type="tel" name="phone" id="phone" placeholder="555555555" required>
</p>
<p>
<label for="birthyear">Birthyear</label>
<input type="number" name="birthyear" id="birthyear" min="1899" max="2025" step="1" required>
</p>
</fieldset>
<fieldset>
<label for="music">Favorite music:</label>
<select name="music" id="music">
<optgroup label="Music list">
<option value="rock">Rock</option>
<option value="metal">Metal</option>
<option value="jazz">Jazz</option>
<option value="blues">Blues</option>
<option value="pop">Pop</option>
<option value="classic">Classic</option>
<option value="other">Other</option>
</optgroup>
<label for="food">Favorite food:</label>
<select name="food" id="food" multiple size="5">
<optgroup label="Italian cuisine">
<option value="pizza">Pizza</option>
<option value="pasta">Pasta</option>
</optgroup>
<optgroup label="Turkish cuisine">
<option value="doner" selected>Döner</option>
<option value="iskender">İskender</option>
<option value="kebap">Kebap</option>
<option value="pide">Pide</option>
</optgroup>
<option value="other">Other</option>
</select>
</form>
这些区域出现了严重错误,不幸的是我无法理解 W3C 验证器所说的问题,因为我对 HTML 还不太熟悉。此外,出于某种原因,当我删除最后一个表单时,代码的页脚消失了。
我想制作 2 个表单,其中一个是最喜欢的音乐,结果没问题,但最后一个显示不正确。 例如: 还有没有办法在 ul 中包含一个图形元素? `your text``