SlideShare a Scribd company logo
Les 2



CSS & HTML
        Navigatie
Navigatie
   <a href>
   De tag voor het maken van verwijzingen naar pagina’s of
   delen van een webpagina.


   <a href=“contact.html”target=“_self”title=“Contact”>Contact</a>



                           Het <a> element wordt gebruikt om de link naar de andere pagina te maken!
           <a>


                   Het <href> element voor het bepalen naar welke pagina je linkt!
<href>

                       Het <target> element wordt gebruikt te bepalen waar de link geopend wordt!
    <target>
                     Het <title> element wordt gebruikt om de link een title mee te geven !
 <title>


                         De inhoud van de <a></a> tag is het label van de link !
  <a>Contact</a>
Navigatie
Navigatie maken met list-items !
HTML

<ul id="nav">

<li><a href="#" target="_self" title="Home">Home</a></li>
<li><a   href="#"   target="_self"   title="Portfolio">Portfolio</a></li>
<li><a   href="#"   target="_self"   title="Diensten">Diensten</a></li>
<li><a   href="#"   target="_self"   title="Over Marcel">Over Marcel</a></li>
<li><a   href="#"   target="_self"   title="Contact">Contact</a></li>

</ul>


Css

ul { list-style-type:none;}

li { float: left;
padding-left: 5px;
         }
Navigatie

Stijlen van een lijst !
Css

ul { list-style-type:disc;}
Stijlen van een list-item !     Css

                                li { float: left;
                                padding-left: 5px;
                                         }




                              Css

                              li { float: left;
                              padding-left: 5px;
                              padding-bottom: 10px;
                              padding-right: 10px;
                              padding-top: 5px;
Stijlen van een list-item !


Css

                                      Css
a:link, a:visited, a:link {
         text-decoration: none;       a:link, a:visited, a:link {
         color: #00F;}                         text-decoration: none;
a:hover {text-transform:uppercase;}            color: #00F;}
ul {list-style-type:none;}            a:hover { border:dashed;
                                      color:#F33;
li { float: left;                     }
padding-left: 5px;
padding-bottom: 10px;
padding-right: 10px;
padding-top: 5px; }
De juiste code!

ul#nav {                                      Alleen voor de <ul> tag voor het element
            list-style:none;    }             met het ID nav.
#nav {      position: absolute;
            left: 300px;
            width: 1700px;
            height: 200px;}
#nav li {                                    Alleen voor de <li> tag voor het element
            float: left;                     met het ID nav.
            padding: 10px 10px 10px 10px;}
#nav li   a {

                                             Hoe ziet het er
            text-decoration: none;}
#nav li   a:link {
            text-decoration: none;

