freeCodeCamp/guide/chinese/miscellaneous/challenge-dire-bonjour-aux-.../index.md

15 lines
630 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
title: Challenge Dire Bonjour Aux Elements HTML
localeTitle: 挑战向HTML元素问好
---
HTML元素使用开始标记结束标记和介于两者之间的内容编写
* `<nom-de-la-balise>contenu</nom-de-la-balise>`
HTML元素包括从开始标记到结束标记包含的所有内容
* `<p>Mon premier paragraphe HTML.</p>`
开始标记如下所示: `<h1>` ,结束标记如下所示: `</h1>`
* 请注意开始标记和结束标记之间的唯一区别是结束标记在打开的V形符号后面有一个斜杠。结束标记中的斜杠非常重要因为它表示标记是此元素的结尾。