Tag HTML <a parte>


Esempio

Visualizza alcuni contenuti oltre a quelli in cui è posizionato:

<p>My family and I visited The Epcot center this summer. The weather was nice, and Epcot was amazing! I had a great summer together with my family!</p>

<aside>
<h4>Epcot Center</h4>
<p>Epcot is a theme park at Walt Disney World Resort featuring exciting attractions, international pavilions, award-winning fireworks and seasonal special events.</p>
</aside>

Altri esempi "Provalo da solo" di seguito.


Definizione e utilizzo

Il <aside>tag definisce alcuni contenuti oltre al contenuto in cui è inserito.

Il contenuto a parte dovrebbe essere indirettamente correlato al contenuto circostante.

Suggerimento: il <aside>contenuto viene spesso posizionato come barra laterale in un documento.

Nota: l' <aside>elemento non viene visualizzato come qualcosa di speciale in un browser. Tuttavia, puoi usare CSS per definire lo stile <aside> dell'elemento (vedi esempio sotto).


Supporto browser

I numeri nella tabella specificano la prima versione del browser che supporta completamente l'elemento.

Element
<aside> 6.0 9.0 4.0 5.0 11.1

Attributi globali

Il <aside>tag supporta anche gli attributi globali in HTML .


Attributi dell'evento

Il <aside>tag supporta anche gli attributi dell'evento in HTML .



Altri esempi

Esempio

Usa CSS per dare uno stile all'elemento <aside>:

<html>
<head>
<style>
aside {
  width: 30%;
  padding-left: 15px;
  margin-left: 15px;
  float: right;
  font-style: italic;
  background-color: lightgray;
}
</style>
</head>
<body>

<h1>The aside element</h1>

<p>My family and I visited The Epcot center this summer. The weather was nice, and Epcot was amazing! I had a great summer together with my family!</p>

<aside>
<p>The Epcot center is a theme park at Walt Disney World Resort featuring exciting attractions, international pavilions, award-winning fireworks and seasonal special events.</p>
</aside>

<p>My family and I visited The Epcot center this summer. The weather was nice, and Epcot was amazing! I had a great summer together with my family!</p>
<p>My family and I visited The Epcot center this summer. The weather was nice, and Epcot was amazing! I had a great summer together with my family!</p>

</body>
</html>

Pagine correlate

Riferimento HTML DOM: Aside Object


Impostazioni CSS predefinite

La maggior parte dei browser visualizzerà l' <aside>elemento con i seguenti valori predefiniti:

aside {
  display: block;
}