SlideShare une entreprise Scribd logo
1  sur  10
Se abbiamo la necessità di realizzare un elenco possiamo usare
   due tipi di TAG i quali determinano:
                 gli elenchi ordinati
              gli elenchi non ordinati.
Gli elenchi ordinati sono contraddistinti dall’enumerazione degli elementi che
     compongono la lista ossia una serie progressiva ordinata e individuata da
     lettere o numeri.
Il TAG per aprire l’elenco è:
                                       <ol>
(“ordered list”) mentre quello per determinare gli elementi (“list item”) è:
                                        <li>
Esempio:


 HTML                                     Effetto
 <ol>                                     1. primo elemento
 <li>primo elemento</li>                  2. secondo elemento
 <li>secondo elemento</li>                3. terzo elemento
 <li>terzo elemento</li>
 </ol>
Lo stile di enumerazione visualizzata di default dal browser è quello numerica,
    ma è possibile indicare uno stile differente specificandolo per mezzo
    dell’attributo type:
Valori                                      Stile di Numerazione
         type = 1           Numeri arabi            1. Primo elemento
         (default)                                  2. Secondo
         type = “a”         Alfabeto                a. Primo elemento
                            minuscolo               b. Secondo elemento

         type = “A”         Alfabeto                A. Primo elemento
                            maiuscolo               B. Secondo elemento
         type = “i”         Numeri romani           i. Primo elemento
                            minuscolo               ii. secondo elemento
         type = “I”         Numeri romani           I. Primo elemento
                            maiuscolo               II. Secondo elemento
Il TAG da utilizzare per aprire un elenco non ordinato (elenchi puntati) è:
                                       <ul>
(“unordered list”) e gli elementi sono individuati dal TAG:
                                        <li>


Esempio:

           HTML                             Effetto
           <ul>                             • primo elemento
           <li>primo elemento</li>          • secondo elemento
           <li>secondo elemento</li>        • terzo elemento
           <li>terzo elemento</li>
           </ul>
Il tipo di simbolo grafico visualizzato di default dal browser è un “pallino pieno”,
       ma è possibile indicare uno stile differente specificandolo per mezzo
       dell’attributo type:


Valori                                        Stile di Numerazione
      type =“disc”           Pallino Pieno             • Primo elemento
        (default)                                      • Secondo elemento
     type = “circle”         Cerchio vuoto             o Primo elemento
                                                       o Secondo elemento

    type = “square”          Quadrato Pieno             Primo elemento
                                                        Secondo elemento
I link sono dei ponti che consentono di passare da un testo all’altro e sono
        formati da due componenti:



Contenuto                                      È la parte visibile del link che
                                            nasconde il collegamento sia che si
                                                           tratti di
                                                   immagine che di testo
Risorsa                                     È l’oggetto verso cui il collegamento
                                            punta che potrebbe essere un’altra
                                              pagina (sullo stesso server o su un
                                                  server diverso), oppure un
                                              collegamento interno a un punto
                                                     della pagina stessa
Il TAG che definisce un link è il seguente:
                                    <a>…</a>
Il TAG che definisce un link deve essere ovviamente dotato dell’attributo che si
     riferisce alla risorsa a cui esso è collegato.
L’attributo che gli assegniamo è il seguente:
                              href=“nomerisorsa”
Dove quindi nomerisorsa indica la destinazione del link.

Esempio:
<a href=“nomerisorsa”>collegamento…</a>
Collegamento… indica la parte di testo che compare sottolineata e di colore
    blu per rappresentare un link.
Ovviamente il colore del link può essere cambiato con alcuni attributi.
Collegamento ad una pagina interna del sito:
                 <a href=“prova.html”>Clicca Qui</a>
In questo caso cliccando sul testo Clicca Qui verremo spostati sulla pagina
    “prova.html” del nostro sito web.




Collegamento ad una pagina esterna del sito:
               <a href=“http://html.it”> Clicca Qui </a>
In questo caso cliccando sul testo Clicca Qui verremo reindirizzati al sito web
    “html.it”.
Creare due pagine HTML con tutti i TAG che conosci e con i rispettivi nomi:
 “index.html”
 “info.html”
