Comment text here/p>
Markup er en vakker ting, og det har sikkert endret seg gjennom årene. Hva som var effektivt HTML1, har sikkert kommet til et fantastisk semantisk oppslagsspråk, som vi i stor grad kan takke W3C. Og hva vet du, den neste tingen å takke dem for har kommet til - HTML5.
I motsetning til tidligere versjon av HTML, hvor koden hovedsakelig var en begrenset struktur som ble bestemt av hvordan du brukte klassen og ID-elementene, prøver html5 virkelig å gi mye mer struktur.
Alt layoutet kan opprettes med semantiske koder og elementer som bestemmer hvordan du skal strukturere, og uten tvil viktigere, som hjelper deg med å strukturere hver side. Dette produserer kode som er mye mer rent og lesbar enn i tidligere versjoner av HTML, og egentlig er noe ganske utrolig. De nye kodene krever virkelig at du tenker på hvordan du strukturerer siden din, noe som gjør oss ærlige - til slutt er det en flott ting for oss både webdesignere og utviklere.
Før du forstår strukturen til HTML5, og hvordan du lager og kodes en eksempelsjema som skal brukes til prosjektene dine, bør du være oppmerksom på hvordan det oppsto. Vær oppmerksom på at den nåværende versjonen av HTML5 ikke har nådd en versjon som W3C kan kalle endelig til, men det er ganske mye å lære om og begynne å bruke i koden akkurat nå. Her er hva W3C har å si om dette problemet:
"Implementere bør være oppmerksomme på at denne spesifikasjonen ikke er stabil. Implementere som ikke deltar i diskusjonene, vil sannsynligvis finne spesifikasjonen som endres ut fra dem på uforenlige måter. Leverandører som er interessert i å implementere denne spesifikasjonen før den når frem til kandidat anbefalingsstadiet, bør være med på de nevnte postlister og delta i diskusjoner .”
Men ikke la det skremme deg. Det er alltid folk der ute, og sørger for at det ikke blir forandret ut fra alle av oss. Så du vil helt sikkert være oppmerksom på om en slik drastisk endring faktisk skjer. Tilbake på tema, et av de viktigste spørsmålene folk har om HTML5 er "
Det kom faktisk fra oss alle. I 2005 gjennomførte Google en studere på over 3 milliarder nettsteder og fant ut at de vanligste klassene som ble brukt i felles oppslag var faktisk hva du ser der på den siden. Footer, meny, tittel, liten, tekst, innhold, topptekst og nav er alle blant toppen av populasjonsdiagrammet. Og i hovedsak er det slik W3C bestemte seg for hva de skal bruke for de nye semantiske kodene for HTML5. Nå som vi vet om det, la oss dykke rett inn i hva disse kodene er, og de grunnleggende grunnleggende endringene i HTML5.
En doktype er ikke spesielt et element i HTML, men det er en retardasjon, og en som er blitt mer og viktigere etter hvert som tiden går. Å bruke en på riktig måte kan hjelpe nettleseren din å forstå hva slags HTML det prøver å analysere, slik at vi alltid vil bruke de aktuelle doktypene. I all ærlighet, på denne nåværende tid kan du ganske enkelt bare bruke HTML5-doktypen for alt skjønt - men la oss også dekke noen tidligere. Her er hvor vi har kommet så langt som enkelhet:
Ganske bra riktig? Du trenger ikke å holde et dokument for å kopiere og lime inn litt latterlig lang doktype, eller enda verre ennå, prøv å huske de latterlig lange doktypene av versjoner forbi. For HTML5 må du bare skrive . Ah, hvilken lettelse.
Før vi forlater denne delen, la oss gå gjennom noen av de andre elementene som har blitt enklere. Rotteelementet har blitt forenklet, som i stedet for å skrive noe som:
Vi kan bare skrive:
Tingene vi trenger å kopiere og lime inn, blir mindre og mindre i minuttet. For eksempel, også i hovedelementet, gikk vår tegnkodning fra ting som:
til den nyere versjonen i HTML5:
Og til slutt, våre lenker har falt deres type attributt. Så for eksempel dette:
Blir dette:
Delelementet er i utgangspunktet noen generiske deler av et HTML-dokument. Mest typisk, men det er en tematisk gruppering av innhold - som kan ha en overskrift, men krever ikke en.
En generell tommelfingerregel for bruk av seksjonens overskrift, er bare å bruke den hvis den er eksplisitt referert i dokumentets disposisjon. Hvis i oversikten var det en "seksjon" som du refererte til eller føler at alt innholdet i ett område er en "seksjon" av sorter - så inkluderer du faktisk delen-taggen. Hvis du vil bruke den hovedsakelig for styling formål, bare ikke . I stedet bruker du a
Nav-elementet representerer hvilken som helst del av en side som lenker til andre deler av den aktuelle siden eller andre sider i sidekartet. Når du tenker på navigasjonsforbindelser, bør du tenke "nav tag".
Nav-elementet er spesielt beregnet for større navigasjonsblokker. Ethvert stort element som lenker til andre deler av nettstedets side eller andre sider på nettstedet. Vær oppmerksom på at en navigasjonsseksjon ikke må være i form av en liste, om enn det er ganske vanlig. Det kan være i prosa, avsnittetiketter, eller ganske mye noe - så lenge det var opprinnelig egnet til å være i slike koder i utgangspunktet.
Artikkelelementet representerer en selvstendig sammensetning i et dokument, en side eller et hvilket som helst nettsted. Den veldig viktige tingen å huske på med artikkeltagsordene er at det vanligvis er uavhengig distribuert eller gjenbrukbart innhold som vanligvis er plassert i kodene. Det kan være et foruminnlegg, et magasin eller en avisartikkel, eller en bloggoppføring, selv kommentarer - så lenge det er et uavhengig innholdsinnhold.
Artikler kan holde "seksjoner" inne i dem, "header" s inne i dem, selv "hgroup" s inne i dem. Men husk når og hvordan du bruker dette elementet, da det ikke er så vanlig som en
La oss hoppe inn i et eksempel. For eksempel, la oss si at du har et blogginnlegg med noen kommentarer. Du kan gjøre det slik i HTML5:
The Blog Entry Title
12/25/2045
Blog entry
...
Comments
Comment text here/p>
Another comment here
Bortsettelementet representerer hvilken som helst del av en side som består av innhold som er tangentielt relatert til innholdet rundt bortsett-elementet. Den viktigste tingen å huske med denne taggen er at selv om det er innhold som er tangentielt relatert til innholdet rundt merket, er det vanligvis informasjon eller innhold som er skilt i karakteristikk. Du vil oftest bruke den i sidebjelker, siden de fleste sidebjørner er perfekte for å være helt innpakket i sideord. Andre bruksområder kan inkludere pull citer, biter av annonsering, grupper av nav-linker eller til og med adresser nær adressen til et sted i spørsmålet.
For å komme inn i flere detaljer skjønt, er det når som helst du føler behov for å bokstavelig talt ta en til side og forklare, referere, nevne, stille eller stille spørsmål. Du kan til og med bruke et sideelement for en større del av et nettsted, for eksempel en sidelinje for Twitter, eller Facebook, eller tilfeldige lenker. Du kan få det til å være til side, så bruk en header- og nav-seksjon i det selv for å forstå hva som skjer der. Du kan bruke den i footer-delen av blogginnlegg for å referere til ting om dem, eller ganske mye hvor som helst det kan bli perfekt implementert.
Hgroup-elementet representerer overskriften til en seksjon. Dette elementet brukes best til å gruppere et sett med h1-h6-elementer når overskriften har flere nivåer eller underoverskrifter - for eksempel nøyaktig artikkelen du leser. Dette ville være perfekt for en hgroup. Du kan også bruke den til alternative titler eller taglinjer.
W3C minner oss:
"Med hensyn til dokumentresuméer, skisser og lignende, er teksten til hgroup-elementene definert som teksten til den høyest rangerte h1-h6-elementets etterkommer av hgroup-elementet, hvis det finnes slike elementer, og den første element hvis det er flere elementer med denne rangen. Hvis det ikke finnes slike elementer, er teksten til hgroup-elementet den tomme strengen.
Andre bruksområder, for eksempel, inkluderer områder av en blogg der du oppfører overskriften og underteksten for blogginnlegget ditt. Du kan også bruke den til boktitler og beskrivelser, for å opplyse leger i ditt område og deres kompetanseområder, eller til og med bruke det til å bidra til å replikere funksjonaliteten til et bord. La oss ta en titt på et slikt eksempel nå. På et bord ville vi ha:
Doctor Name:
Randy McDocterson
Doctor Specialty
Slapping People
Så der kan du tydeligvis se, at vi har en lege ved navn Randy McDoctoerson, som spesialiserer seg på slapping av folk. Nå er det litt rart, men hei - det blir poenget på tvers.
Header-taggen representerer en gruppe innledende eller navigasjonshjelpemidler på et nettsted eller deler av et nettsted. Så nå som den formelle definisjonen er blitt uttalt, la oss slå den ned litt. Vi vet alle hva en header er, men for å være spesifikk inkluderer den forskjellige ting på toppen av de fleste nettsteder. Disse topptekstområdene inkluderer vanligvis merkevareavdelinger, ring til handlingsobjekter, og kanskje litt navigering. Egentlig kan det brukes noe sted du pleide å skrive:
Merk: Det kan brukes i et hvilket som helst seksjons begynnelsesområde, da det ikke må være i toppen eller begynnelsen av HTML-dokumentet. Men det er her det er mest typisk implementert.
Bunntekstelementet representerer en bunntekst for den nærmeste nestede forelderseksjonen, og inneholder vanligvis informasjon om foreldreseksjonen. Bunnteksten er veldig lik topptekst, men for motsatt side av en side. Ofte vil du se en bunntekst på en side som inneholder lenker igjen som var i navigasjonen, og kanskje en logo eller andre slike ting - vel alle disse kan nå bli plassert i en
Lorem
ipsum
Noen tekst her.
The “address” tag The address element represents the contact information for its nearest article or body element. I think the example best describes this tag so let's dive right in. ../People/Raggett/">Dave Raggett , Arnaud Le Hors ,contact persons for the W3C HTML Activity I think that very aptly describes the address tag, but the W3C would also like to note that typically the address element would be included along with other information in a footer element. So, this would work specifically for the email or about.me link at bottoms of websites (near the copyright information particularly). You can house that in an address element like so: mailto: [email protected] ">John Smith . © copyright 2038 Example Corp. And that just about wraps up all the important elements and new tags for HTML5. Keep in mind though, that wasn't ALL the tags available, but it was some of the more important ones and particularly the ones we will be working with today. HTML5 Template So now that we have learned about HTML5, let's get into coding our own template. Let's start with an average document. Now let's add the stylesheet link, just for good practice, even though we may not use it. Now I think it'd be a good time to start setting up our body element with some structure for us to use on other projects. So with that in mind let's do: Now, as you can see, we have a bit of a place for our content to go. We have a few designated sections. We have a designated header, footer, and section element within the document – but now let's add a navigation element as well. style.css"> HTML5 Template Pretty standard template Home About HTML5
Arnaud Le Hors ,contact persons for the W3C HTML Activity I think that very aptly describes the address tag, but the W3C would also like to note that typically the address element would be included along with other information in a footer element. So, this would work specifically for the email or about.me link at bottoms of websites (near the copyright information particularly). You can house that in an address element like so: mailto: [email protected] ">John Smith . © copyright 2038 Example Corp. And that just about wraps up all the important elements and new tags for HTML5. Keep in mind though, that wasn't ALL the tags available, but it was some of the more important ones and particularly the ones we will be working with today. HTML5 Template So now that we have learned about HTML5, let's get into coding our own template. Let's start with an average document. Now let's add the stylesheet link, just for good practice, even though we may not use it. Now I think it'd be a good time to start setting up our body element with some structure for us to use on other projects. So with that in mind let's do: Now, as you can see, we have a bit of a place for our content to go. We have a few designated sections. We have a designated header, footer, and section element within the document – but now let's add a navigation element as well. style.css"> HTML5 Template Pretty standard template Home About HTML5
The “address” tag The address element represents the contact information for its nearest article or body element. I think the example best describes this tag so let's dive right in. ../People/Raggett/">Dave Raggett , Arnaud Le Hors ,contact persons for the W3C HTML Activity I think that very aptly describes the address tag, but the W3C would also like to note that typically the address element would be included along with other information in a footer element. So, this would work specifically for the email or about.me link at bottoms of websites (near the copyright information particularly). You can house that in an address element like so: mailto: [email protected] ">John Smith . © copyright 2038 Example Corp. And that just about wraps up all the important elements and new tags for HTML5. Keep in mind though, that wasn't ALL the tags available, but it was some of the more important ones and particularly the ones we will be working with today. HTML5 Template So now that we have learned about HTML5, let's get into coding our own template. Let's start with an average document. Now let's add the stylesheet link, just for good practice, even though we may not use it. Now I think it'd be a good time to start setting up our body element with some structure for us to use on other projects. So with that in mind let's do: Now, as you can see, we have a bit of a place for our content to go. We have a few designated sections. We have a designated header, footer, and section element within the document – but now let's add a navigation element as well. style.css"> HTML5 Template Pretty standard template Home About HTML5 The “address” tag The address element represents the contact information for its nearest article or body element. I think the example best describes this tag so let's dive right in. ../People/Raggett/">Dave Raggett , Arnaud Le Hors ,contact persons for the W3C HTML Activity I think that very aptly describes the address tag, but the W3C would also like to note that typically the address element would be included along with other information in a footer element. So, this would work specifically for the email or about.me link at bottoms of websites (near the copyright information particularly). You can house that in an address element like so: mailto: [email protected] ">John Smith . © copyright 2038 Example Corp. And that just about wraps up all the important elements and new tags for HTML5. Keep in mind though, that wasn't ALL the tags available, but it was some of the more important ones and particularly the ones we will be working with today. HTML5 Template So now that we have learned about HTML5, let's get into coding our own template. Let's start with an average document. Now let's add the stylesheet link, just for good practice, even though we may not use it. Now I think it'd be a good time to start setting up our body element with some structure for us to use on other projects. So with that in mind let's do: Now, as you can see, we have a bit of a place for our content to go. We have a few designated sections. We have a designated header, footer, and section element within the document – but now let's add a navigation element as well. style.css"> HTML5 Template Pretty standard template Home About HTML5
The “address” tag The address element represents the contact information for its nearest article or body element. I think the example best describes this tag so let's dive right in. ../People/Raggett/">Dave Raggett , Arnaud Le Hors ,contact persons for the W3C HTML Activity I think that very aptly describes the address tag, but the W3C would also like to note that typically the address element would be included along with other information in a footer element. So, this would work specifically for the email or about.me link at bottoms of websites (near the copyright information particularly). You can house that in an address element like so: mailto: [email protected] ">John Smith . © copyright 2038 Example Corp. And that just about wraps up all the important elements and new tags for HTML5. Keep in mind though, that wasn't ALL the tags available, but it was some of the more important ones and particularly the ones we will be working with today. HTML5 Template So now that we have learned about HTML5, let's get into coding our own template. Let's start with an average document. Now let's add the stylesheet link, just for good practice, even though we may not use it. Now I think it'd be a good time to start setting up our body element with some structure for us to use on other projects. So with that in mind let's do: Now, as you can see, we have a bit of a place for our content to go. We have a few designated sections. We have a designated header, footer, and section element within the document – but now let's add a navigation element as well. style.css"> HTML5 Template Pretty standard template Home About HTML5
The “address” tag The address element represents the contact information for its nearest article or body element. I think the example best describes this tag so let's dive right in. ../People/Raggett/">Dave Raggett , Arnaud Le Hors ,contact persons for the W3C HTML Activity I think that very aptly describes the address tag, but the W3C would also like to note that typically the address element would be included along with other information in a footer element. So, this would work specifically for the email or about.me link at bottoms of websites (near the copyright information particularly). You can house that in an address element like so: mailto: [email protected] ">John Smith . © copyright 2038 Example Corp. And that just about wraps up all the important elements and new tags for HTML5. Keep in mind though, that wasn't ALL the tags available, but it was some of the more important ones and particularly the ones we will be working with today. HTML5 Template So now that we have learned about HTML5, let's get into coding our own template. Let's start with an average document. Now let's add the stylesheet link, just for good practice, even though we may not use it. Now I think it'd be a good time to start setting up our body element with some structure for us to use on other projects. So with that in mind let's do: Now, as you can see, we have a bit of a place for our content to go. We have a few designated sections. We have a designated header, footer, and section element within the document – but now let's add a navigation element as well. style.css"> HTML5 Template Pretty standard template Home About HTML5
The “address” tag The address element represents the contact information for its nearest article or body element. I think the example best describes this tag so let's dive right in. ../People/Raggett/">Dave Raggett , Arnaud Le Hors ,contact persons for the W3C HTML Activity I think that very aptly describes the address tag, but the W3C would also like to note that typically the address element would be included along with other information in a footer element. So, this would work specifically for the email or about.me link at bottoms of websites (near the copyright information particularly). You can house that in an address element like so: mailto: [email protected] ">John Smith . © copyright 2038 Example Corp. And that just about wraps up all the important elements and new tags for HTML5. Keep in mind though, that wasn't ALL the tags available, but it was some of the more important ones and particularly the ones we will be working with today. HTML5 Template So now that we have learned about HTML5, let's get into coding our own template. Let's start with an average document. Now let's add the stylesheet link, just for good practice, even though we may not use it. Now I think it'd be a good time to start setting up our body element with some structure for us to use on other projects. So with that in mind let's do: Now, as you can see, we have a bit of a place for our content to go. We have a few designated sections. We have a designated header, footer, and section element within the document – but now let's add a navigation element as well. style.css"> HTML5 Template Pretty standard template Home About HTML5
The “address” tag The address element represents the contact information for its nearest article or body element. I think the example best describes this tag so let's dive right in. ../People/Raggett/">Dave Raggett , Arnaud Le Hors ,contact persons for the W3C HTML Activity I think that very aptly describes the address tag, but the W3C would also like to note that typically the address element would be included along with other information in a footer element. So, this would work specifically for the email or about.me link at bottoms of websites (near the copyright information particularly). You can house that in an address element like so: mailto: [email protected] ">John Smith . © copyright 2038 Example Corp. And that just about wraps up all the important elements and new tags for HTML5. Keep in mind though, that wasn't ALL the tags available, but it was some of the more important ones and particularly the ones we will be working with today. HTML5 Template So now that we have learned about HTML5, let's get into coding our own template. Let's start with an average document. Now let's add the stylesheet link, just for good practice, even though we may not use it. Now I think it'd be a good time to start setting up our body element with some structure for us to use on other projects. So with that in mind let's do: Now, as you can see, we have a bit of a place for our content to go. We have a few designated sections. We have a designated header, footer, and section element within the document – but now let's add a navigation element as well. style.css"> HTML5 Template Pretty standard template Home About HTML5
The “address” tag The address element represents the contact information for its nearest article or body element. I think the example best describes this tag so let's dive right in. ../People/Raggett/">Dave Raggett , Arnaud Le Hors ,contact persons for the W3C HTML Activity I think that very aptly describes the address tag, but the W3C would also like to note that typically the address element would be included along with other information in a footer element. So, this would work specifically for the email or about.me link at bottoms of websites (near the copyright information particularly). You can house that in an address element like so: mailto: [email protected] ">John Smith . © copyright 2038 Example Corp. And that just about wraps up all the important elements and new tags for HTML5. Keep in mind though, that wasn't ALL the tags available, but it was some of the more important ones and particularly the ones we will be working with today. HTML5 Template So now that we have learned about HTML5, let's get into coding our own template. Let's start with an average document. Now let's add the stylesheet link, just for good practice, even though we may not use it. Now I think it'd be a good time to start setting up our body element with some structure for us to use on other projects. So with that in mind let's do: Now, as you can see, we have a bit of a place for our content to go. We have a few designated sections. We have a designated header, footer, and section element within the document – but now let's add a navigation element as well. style.css"> HTML5 Template Pretty standard template Home About HTML5
HTML5 Template
The “address” tag The address element represents the contact information for its nearest article or body element. I think the example best describes this tag so let's dive right in. ../People/Raggett/">Dave Raggett , Arnaud Le Hors ,contact persons for the W3C HTML Activity I think that very aptly describes the address tag, but the W3C would also like to note that typically the address element would be included along with other information in a footer element. So, this would work specifically for the email or about.me link at bottoms of websites (near the copyright information particularly). You can house that in an address element like so: mailto: [email protected] ">John Smith . © copyright 2038 Example Corp. And that just about wraps up all the important elements and new tags for HTML5. Keep in mind though, that wasn't ALL the tags available, but it was some of the more important ones and particularly the ones we will be working with today. HTML5 Template So now that we have learned about HTML5, let's get into coding our own template. Let's start with an average document. Now let's add the stylesheet link, just for good practice, even though we may not use it. Now I think it'd be a good time to start setting up our body element with some structure for us to use on other projects. So with that in mind let's do: Now, as you can see, we have a bit of a place for our content to go. We have a few designated sections. We have a designated header, footer, and section element within the document – but now let's add a navigation element as well. style.css"> HTML5 Template Pretty standard template Home About HTML5
HTML5 Template
The “address” tag The address element represents the contact information for its nearest article or body element. I think the example best describes this tag so let's dive right in. ../People/Raggett/">Dave Raggett , Arnaud Le Hors ,contact persons for the W3C HTML Activity I think that very aptly describes the address tag, but the W3C would also like to note that typically the address element would be included along with other information in a footer element. So, this would work specifically for the email or about.me link at bottoms of websites (near the copyright information particularly). You can house that in an address element like so: mailto: [email protected] ">John Smith . © copyright 2038 Example Corp. And that just about wraps up all the important elements and new tags for HTML5. Keep in mind though, that wasn't ALL the tags available, but it was some of the more important ones and particularly the ones we will be working with today. HTML5 Template So now that we have learned about HTML5, let's get into coding our own template. Let's start with an average document. Now let's add the stylesheet link, just for good practice, even though we may not use it. Now I think it'd be a good time to start setting up our body element with some structure for us to use on other projects. So with that in mind let's do: Now, as you can see, we have a bit of a place for our content to go. We have a few designated sections. We have a designated header, footer, and section element within the document – but now let's add a navigation element as well. style.css"> HTML5 Template Pretty standard template Home About HTML5
HTML5 Template The “address” tag The address element represents the contact information for its nearest article or body element. I think the example best describes this tag so let's dive right in. ../People/Raggett/">Dave Raggett , Arnaud Le Hors ,contact persons for the W3C HTML Activity I think that very aptly describes the address tag, but the W3C would also like to note that typically the address element would be included along with other information in a footer element. So, this would work specifically for the email or about.me link at bottoms of websites (near the copyright information particularly). You can house that in an address element like so: mailto: [email protected] ">John Smith . © copyright 2038 Example Corp. And that just about wraps up all the important elements and new tags for HTML5. Keep in mind though, that wasn't ALL the tags available, but it was some of the more important ones and particularly the ones we will be working with today. HTML5 Template So now that we have learned about HTML5, let's get into coding our own template. Let's start with an average document. Now let's add the stylesheet link, just for good practice, even though we may not use it. Now I think it'd be a good time to start setting up our body element with some structure for us to use on other projects. So with that in mind let's do: Now, as you can see, we have a bit of a place for our content to go. We have a few designated sections. We have a designated header, footer, and section element within the document – but now let's add a navigation element as well. style.css"> HTML5 Template Pretty standard template Home About HTML5
HTML5 Template Arnaud Le Hors ,contact persons for the W3C HTML Activity I think that very aptly describes the address tag, but the W3C would also like to note that typically the address element would be included along with other information in a footer element. So, this would work specifically for the email or about.me link at bottoms of websites (near the copyright information particularly). You can house that in an address element like so: mailto: [email protected] ">John Smith . © copyright 2038 Example Corp. And that just about wraps up all the important elements and new tags for HTML5. Keep in mind though, that wasn't ALL the tags available, but it was some of the more important ones and particularly the ones we will be working with today. HTML5 Template So now that we have learned about HTML5, let's get into coding our own template. Let's start with an average document. Now let's add the stylesheet link, just for good practice, even though we may not use it. Now I think it'd be a good time to start setting up our body element with some structure for us to use on other projects. So with that in mind let's do: Now, as you can see, we have a bit of a place for our content to go. We have a few designated sections. We have a designated header, footer, and section element within the document – but now let's add a navigation element as well. style.css"> HTML5 Template Pretty standard template Home About HTML5The “address” tag The address element represents the contact information for its nearest article or body element. I think the example best describes this tag so let's dive right in. ../People/Raggett/">Dave Raggett , Arnaud Le Hors ,contact persons for the W3C HTML Activity I think that very aptly describes the address tag, but the W3C would also like to note that typically the address element would be included along with other information in a footer element. So, this would work specifically for the email or about.me link at bottoms of websites (near the copyright information particularly). You can house that in an address element like so: mailto: [email protected] ">John Smith . © copyright 2038 Example Corp. And that just about wraps up all the important elements and new tags for HTML5. Keep in mind though, that wasn't ALL the tags available, but it was some of the more important ones and particularly the ones we will be working with today. HTML5 Template So now that we have learned about HTML5, let's get into coding our own template. Let's start with an average document. Now let's add the stylesheet link, just for good practice, even though we may not use it. Now I think it'd be a good time to start setting up our body element with some structure for us to use on other projects. So with that in mind let's do: Now, as you can see, we have a bit of a place for our content to go. We have a few designated sections. We have a designated header, footer, and section element within the document – but now let's add a navigation element as well. style.css"> HTML5 Template Pretty standard template Home About HTML5
The “address” tag The address element represents the contact information for its nearest article or body element. I think the example best describes this tag so let's dive right in. ../People/Raggett/">Dave Raggett , Arnaud Le Hors ,contact persons for the W3C HTML Activity I think that very aptly describes the address tag, but the W3C would also like to note that typically the address element would be included along with other information in a footer element. So, this would work specifically for the email or about.me link at bottoms of websites (near the copyright information particularly). You can house that in an address element like so: mailto: [email protected] ">John Smith . © copyright 2038 Example Corp. And that just about wraps up all the important elements and new tags for HTML5. Keep in mind though, that wasn't ALL the tags available, but it was some of the more important ones and particularly the ones we will be working with today. HTML5 Template So now that we have learned about HTML5, let's get into coding our own template. Let's start with an average document. Now let's add the stylesheet link, just for good practice, even though we may not use it. Now I think it'd be a good time to start setting up our body element with some structure for us to use on other projects. So with that in mind let's do: Now, as you can see, we have a bit of a place for our content to go. We have a few designated sections. We have a designated header, footer, and section element within the document – but now let's add a navigation element as well. style.css"> HTML5 Template Pretty standard template Home About HTML5
Og der går vi, vi har lagt til noe navigasjon med en fin uordnet liste der i overskriftsdelen. Men vent et øyeblikk. Hva om du har en fin stor bunntekst og vil ha de samme navigatorelementene i bunnteksten også. Vel, la oss legge det der også. Unntatt, denne gangen kommer vi ikke til å bruke
HTML5 Template Om HTML5La oss nå legge til noen biter for IE, og andre slike tekniske egenskaper.
HTML5 Template HTML5-mal
Ganske standard mal
Og der har vi det: en grunnleggende men fullstendig HTML5-mal!
Hva er din favoritt nye CSS3 teknikker? Eller lite brukt / lite kjente CSS teknikker? Gi oss beskjed i kommentarene!