Comment text here/p>
Markup er en smuk ting, og det har helt sikkert ændret sig gennem årene. Hvad der faktisk var HTML1, har bestemt udviklet sig til et fantastisk semantisk markup-sprog, som vi i høj grad kan takke W3C. Og hvad ved du, den næste ting at takke dem for er kommet over - HTML5.
I modsætning til tidligere version af HTML, hvor koden hovedsagelig var en begrænset struktur, der blev bestemt af, hvordan du brugte klasse- og ID-elementerne, forsøger html5 virkelig at give meget mere struktur.
Alt layout kan oprettes med semantiske tags og elementer, der bestemmer, hvordan du skal strukturere, og muligvis mere vigtigt, der hjælper dig med at strukturere hver side. Dette producerer kode, der er meget mere rent og læselig end i tidligere versioner af HTML, og det er virkelig noget helt fantastisk. De nye tags kræver virkelig, at du tænker på, hvordan du strukturerer din side, hvilket gør os ærlige - til sidst er det en stor ting for os webdesignere og udviklere.
Før du forstår strukturen i HTML5, og hvordan du opretter og kode en eksempelskabelon, der skal bruges til dine projekter, skal du være opmærksom på, hvordan det drejede sig om. Vær opmærksom på, at den nuværende version af HTML5 ikke har nået en version, som W3C kunne kalde endelig fra, men deres er ret meget at lære om og begynde at bruge i din kode lige nu. Her er hvad W3C har at sige om dette spørgsmål:
"Implementorer bør være opmærksomme på, at denne specifikation ikke er stabil. Implementere, der ikke deltager i diskussionerne, vil sandsynligvis finde specifikationen, der ændrer sig fra under dem på uforenelige måder. Leverandører, der er interesseret i at gennemføre denne specifikation, inden den når frem til kandidatrekommendationsfasen, bør deltage i de ovennævnte postlister og deltage i diskussioner .”
Men lad det ikke skræmme dig. Der er altid mennesker derude konstant at sørge for, at det ikke bliver ændret ud fra os alle. Så du vil helt sikkert være opmærksom på, om sådan en drastisk ændring virkelig sker. Tilbage på emnet er et af de vigtigste spørgsmål, som folk har om HTML5, "
Det kom faktisk fra os alle sammen. I 2005 gennemførte Google en undersøgelse på over 3 milliarder websites og fandt ud af, at de mest almindelige klasser, der blev brugt til fælles markup, var faktisk hvad du ser der på den pågældende side. Footer, menu, titel, lille, tekst, indhold, header og nav er alle blandt toppen af populationsdiagrammet. Og i det væsentlige er det sådan, hvordan W3C besluttede sig for, hvad man skal bruge til de nye semantiske tags til HTML5. Nu da vi ved det, lad os dykke lige ind i, hvad disse tags er, og de grundlæggende grundlæggende ændringer i HTML5.
En doktype er ikke særlig et element i HTML'et, men det er en deceleration, og en der er blevet mere og mere vigtig som tiden går videre. Brug af en passende måde kan hjælpe din browser med at forstå, hvilken type HTML det forsøger at analysere, så vi altid vil bruge de relevante doktypes. Helt ærligt, på nuværende tidspunkt kan du stort set bare bruge HTML5-doktypen til alt selv - men lad os også dække nogle tidligere. Her er hvor vi er kommet så langt som enkelhed:
Ganske godt rigtigt? Du behøver ikke at holde et dokument til at kopiere og indsætte nogle latterligt lange doktype, eller endnu værre endnu, prøv at huske de latterligt lange doktypes af versioner tidligere. For HTML5 skal du blot skrive . Åh, hvilken lettelse.
Før vi forlader dette afsnit, lad os gå gennem nogle af de andre elementer, der er blevet enklere. Rotteelementet er blevet forenklet, som i stedet for at skulle skrive noget som:
Vi kan bare skrive:
De ting, vi skal kopiere og indsætte, bliver mindre og mindre i minuttet. For eksempel, også i hovedelementet, gik vores tegnkodning fra ting som:
til den nyere version i HTML5:
Og endelig har vores links tabt deres typeattribut. Så for eksempel dette:
Bliver dette:
Sektionselementet er stort set enhver generisk del af et HTML-dokument. Mest typisk er det dog en tematisk gruppering af indhold - som kan have en overskrift, men kræver ikke en.
En generel tommelfingerregel for brug af sektionens overskrift bruger kun den, hvis den udtrykkeligt henvises til i dokumentets disposition. Hvis der i oversigten var en 'sektion', som du refererede til eller føler, at alt indhold i et område er en 'sektion' af sorter - så skal du også inkludere sektionstaggen. Hvis du vil bruge det hovedsageligt til styling formål, bare gør det ikke . Brug i stedet a
Nav-elementet repræsenterer et hvilket som helst afsnit af en side, der linker til andre dele af den pågældende side eller andre sider i sitemap. Når du tænker på navigationsforbindelser, bør du tænke "nav tag".
Nav-elementet er specielt beregnet til større navigationsblokke. Ethvert stort element, der linker til andre afsnit af webstedets side eller andre sider på webstedet. Husk dog, at en navigation sektion ikke skal være i form af en liste, omend det er ret standard. Det kan være i prosa, afsnitskoder eller stort set alt - så længe det oprindelig var egnet til at være i sådanne tags i første omgang.
Artikelelementet repræsenterer en selvstændig sammensætning i et dokument, en side eller et hvilket som helst websted. Den virkelig vigtige ting at huske på med artikel tags er, at det typisk er uafhængigt distribueret eller genanvendeligt indhold er, hvad der normalt er placeret inden for tags. Det kan være et forumindlæg, et blad eller en avisartikel eller en blogindlæg, selv kommentarer - så længe det er noget uafhængigt indhold.
Artikler kan holde "sektion" s i dem, "header" s i dem, selv "hgroup" s inde i dem. Men husk når og hvordan du bruger dette element, da det ikke er helt så almindeligt anvendt som en
Lad os hoppe ind i et eksempel. Lad os sige, at du har et blogindlæg med nogle kommentarer. Du kan gøre det som sådan i HTML5:
The Blog Entry Title
12/25/2045
Blog entry
...
Comments
Comment text here/p>
Another comment here
Bortset elementet repræsenterer et hvilket som helst afsnit på en side, der består af indhold, der er tangentielt relateret til indholdet omkring bortset elementet. Den vigtigste ting at huske med dette tag er, at selv om det er indhold, der er tangentielt relateret til indholdet omkring den side, der sidder, er det typisk oplysninger eller indhold, der er adskilt i karakteristika. Du vil oftest bruge det i sidebjælker, da de fleste sidebjælker er perfekte til at være fuldstændigt pakket ind i sidebemærker. Andre anvendelser kan omfatte pull-citater, annoncebits, grupper af nav-links eller endda adresser i nærheden af adressen på en lokalitet.
For at komme ind i flere detaljer er det dog altid, at du føler dig nødt til at bogstaveligt talt tage en side og forklare, referere, nævne, stille eller stille spørgsmål. Du kan endda bruge et sideelement til en større del af et websted, f.eks. En sidelinje til Twitter eller Facebook eller tilfældige links. Du kan få det til at være en side, så brug en overskrift og nav-sektion i det selv for at hjælpe med at forstå, hvad der foregår der. Du kan bruge det i sidebladet af blogindlæg til at henvise til ting om dem, eller stort set hvor som helst det kan implementeres perfekt.
Hgroup-elementet repræsenterer overskriften på en sektion. Dette element bruges bedst til at gruppere et sæt h1-h6-elementer, når overskriften har flere niveauer eller underpositioner - som f.eks. Artiklen du læser. Dette ville være perfekt til en hgroup. Du kan også bruge den til alternative titler eller tag-linjer.
W3C minder os om:
"I forbindelse med dokumentoversigter, skitser og lignende er teksten til hgroupelementer defineret som teksten til hp-elementets højest rangerede h1-h6-elementets efterkommer, hvis der er sådanne elementer, og den første sådan element, hvis der er flere elementer med denne rang. Hvis der ikke er sådanne elementer, er teksten i hgroup-elementet den tomme streng.
Andre anvendelser omfatter for eksempel områder af en blog, hvor du angiver overskriften og underteksten til dit blogindlæg. Du kan også bruge den til bogtitler og beskrivelser til at optage læger i dit område og deres ekspertiseområder eller endda bruge det til at hjælpe med at replikere funktionaliteten af et bord. Lad os se på et sådant eksempel nu. På et bord ville vi have:
Doctor Name:
Randy McDocterson
Doctor Specialty
Slapping People
Så der kan du tydeligt se, at vi har en læge ved navn Randy McDoctoerson, som har specialitet, og slapper af mennesker. Nu er det lidt mærkeligt, men hej - det bliver punktet på tværs.
Hovedteksten repræsenterer en gruppe indledende eller navigationshjælpemidler på et websted eller sektioner af et websted. Så nu hvor den formelle definition er blevet angivet, lad os bryde den lidt ned. Vi ved alle, hvad en header er, men for at være specifik, indeholder den forskellige ting på toppen af de fleste sider. Disse overskriftsområder omfatter normalt branding sektioner, opfordring til handling elementer, og måske nogle navigation. Virkelig kan det bruges ethvert sted, du plejede at skrive:
Bemærk: Det kan bruges i alle sektionens startområde, da det ikke behøver at være i toppen eller begyndelsen af dit HTML-dokument. Men det er her, hvor den typisk implementeres.
Fodboldelementet repræsenterer en footer for sin nærmeste nestede forældersektion, og indeholder typisk oplysninger om sin forældresektion. Footer-taggen ligner meget på overskriften, men for det modsatte afsnit på en side. Ofte vil du se en sidefod på en side, der indeholder links igen, der var i navigationen, og måske et logo eller andre sådanne ting - godt alle disse kan nu blive anbragt i en
Lorem
Ipsum
Nogle 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 tilføjet nogle navigation med en nice uordnet liste der i overskriftsafsnittet. Men vent et øjeblik. Hvad hvis du har en god stor footer og vil have de samme navigator elementer i footer så godt. Nå, lad os tilføje det der også. Bortset fra denne gang vil vi ikke bruge
HTML5 Template Om HTML5Lad os nu tilføje i nogle bits til IE, og andre sådanne tekniske egenskaber.
HTML5 Template HTML5-skabelon
Pretty standard skabelon
Og der har vi det: en grundlæggende men komplet HTML5 skabelon!
Hvad er dine yndlings nye CSS3 teknikker? Eller lidt brugte / mindre kendte CSS teknikker? Lad os vide i kommentarerne!