Collega le due pagine con i rispettivi TAG che si chiameranno:
 Home
 Info
Nella “index” parlerai della tua pagina e perché l’hai creata mentre nella info
    parlerai di te, del tuo corpo e della tua vita.
HTML e CSS Terza Lezione

Contenu connexe

En vedette

Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 

En vedette (20)

Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 

HTML e CSS Terza Lezione

  • 1. Se abbiamo la necessità di realizzare un elenco possiamo usare due tipi di TAG i quali determinano: gli elenchi ordinati  gli elenchi non ordinati.
  • 2. Gli elenchi ordinati sono contraddistinti dall’enumerazione degli elementi che compongono la lista ossia una serie progressiva ordinata e individuata da lettere o numeri. Il TAG per aprire l’elenco è: <ol> (“ordered list”) mentre quello per determinare gli elementi (“list item”) è: <li> Esempio: HTML Effetto <ol> 1. primo elemento <li>primo elemento</li> 2. secondo elemento <li>secondo elemento</li> 3. terzo elemento <li>terzo elemento</li> </ol>
  • 3. Lo stile di enumerazione visualizzata di default dal browser è quello numerica, ma è possibile indicare uno stile differente specificandolo per mezzo dell’attributo type: Valori Stile di Numerazione type = 1 Numeri arabi 1. Primo elemento (default) 2. Secondo type = “a” Alfabeto a. Primo elemento minuscolo b. Secondo elemento type = “A” Alfabeto A. Primo elemento maiuscolo B. Secondo elemento type = “i” Numeri romani i. Primo elemento minuscolo ii. secondo elemento type = “I” Numeri romani I. Primo elemento maiuscolo II. Secondo elemento
  • 4. Il TAG da utilizzare per aprire un elenco non ordinato (elenchi puntati) è: <ul> (“unordered list”) e gli elementi sono individuati dal TAG: <li> Esempio: HTML Effetto <ul> • primo elemento <li>primo elemento</li> • secondo elemento <li>secondo elemento</li> • terzo elemento <li>terzo elemento</li> </ul>
  • 5. Il tipo di simbolo grafico visualizzato di default dal browser è un “pallino pieno”, ma è possibile indicare uno stile differente specificandolo per mezzo dell’attributo type: Valori Stile di Numerazione type =“disc” Pallino Pieno • Primo elemento (default) • Secondo elemento type = “circle” Cerchio vuoto o Primo elemento o Secondo elemento type = “square” Quadrato Pieno  Primo elemento  Secondo elemento
  • 6. I link sono dei ponti che consentono di passare da un testo all’altro e sono formati da due componenti: Contenuto È la parte visibile del link che nasconde il collegamento sia che si tratti di immagine che di testo Risorsa È l’oggetto verso cui il collegamento punta che potrebbe essere un’altra pagina (sullo stesso server o su un server diverso), oppure un collegamento interno a un punto della pagina stessa
  • 7. Il TAG che definisce un link è il seguente: <a>…</a> Il TAG che definisce un link deve essere ovviamente dotato dell’attributo che si riferisce alla risorsa a cui esso è collegato. L’attributo che gli assegniamo è il seguente: href=“nomerisorsa” Dove quindi nomerisorsa indica la destinazione del link. Esempio: <a href=“nomerisorsa”>collegamento…</a> Collegamento… indica la parte di testo che compare sottolineata e di colore blu per rappresentare un link. Ovviamente il colore del link può essere cambiato con alcuni attributi.
  • 8. Collegamento ad una pagina interna del sito: <a href=“prova.html”>Clicca Qui</a> In questo caso cliccando sul testo Clicca Qui verremo spostati sulla pagina “prova.html” del nostro sito web. Collegamento ad una pagina esterna del sito: <a href=“http://html.it”> Clicca Qui </a> In questo caso cliccando sul testo Clicca Qui verremo reindirizzati al sito web “html.it”.
  • 9. Creare due pagine HTML con tutti i TAG che conosci e con i rispettivi nomi:  “index.html”  “info.html” Collega le due pagine con i rispettivi TAG che si chiameranno:  Home  Info Nella “index” parlerai della tua pagina e perché l’hai creata mentre nella info parlerai di te, del tuo corpo e della tua vita.