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ářů
Hi this is kinda 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 greatly appreciated! maaji bikini rea deista.teswomango.com/map11.php
comprimidos
(KennethJar, 23. 8. 2021 15:25)En estos casos, generalmente, el problema no es duradero, y puede solucionarse a medida que los cónyuges se acostumbran y se sienten cómodos en la relación sexual.
Marketplace
(MiltonCox, 23. 8. 2021 14:24)
This is a unique place for fashionable women's clothing and accessories.
We offer our clients women's clothing, jewelry, cosmetics and health products, shoes, bags and much more.
https://fas.st/aLmjv
snygga vårskor herr
(snygga vårskor herr, 23. 8. 2021 14:15)
Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point. You clearly know what youre talking about, why throw away your intelligence on just posting videos to your blog when you could be giving us something enlightening to read? snygga vårskor herr olan.sewomabest.com/map16.php
flagga storlek standard
(flagga storlek standard, 23. 8. 2021 5:24)
Hi there, just became alert to your blog through Google, and found that it's truly informative. I'm gonna watch out for brussels. I'll appreciate if you continue this in future. Many people will be benefited from your writing. Cheers! flagga storlek standard drywin.sewomabest.com/map2.php
allergisk reaktion utslag bilder
(allergisk reaktion utslag bilder, 22. 8. 2021 21:03)
Hello! I simply would like to offer you a huge thumbs up for the excellent information you have got right here on this post. I'll be returning to your blog for more soon. allergisk reaktion utslag bilder zlatda.prizsewoman.com/map1.php
super brödet minskar vikten
(super brödet minskar vikten, 22. 8. 2021 11:43)
Nice post. I learn something new and challenging on sites I stumbleupon every day. It's always helpful to read through content from other writers and use something from other sites. super brödet minskar vikten etslid.teswomango.com/map20.php
hur mycket sand behövs till en sandlåda
(hur mycket sand behövs till en sandlåda, 22. 8. 2021 3:18)
I do consider all the concepts you have presented in your post. They're very convincing and will certainly work. Nonetheless, the posts are very brief for beginners. May you please prolong them a little from next time? Thanks for the post. hur mycket sand behövs till en sandlåda elan.prizsewoman.com/map23.php
Education research literature review example
(BuyEssayOnline, 21. 8. 2021 23:05)
Education research literature review example .
Order NOW!!! https://diigo.com/0iywd4
UYhjhgTDkJHVy
laser hårborttagning farligt
(laser hårborttagning farligt, 21. 8. 2021 18:52)
hey there and thank you for your info – I have definitely picked up something new from right here. I did however expertise several technical points using this website, since I experienced to reload the website many times previous to I could get it to load properly. I had been wondering if your hosting is OK? Not that I'm complaining, but sluggish loading instances times will very frequently affect your placement in google and can damage your high-quality score if ads and marketing with Adwords. Well I am adding this RSS to my email and can look out for a lot more of your respective interesting content. Ensure that you update this again soon. laser hårborttagning farligt netwa.prizsewoman.com/map24.php
snygga tavlor online
(snygga tavlor online, 21. 8. 2021 10:25)
Fabulous, what a web site it is! This blog gives helpful data to us, keep it up. snygga tavlor online risis.teswomango.com/map2.php
framknäppt bh stora storlekar
(framknäppt bh stora storlekar, 21. 8. 2021 2:18)
For most recent information you have to visit web and on web I found this web page as a most excellent website for newest updates. framknäppt bh stora storlekar millri.sewomabest.com/map17.php
köpa adobe photoshop
(köpa adobe photoshop, 20. 8. 2021 16:59)
Wow, amazing blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your website is wonderful, let alone the content! köpa adobe photoshop taubr.prizsewoman.com/map20.php
hårvax för tjockt hår
(hårvax för tjockt hår, 20. 8. 2021 9:03)
My family members every time say that I am killing my time here at web, except I know I am getting familiarity everyday by reading thes nice posts. hårvax för tjockt hår borhoo.sewomabest.com/map24.php
gina tricot student
(gina tricot student, 20. 8. 2021 1:24)
Fantastic website you have here but I was curious if you knew of any community forums that cover the same topics discussed in this article? I'd really like to be a part of community where I can get suggestions from other experienced people that share the same interest. If you have any suggestions, please let me know. Cheers! gina tricot student gero.prizsewoman.com/map6.php
Professional homework writing websites
(BuyEssayOnline, 16. 8. 2021 3:27)
Professional homework writing websites .
Proceed to Order!!! https://www.dongeren.cn/home.php?mod=space&uid=1251078
UYhjhgTDkJHVy
kvinnor utan trosor
(kvinnor utan trosor, 13. 8. 2021 23:32)
Hi there! This article couldn't be written much better! Looking at this article reminds me of my previous roommate! He constantly kept talking about this. I will forward this post to him. Pretty sure he'll have a very good read. Many thanks for sharing! kvinnor utan trosor umnog.teswomango.com/map18.php
gå upp i vikt mat
(gå upp i vikt mat, 13. 8. 2021 14:32)
My spouse and I stumbled over here from a different web address and thought I might check things out. I like what I see so now i'm following you. Look forward to checking out your web page for a second time. gå upp i vikt mat lecre.teswomango.com/map1.php
salong glow linnegatan
(salong glow linnegatan, 13. 8. 2021 6:31)
Wonderful site you have here but I was curious about if you knew of any message boards that cover the same topics discussed here? I'd really love to be a part of online community where I can get responses from other experienced individuals that share the same interest. If you have any recommendations, please let me know. Appreciate it! salong glow linnegatan amle.prizsewoman.com/map8.php
hamburgerbröd recept snabbt
(hamburgerbröd recept snabbt, 12. 8. 2021 22:43)
Please let me know if you're looking for a author for your site. You have some really good posts and I believe I would be a good asset. If you ever want to take some of the load off, I'd absolutely love to write some articles for your blog in exchange for a link back to mine. Please send me an e-mail if interested. Regards! hamburgerbröd recept snabbt nieser.sewomabest.com/map20.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 | 52 | 53 | 54
maaji bikini rea
(maaji bikini rea, 23. 8. 2021 23:17)