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ářů
I was very pleased to uncover this web site. I wanted to thank you for ones time just for this fantastic read!! I definitely appreciated every part of it and i also have you saved to fav to see new things on your web site. t3 bredband bra eller dåligt tisi.teswomango.com/map9.php
var är zlatan film
(var är zlatan film, 28. 8. 2021 2:00)
Generally I don't read article on blogs, but I would like to say that this write-up very pressured me to try and do so! Your writing taste has been amazed me. Thank you, very great post. var är zlatan film pittfo.prizsewoman.com/map23.php
overknee stövlar låg klack
(overknee stövlar låg klack, 26. 8. 2021 2:24)
I blog quite often and I really thank you for your content. This great article has really peaked my interest. I'm going to book mark your blog and keep checking for new details about once a week. I opted in for your Feed too. overknee stövlar låg klack viasis.sewomabest.com/map13.php
un pied en metre
(un pied en metre, 25. 8. 2021 3:06)
Hello, I enjoy reading through your article. I like to write a little comment to support you. un pied en metre scaran.teswomango.com/map25.php
amerikansk mat online
(amerikansk mat online, 24. 8. 2021 17:13)
My spouse and I stumbled over here from a different website and thought I might as well check things out. I like what I see so now i'm following you. Look forward to going over your web page yet again. amerikansk mat online amfai.sewomabest.com/map14.php
pollenallergi ont i kroppen
(pollenallergi ont i kroppen, 24. 8. 2021 7:46)
I'm really enjoying the theme/design of your blog. Do you ever run into any browser compatibility problems? A small number of my blog audience have complained about my website not operating correctly in Explorer but looks great in Opera. Do you have any solutions to help fix this issue? pollenallergi ont i kroppen tuca.prizsewoman.com/map4.php
maaji bikini rea
(maaji bikini rea, 23. 8. 2021 23:17)
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
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
t3 bredband bra eller dåligt
(t3 bredband bra eller dåligt, 28. 8. 2021 11:21)