



Studia grazie alle numerose risorse presenti su Docsity
Guadagna punti aiutando altri studenti oppure acquistali con un piano Premium
Questa pagina non è visibile nell’anteprima
Non perderti parti importanti!




...........
..............
Il contenuto di un tag HTML è ciò che sta tra il tag di apertura e il tag di chiusura - questo è ciò che intendiamo quando diciamo "dentro" un tag. Il contenuto di un tag può essere testo normale o un mix di altri tag.
Dove dovrebbero stare i tuoi tag?
Qualsiasi contenuto visibile sulla tua pagina web deve stare tra il tag **** di apertura e il tag **** di chiusura, come nello screenshot qui sotto:
I tag **** e sono i contenuti del tag **** , quindi diciamo che stanno " dentro " al tag ****. In effetti, questi tag devono stare dentro il tag **** , quindi ricordatelo quando scrivi il tuo HTML per la tua prima sfida. Ora mettiti alla prova!
Altri tipi di tag:
interruzione di riga; ** ** liste non numerate, numerate e punti della lista; e **** evidenzia in grassetto o in corsivo; **** inserire un’immagine < img src ="" alt ="descrizione dell’immagine"width=””height=”” >
He likes to stay in and cuddle
Come selezionare uno stile ed assegnare un attributo di classe ad un gruppo di elementi (class). Agiamo sempre dentro lo
Apples and Bananas
I like to eat apples and bananas.
Come creare un link in HTML: Utilizziamo il tag **** che sta per ancora. Ha la funzione di ancorare il link in una determinata pagina.
**** Read more about the history of HTML ****
Per dire al browser di aprire il link in una nuova finestra utilizziamo il target: Read more about the history of HTML
Come creare link HTML interni alla pagina:
< a href="#web-history" >History of the web History of the web
Come inserire tabelle nella pagina web:
Our dinner menu
**
** Meal **** Ingredients Price
** **
Pizza Farina 5 euro
Pasticcio Carne 10 euro
** **
Come scrivere commenti in HTML: i browser ignorano completamente i commenti e non li fanno visualizzare in pagina.
< div class="info">
< span class="first-sentence">Groupers are teleosts (ray-finned fishes), typically having a stout body and a large mouth. < /span > They can be quite large, and lengths over a meter and weights up to 100 kg are not uncommon, though obviously in such a large group, species vary considerably. They swallow prey rather than biting pieces off it. They do not have many teeth on the edges of their jaws, but they have heavy crushing tooth plates inside the pharynx. They habitually eat fish, octopuses, and crustaceans. Reports of fatal attacks on humans by the largest species, the giant grouper (Epinephelus lanceolatus) are unconfirmed.
< **span** class="first-sentence">Their mouths and gills form a powerful sucking system that sucks their prey in from a distance. < **/span** >They also use their mouths to dig into sand to form their shelters under big rocks, jetting it out through their gills. Their gill muscles are so powerful, it is nearly impossible to pull them out of a cave if they feel attacked and extend those muscles to lock themselves in.
< **/div** >Proprietà posizione CSS: relative, absolute e fixed.
Proprietà float, permette di far fluttuare gli elementi dentro e intorno ad altri elementi, per esempio posizionare testi intorno ad altre immagini.
#hopper-pic { width: 100px; float: left ; margin-right: 6px; margin-bottom: 6px; }