English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Der HTML <figcaption>-Element ist eine Beschreibung des mit ihm verbundenen Bildes/Titel, der die anderen Daten im übergeordneten Element <figure> beschreibt. Dies bedeutet, dass <figcaption> im <figure>-Block der erste oder letzte ist. Gleichzeitig ist das HTML-Figcaption-Element optional; wenn dieses Element fehlt, wird das Bild im übergeordneten Knoten nur ohne Beschreibung angezeigt/Titel.
Verwenden Sie das <figure>-Element, um ein Bild in einem Dokument zu kennzeichnen. Das <figure>-Element hat einen Titel:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Grundlagen-Tutorial-Website(w3(codebox.com)</title> </head> <body> <figure> <img src="views.png" alt="views" width="304"height="228"> <figcaption>famous for its scenic beauty.</figcaption>/figcaption> </figure> </body> </html>Test See ‹/›
IEFirefoxOperaChromeSafari
IE 9Firefox, Opera, Chrome, and Safari support the <figcaption> tag.
Note:IE 8 or earlier versions of IE browsers do not support the <figcaption> tag.
The <figcaption> tag is for <figure> Element Defines Title.
The <figcaption> element should be placed at the first or last child element position of the <figure> element.
The <figcaption> Tag is an HTML5 New Tags in
Support for <figcaption> Tag Global Attributes of HTML.
Support for <figcaption> Tag HTML Event Attributes.