Il tag HTML <frameset>



Descrizione

Il tag HTML <frameset> viene usato per dividere un finestra in due sezioni. Questo tag non è più supportato in HTML5.

Esempio

<!DOCTYPE html>
<html>
<head>
<title>HTML frameset Tag</title>
</head>
<body>
<frameset cols="200, *">
      <frame src="/html/menu.htm" name="menu_page" />
      <frame src="/html/main.htm" name="main_page" />
      <noframes>
      <body>
      Your browser does not support frames.
      </body>
      </noframes>
   </frameset>
</html>

Produrrà il seguente risultato, in relazione all' immagine qui sotto. Il frame di sinistra è il file menu.htm e quello di destra è main.htm.::

Frame Tag

Attributi Specifici

Il tag HTML <frameset> supporta anche i seguenti attributi aggiuntivi:

AttributoValoreDescrizione
cols column sizeDefinisce il numero di colonne e la loro larghezza in pixel, percentuale, o lunghezza relativa. Di default è 100%
rows row sizeDefinisce il numero di colonne e la loro altezza in pixel, percentuale, o lunghezza relativa. Di default è 100%

Compatibilità Browser

ChromeFirefoxIEOperaSafariAndroid
SiSiSiSiSiSi
html_tags_reference.htm
Advertisements