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ářů
Exceptional post however I was wondering if you could write a litte more on this topic? I'd be very thankful if you could elaborate a little bit further. Bless you! nistm.munhea.se/map4.php salong dolce vita
pycnogenol for varicose veins aperca.se
(aperca.se, 18. 10. 2020 23:46)
Thank you for the good writeup. It in fact was a amusement account it. Look advanced to more added agreeable from you! By the way, how can we communicate? emti.aperca.se/map13.php pycnogenol for varicose veins
enugn.se
(enugn.se, 18. 10. 2020 21:45)
We absolutely love your blog and find many of your post's to be exactly I'm looking for. Do you offer guest writers to write content to suit your needs? I wouldn't mind publishing a post or elaborating on some of the subjects you write about here. Again, awesome weblog! enugn.se/map2.php linas matkasse facebook
oreiep.se
(oreiep.se, 18. 10. 2020 11:38)
Hello there! Do you know if they make any plugins to help with Search Engine Optimization? I'm trying to get my blog to rank for some targeted keywords but I'm not seeing very good results. If you know of any please share. Appreciate it! oreiep.se/map22.php diskmaskin utan front
lcc the cure shampoo munhea.se
(munhea.se, 18. 10. 2020 4:51)
Hey There. I found your blog the usage of msn. That is an extremely smartly written article. I'll be sure to bookmark it and come back to read more of your helpful info. Thanks for the post. I will definitely comeback. compe.munhea.se/map5.php lcc the cure shampoo
a glutea superior aperca.se
(aperca.se, 17. 10. 2020 5:08)
Very good article. I absolutely love this website. Continue the good work! puzzc.aperca.se/map8.php a glutea superior
dermalogica oil free matte munhea.se
(munhea.se, 16. 10. 2020 11:34)
Pretty section of content. I just stumbled upon your weblog and in accession capital to assert that I acquire in fact enjoyed account your blog posts. Any way I will be subscribing to your augment and even I achievement you access consistently quickly. cator.munhea.se/map5.php dermalogica oil free matte
lanba.se
(lanba.se, 16. 10. 2020 9:33)
It's actually very complicated in this active life to listen news on TV, therefore I only use world wide web for that reason, and get the most up-to-date information. lanba.se/map7.php mat till 2 ГҐring
vindavvisare golf 4 aperca.se
(aperca.se, 15. 10. 2020 11:21)
Incredible points. Outstanding arguments. Keep up the amazing spirit. sioth.aperca.se/map6.php vindavvisare golf 4
probduo.se
(probduo.se, 15. 10. 2020 9:54)
Hello there! Do you know if they make any plugins to help with SEO? I'm trying to get my blog to rank for some targeted keywords but I'm not seeing very good gains. If you know of any please share. Appreciate it! probduo.se/map4.php grus i Г¶gonen pГҐ morgonen
squgarik.se
(squgarik.se, 15. 10. 2020 0:59)
This is the right webpage for everyone who wishes to understand this topic. You realize a whole lot its almost tough to argue with you (not that I actually would want to…HaHa). You definitely put a brand new spin on a topic that has been written about for decades. Wonderful stuff, just great! squgarik.se/map29.php canvas med egen text
frigolit isolering golv munhea.se
(munhea.se, 14. 10. 2020 19:13)
I read this post completely on the topic of the comparison of most up-to-date and preceding technologies, it's awesome article. lamus.munhea.se/map6.php frigolit isolering golv
tumphati.se
(tumphati.se, 13. 10. 2020 17:08)
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 have done an impressive job and our entire community will be thankful to you. tumphati.se/map4.php vagabond vinterskor dam
azilopar.se
(azilopar.se, 13. 10. 2020 5:05)
Hi there very cool web site!! Guy .. Beautiful .. Superb .. I will bookmark your site and take the feeds also? I am satisfied to seek out a lot of useful information here in the put up, we need develop more strategies in this regard, thanks for sharing. . . . . . azilopar.se/map20.php cocktail klänning vit
benmmdi.se
(benmmdi.se, 12. 10. 2020 19:27)
Yes! Finally something about
Definitely imagine that that you said. Your favourite justification seemed to be at the internet the easiest factor to be aware of. I say to you, I certainly get irked at the same time as other folks consider concerns that they just don't know about. You managed to hit the nail upon the top and outlined out the entire thing with no need side effect , people can take a signal. Will likely be back to get more. Thanks benmmdi.se/map39.php karbamid i locobase
oratrg.se
(oratrg.se, 12. 10. 2020 7:57)
It's going to be end of mine day, except before ending I am reading this enormous article to improve my know-how. oratrg.se/map17.php typ 2 diabetes insulin
shoppa frГҐn kina online munhea.se
(munhea.se, 12. 10. 2020 0:33)
Now I am going to do my breakfast, later than having my breakfast coming yet again to read other news. masco.munhea.se/map2.php shoppa frГҐn kina online
sasilu.se
(sasilu.se, 11. 10. 2020 16:17)
Admiring the hard work you put into your blog and in depth information you present. It's awesome to come across a blog every once in a while that isn't the same outdated rehashed information. Fantastic read! I've bookmarked your site and I'm adding your RSS feeds to my Google account. sasilu.se/map10.php sluta med levaxin symptom
dehllap.se
(dehllap.se, 11. 10. 2020 5:51)
Fantastic site you have here but I was wanting to know if you knew of any user discussion forums that cover the same topics talked about in this article? I'd really love to be a part of online community where I can get opinions from other knowledgeable individuals that share the same interest. If you have any suggestions, please let me know. Thanks a lot! dehllap.se/map3.php kalorier havregrynsgrГ¶t med mjГ¶lk
fodral till laptop naoblal.se
(naoblal.se, 10. 10. 2020 15:16)
Hello to all, how is the whole thing, I think every one is getting more from this site, and your views are good in favor of new users. quisa.naoblal.se/skin-care/fodral-till-laptop.php fodral till laptop
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
salong dolce vita munhea.se
(munhea.se, 19. 10. 2020 21:59)