![]() |
The
While the content of the
Tip:
The <figcaption> element is used to add a caption for the |
Example:
HTML
<figure> <img src="https://horje.com/avatar.png" alt="Trulli" style="width:100%"> <figcaption>Fig.1 - Trulli, Puglia, Italy.</figcaption>
</figure>
Example:
HTML
<style>
figure { border: 1px #cccccc solid; padding: 4px; margin: auto;
}
figcaption { background-color: black; color: white; font-style: italic; padding: 2px; text-align: center;
}
</style>
<figure> <img src="https://horje.com/avatar.png" alt="Trulli" style="width:100%"> <figcaption>Fig.1 - Trulli, Puglia, Italy</figcaption>
</figure>
Example:
HTML
<style>
figure { display: block; margin-top: 1em; margin-bottom: 1em; margin-left: 40px; margin-right: 40px;
}
</style>
How to create HTML <figure> Tag | HTML Tag |
Which browser will support for HTML <figure> Tag | HTML Tag |
How to Use CSS to style <figure> and <figcaption> | HTML Tag |
How to set Default CSS Settings | HTML Tag |
Category
: |
Web Tutorial |
Sub Category
: |
HTML Tag |
Uploaded by
: |
Admin |
Read Article https://horje.com/learn/1434/reference