#nav li
            color: #00F;}
          a:visited {                        uit ??????
            text-decoration: none;
            color: #00F;;}
#nav li   a:active {
            text-decoration: none;
            color: #00F;;}

#nav li a:hover {
          background-color:#00F;
          color:#FFF;}
Opdracht 2 !


Voor opdracht 2 ga je de webpagina van opdracht 1
uitbreiden met de navigatie.

De navigatie moet bestaan uit de volgende labels.

Home | Portfolio | Diensten | Over | Contact

Hoe je de navigatie gaat vormgeven is geheel aan
jezelf.

De opdracht moet voor het het begin van de
volgende les opgeleverd worden.

Upload de pagina’s naar je eigen webomgeving en
stuur de link naar m.v.ginkel@rocleiden.nl
CSS & HTML

More Related Content

PPTX
Les 1 html
PPTX
Les 2 php prog 1
PPTX
Herhaling blok 8
PPTX
Les 1.4 php
PPTX
Les 3 php prog 2
PPTX
Les 1 Xml
PPTX
Configuration management
PPT
Inleiding Moederborden 2003
Les 1 html
Les 2 php prog 1
Herhaling blok 8
Les 1.4 php
Les 3 php prog 2
Les 1 Xml
Configuration management
Inleiding Moederborden 2003

Viewers also liked (10)

PPTX
Les 1.5 php
PPT
Inleiding Moederborden 2003
PDF
1.4 p font en h-tags_stylen
PDF
Html les 2.3_responsive_design
PPTX
Les 3 javascript
PDF
Html les 2.2_positioneren
PDF
Html les 2.1 Forms
PDF
HTML module 1 1.8 terugblik
PDF
1.1 basis
PDF
4.1 responsive design
Les 1.5 php
Inleiding Moederborden 2003
1.4 p font en h-tags_stylen
Html les 2.3_responsive_design
Les 3 javascript
Html les 2.2_positioneren
Html les 2.1 Forms
HTML module 1 1.8 terugblik
1.1 basis
4.1 responsive design
Ad

Similar to Wdreader2 (20)

PDF
1.4 html css basis 3
PPT
Next Web Sharing
PDF
Wdreader1
PDF
1.7 html css terugblik
PPT
Crossmedia les 12 de basis over Html
 
PPS
Css Positionering
PPT
Css positioning
PPT
PDF
1.7 terugblik module 1
PDF
Steps webcode-html-css
PPT
Cascading Style Sheets 2009
PDF
Werken met het CMS
PDF
1.5 html css basis 4
PDF
E-commerce met Magento webshop + koppeling met AccountView - Klantendag 2013
PDF
Webmarketing Checklist
PDF
Webmarketing checklist
PDF
SEO & Drupal
PPTX
Qreativ cms kennismaking
PPT
Presentatie #windesheim zoekmachine optimalisatie
PPT
Webdesign Les 7
1.4 html css basis 3
Next Web Sharing
Wdreader1
1.7 html css terugblik
Crossmedia les 12 de basis over Html
 
Css Positionering
Css positioning
1.7 terugblik module 1
Steps webcode-html-css
Cascading Style Sheets 2009
Werken met het CMS
1.5 html css basis 4
E-commerce met Magento webshop + koppeling met AccountView - Klantendag 2013
Webmarketing Checklist
Webmarketing checklist
SEO & Drupal
Qreativ cms kennismaking
Presentatie #windesheim zoekmachine optimalisatie
Webdesign Les 7
Ad

Wdreader2

  • 1. Les 2 CSS & HTML Navigatie
  • 2. Navigatie <a href> De tag voor het maken van verwijzingen naar pagina’s of delen van een webpagina. <a href=“contact.html”target=“_self”title=“Contact”>Contact</a> Het <a> element wordt gebruikt om de link naar de andere pagina te maken! <a> Het <href> element voor het bepalen naar welke pagina je linkt! <href> Het <target> element wordt gebruikt te bepalen waar de link geopend wordt! <target> Het <title> element wordt gebruikt om de link een title mee te geven ! <title> De inhoud van de <a></a> tag is het label van de link ! <a>Contact</a>
  • 3. Navigatie Navigatie maken met list-items ! HTML <ul id="nav"> <li><a href="#" target="_self" title="Home">Home</a></li> <li><a href="#" target="_self" title="Portfolio">Portfolio</a></li> <li><a href="#" target="_self" title="Diensten">Diensten</a></li> <li><a href="#" target="_self" title="Over Marcel">Over Marcel</a></li> <li><a href="#" target="_self" title="Contact">Contact</a></li> </ul> Css ul { list-style-type:none;} li { float: left; padding-left: 5px; }
  • 4. Navigatie Stijlen van een lijst ! Css ul { list-style-type:disc;}
  • 5. Stijlen van een list-item ! Css li { float: left; padding-left: 5px; } Css li { float: left; padding-left: 5px; padding-bottom: 10px; padding-right: 10px; padding-top: 5px;
  • 6. Stijlen van een list-item ! Css Css a:link, a:visited, a:link { text-decoration: none; a:link, a:visited, a:link { color: #00F;} text-decoration: none; a:hover {text-transform:uppercase;} color: #00F;} ul {list-style-type:none;} a:hover { border:dashed; color:#F33; li { float: left; } padding-left: 5px; padding-bottom: 10px; padding-right: 10px; padding-top: 5px; }
  • 7. De juiste code! ul#nav { Alleen voor de <ul> tag voor het element list-style:none; } met het ID nav. #nav { position: absolute; left: 300px; width: 1700px; height: 200px;} #nav li { Alleen voor de <li> tag voor het element float: left; met het ID nav. padding: 10px 10px 10px 10px;} #nav li a { Hoe ziet het er text-decoration: none;} #nav li a:link { text-decoration: none; #nav li color: #00F;} a:visited { uit ?????? text-decoration: none; color: #00F;;} #nav li a:active { text-decoration: none; color: #00F;;} #nav li a:hover { background-color:#00F; color:#FFF;}
  • 8. Opdracht 2 ! Voor opdracht 2 ga je de webpagina van opdracht 1 uitbreiden met de navigatie. De navigatie moet bestaan uit de volgende labels. Home | Portfolio | Diensten | Over | Contact Hoe je de navigatie gaat vormgeven is geheel aan jezelf. De opdracht moet voor het het begin van de volgende les opgeleverd worden. Upload de pagina’s naar je eigen webomgeving en stuur de link naar m.v.ginkel@rocleiden.nl