Il codice HTML è formato da istruzioni che vengono racchiuse tra i simboli < > chiamati tag.
Ogni tag va aperto quando si vuole eseguire una certa funzione
e chiuso una volta terminata l'istruzione
Ogni file HTML deve essere strutturato in questo modo utilizzando questi tag
Il tag alla riga 1 deve essere sempre scritto
Il tag <html> è necessario per iniziare a scrivere il proprio codice della pagina web e va chiuso con il tag </html> alla fine del nostro codice
La prozione di codice:
è l' intestazione della pagina: qui si può inserire il nome della pagina tramite i tag <title> titolo pagina </title> che verrà visualizzato sulla scheda del browser e tante altre informazioni riguardanti la struttura della pagina
La prozione di codice:
è il corpo della pagina: all'interno dei tag <body> e </body> possiamo inserire tutto quello che vogliamo visualizzare nella nostra pagina Web come testo, tabelle, grafici, immagini, video, animazioni, ecc.
All'interno del codice HTML è possibile inserire dei commenti per descrivere alcune porzioni di codice come accade su qualsiasi linguaggio di programmazione.
Per inserire i commenti basta inserire il testo che si vuole scrivere tra i tag <!-- -->
Ogni tag va aperto quando si vuole eseguire una certa funzione
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
</html> |
Ogni file HTML deve essere strutturato in questo modo utilizzando questi tag
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Titolo pagina</title> | |
</head> | |
<body> | |
<!-- Questo è un commento! --> | |
</body> | |
</html> |
Il tag <html> è necessario per iniziare a scrivere il proprio codice della pagina web e va chiuso con il tag </html> alla fine del nostro codice
La prozione di codice:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head> | |
<title>Titolo pagina</title> | |
</head> |
La prozione di codice:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body> | |
<!-- Questo è un commento! --> | |
</body> |
All'interno del codice HTML è possibile inserire dei commenti per descrivere alcune porzioni di codice come accade su qualsiasi linguaggio di programmazione.
Per inserire i commenti basta inserire il testo che si vuole scrivere tra i tag <!-- -->
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--Questo è un commento--> |
Commenti
Posta un commento