El principal problema de canviar entre pàgines HTML és que el navegador interpreta l'estructura del document de manera diferent en funció d'on us trobeu al document. Això pot provocar errors o comportaments inesperats.
There are many ways to switch between HTML pages. One way is to use a hyperlink. Hyperlinks are created using the <a> tag. The <a> tag defines a hyperlink, which is used to link from one page to another. The href attribute specifies the URL of the page to link to. <a href="page2.html">Click here to go to page 2</a>
Aquesta línia de codi crea un hiperenllaç que va a page2.html quan es fa clic.
Navegueu entre pàgines HTML
Hi ha algunes maneres de navegar entre pàgines HTML en HTML. Una manera és utilitzar el etiqueta. Per exemple, per anar a la segona pàgina d'un document HTML, utilitzareu el codi següent:
Què és una pàgina
?
Una pàgina en HTML és un document que conté tot el text i els gràfics que conformen una pàgina web.