Html 0.4
Struktura kódu stránky (2)
Jednotlivé části HTML stránky
Teď si ten kód rozebereme, abychom se v něm dokázali orientovat.
DOCTYPE
Na úplném začátku je deklarace "doctype" (ve výše uvedeném příkladu to jsou první dva řádky).
Polopatě: Představte si, že překladateli dáte text v cizím jazyce, který má přeložit. Buďto bude muset odhadnout, co je to za jazyk, nebo mu to předem řeknete. A když už to bude vědět, bude předpokládat, že je to pravda, a že text nebude smíchaný z více jazyků a bude dodržovat pravidla pravopisu toho jazyka. Protože jestli ne, nemůže zaručit, že překlad bude správný a jestli se obsah textu nezkomolí.
No a tím překladatelem je prohlížeč, tím textem je html kód. Neříct mu, v jakém jazyce je to napsané, to by bylo ošklivé. Řekneme mu to právě zápisem DOCTYPE. A my bychom měli dodržet pravopis toho jazyka, tj. pravidla použité verze HTML. Prohlížeč pak může ten kód správně přeložit - neboli zobrazit.
Jinými slovy - tímto zápisem řeknete prohlížeči, v jaké verzi (X)HTML jste svou stránku napsali. Prohlížeč podle toho s kódem naloží. V našem příkladě je použita deklarace XHTML 1.0 strict, a to jen proto, že jsem v tomhle doctype zvyklá dělat. Třeba si na to taky rádi zvyknete.
A ještě odborně - JPW říká:
"Každý správně formátovaný HTML dokument by měl na začátku obsahovat informace o verzi použitého HTML a typu DTD (Document Type Definition). DTD je jinými slovy návod pro prohlížeč zpracovávající dokument. Říká mu, jaké elementy dokument používá a jak s nimi zacházet. Element DOCTYPE není součástí HTML dokumentu, není elementem HTML a nemusí mít koncovou značku."
Doporučená četba: jakpsatweb.cz o doctype, wellstyled.com o režimech prohlížečů podle doctype.
Vlastní (X)HTML
To, co následuje, už je opravdu v jazyce HTML; proto je celý zbytek uzavřen do tagu <html> (na konci samozřejmě </html> ).
Hlavička - head
Hlavička je uzavřena do tagů <head> </head> . Může (nebo by měla) v ní být spousta užitečných informací, žádná z nich se ale nezobrazí ve formě textu na výsledné stránce; přesto mají na zobrazení stránky velký vliv.
- To, co bude mezi tagy <title> a </title> , bude názvem stránky, který se vypíše v horní liště prohlížeče nebo v ikoně ve spodní liště. V našem příkladu to je text "Toto je moje stránka".
- Dále zde najdete různé tagy <meta /> . Důležitý je hlavně meta tag týkající se kódování.
Doporučená četba: jakpsatweb.cz o meta tazích
- Do hlavičky patří také případné skripty a stylopis nebo cesta k externímu stylopisu . To jen aby bylo vidět, že vím o čem mluvím; nám to zatím k ničemu není a necháme to stranou.
Tělo stránky - body
Následují tagy a texty, uzavřené v párovém tagu <body> a </body> . Tady je konečně všechno to, co se na naší stránce zobrazí. A na to se podíváme podrobněji.
Komentáře
Přehled komentářů
Right here is the perfect site for anybody who wants to find out about this topic. You understand a whole lot its almost hard to argue with you (not that I really would want to…HaHa). You definitely put a fresh spin on a subject which has been discussed for decades. Excellent stuff, just excellent! fransförlängning stockholm billigt nieser.sewomabest.com/map3.php
Which your favorite love records on MojoHeadz record label?
(SlattStikitle, 8. 11. 2021 18:59)Experimentation is something MOJOHEADZ records, thrives on. Although primarily recognised as a techno music brand, MOJOHEADZ refuses to stick within the template that comes with that.Check my reviews! https://jaxsta.com/profile/bacf1fbd-25e8-4731-8676-a6a5e782cbbb/catalogue?view=tile
släpvagn med galler
(släpvagn med galler, 8. 11. 2021 17:10)
Hey there! This is kind of off topic but I need some guidance from an established blog. Is it very hard to set up your own blog? I'm not very techincal but I can figure things out pretty quick. I'm thinking about setting up my own but I'm not sure where to start. Do you have any points or suggestions? With thanks släpvagn med galler obgov.prizsewoman.com/map7.php
klippoteket jönköping personal
(klippoteket jönköping personal, 8. 11. 2021 8:07)
I like the valuable info you provide in your articles. I will bookmark your weblog and check again here frequently. I'm quite certain I will learn many new stuff right here! Good luck for the next! klippoteket jönköping personal memme.prizsewoman.com/map8.php
hoppa studsmatta kalorier
(hoppa studsmatta kalorier, 7. 11. 2021 23:15)
Paragraph writing is also a excitement, if you be acquainted with then you can write otherwise it is difficult to write. hoppa studsmatta kalorier hogurg.prizsewoman.com/map4.php
hur förökar sig celler
(hur förökar sig celler, 7. 11. 2021 14:11)
Link exchange is nothing else however it is only placing the other person's blog link on your page at appropriate place and other person will also do same for you. hur förökar sig celler crabra.teswomango.com/map10.php
clip on slingor
(clip on slingor, 7. 11. 2021 5:23)
Hello, this weekend is good for me, since this point in time i am reading this great educational paragraph here at my home. clip on slingor checa.teswomango.com/map25.php
cesar millan halsband
(cesar millan halsband, 6. 11. 2021 20:41)
Stunning story there. What happened after? Thanks! cesar millan halsband gutfm.prizsewoman.com/map3.php
best cbd suppositories
(Anthonydab, 6. 11. 2021 12:35)dani botanicals No coupon code needed - discount automatically applied at checkout. https://saint-lazarus.org
comhem utan bindningstid
(comhem utan bindningstid, 6. 11. 2021 11:47)
Hi there it's me, I am also visiting this web site on a regular basis, this web site is in fact nice and the people are actually sharing nice thoughts. comhem utan bindningstid tronso.prizsewoman.com/map12.php
jocke och jonna bröllop
(jocke och jonna bröllop, 6. 11. 2021 2:59)
Saved as a favorite, I love your web site! jocke och jonna bröllop dexro.teswomango.com/map10.php
frisör lockigt hår stockholm
(frisör lockigt hår stockholm, 5. 11. 2021 18:21)
I do trust all the ideas you've introduced on your post. They are very convincing and will certainly work. Nonetheless, the posts are very quick for novices. May you please prolong them a bit from next time? Thanks for the post. frisör lockigt hår stockholm loppa.prizsewoman.com/map10.php
telia kampanj surfplatta
(telia kampanj surfplatta, 5. 11. 2021 9:29)
Thanks for sharing your thoughts about. Regards telia kampanj surfplatta nerko.prizsewoman.com/map3.php
tomma canvastavlor billigt
(tomma canvastavlor billigt, 5. 11. 2021 0:40)
Very good blog! Do you have any tips and hints for aspiring writers? I'm planning to start my own blog soon but I'm a little lost on everything. Would you advise starting with a free platform like Wordpress or go for a paid option? There are so many options out there that I'm totally overwhelmed .. Any ideas? Thanks! tomma canvastavlor billigt prophi.sewomabest.com/map9.php
vitamin well free
(vitamin well free, 4. 11. 2021 11:39)
May I simply just say what a relief to discover someone that truly understands what they're talking about online. You definitely understand how to bring an issue to light and make it important. A lot more people need to check this out and understand this side of your story. I was surprised you're not more popular since you definitely possess the gift. vitamin well free omin.teswomango.com/map19.php
brun utan sol spray
(brun utan sol spray, 4. 11. 2021 2:40)
We're a group of volunteers and starting a new scheme in our community. Your web site provided us with valuable information to work on. You've done a formidable job and our entire community will be grateful to you. brun utan sol spray daisfe.prizsewoman.com/map18.php
spår av äggvita i urinen
(spår av äggvita i urinen, 3. 11. 2021 17:56)
Hey there this is somewhat of off topic but I was wanting to know if blogs use WYSIWYG editors or if you have to manually code with HTML. I'm starting a blog soon but have no coding skills so I wanted to get guidance from someone with experience. Any help would be enormously appreciated! spår av äggvita i urinen dexro.teswomango.com/map6.php
acne lia cable
(acne lia cable, 2. 11. 2021 17:46)
Hello excellent website! Does running a blog such as this require a massive amount work? I have absolutely no understanding of coding however I had been hoping to start my own blog in the near future. Anyway, if you have any recommendations or techniques for new blog owners please share. I know this is off topic but I simply wanted to ask. Many thanks! acne lia cable taysi.sewomabest.com/map12.php
nordic ivf göteborg
(nordic ivf göteborg, 1. 11. 2021 21:52)
Having read this I believed it was really enlightening. I appreciate you spending some time and effort to put this short article together. I once again find myself spending a significant amount of time both reading and commenting. But so what, it was still worthwhile! nordic ivf göteborg rogfa.teswomango.com/map9.php
lång tjock kofta
(lång tjock kofta, 1. 11. 2021 9:21)
I don't even understand how I stopped up right here, however I assumed this publish used to be good. I don't understand who you're however definitely you're going to a famous blogger should you aren't already. Cheers! lång tjock kofta repo.prizsewoman.com/map12.php
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51
fransförlängning stockholm billigt
(fransförlängning stockholm billigt, 9. 11. 2021 1:51)