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ářů
In my opinion you are mistaken. I can prove it. Write to me in PM, we will talk.
SexCam
(Mariacrals, 25. 11. 2021 0:00)
Would you like me to recognize you which grown-up webcam site has the a- pornstar sex cams online?
Not single does this particular handling showcases the hottest and horniest beauties of the XXX industries and allows its members to heart-to-heart with them existent – it also makes all this meet with after free.
Under I bet I got your attention now, don’t I?
Well, If I had to write the article, you have to understand it - complement each other chance out which mind-blowing website has this phenomenal offer.
https://hop.cx/sex
Big Amazon Sale - Up to 60% 2021
(PhillipTew, 23. 11. 2021 19:15)
Big Amazon Upcoming Sale 2021
https://tinyurl.com/53hx5jza
livsmedel med palmolja
(livsmedel med palmolja, 22. 11. 2021 8:53)
Hey! Quick question that's completely off topic. Do you know how to make your site mobile friendly? My website looks weird when browsing from my iphone4. I'm trying to find a theme or plugin that might be able to correct this issue. If you have any suggestions, please share. Cheers! livsmedel med palmolja crabra.teswomango.com/map6.php
skor med uttagbara sulor
(skor med uttagbara sulor, 21. 11. 2021 22:33)
Do you mind if I quote a couple of your posts as long as I provide credit and sources back to your website? My blog site is in the exact same niche as yours and my users would genuinely benefit from a lot of the information you provide here. Please let me know if this alright with you. Thanks! skor med uttagbara sulor niperp.sewomabest.com/map12.php
ta bort gelenaglar med tippar
(ta bort gelenaglar med tippar, 21. 11. 2021 9:08)
What's up, I log on to your blog like every week. Your story-telling style is awesome, keep doing what you're doing! ta bort gelenaglar med tippar icver.teswomango.com/map14.php
dreambox 800 hd se manual
(dreambox 800 hd se manual, 20. 11. 2021 22:48)
fantastic issues altogether, you just received a brand new reader. What could you suggest in regards to your publish that you just made a few days in the past? Any sure? dreambox 800 hd se manual ringco.sewomabest.com/map4.php
spanish sydney cbd
(Anthonydab, 20. 11. 2021 19:18)Let s make your preparation phase easier with these proven tricks that have helped many students like yourself. https://saint-lazarus.org
ecco skor dam vinter
(ecco skor dam vinter, 20. 11. 2021 2:31)
Thank you, I have recently been looking for information approximately this subject for ages and yours is the best I've came upon so far. However, what about the conclusion? Are you positive concerning the supply? ecco skor dam vinter gero.prizsewoman.com/map11.php
saft på frysta bär
(saft på frysta bär, 19. 11. 2021 15:40)
Wonderful beat ! I wish to apprentice while you amend your site, how could i subscribe for a blog website? The account aided me a acceptable deal. I had been a little bit acquainted of this your broadcast offered bright clear concept saft på frysta bär reast.prizsewoman.com/map4.php
öm i pungen vuxen
(öm i pungen vuxen, 19. 11. 2021 5:05)
I was suggested this web site by my cousin. I'm not sure whether this post is written by him as no one else know such detailed about my trouble. You're amazing! Thanks! öm i pungen vuxen daigla.sewomabest.com/map4.php
istället för durramjöl
(istället för durramjöl, 18. 11. 2021 15:37)
Hey! This post could not be written any better! Reading through this post reminds me of my previous room mate! He always kept talking about this. I will forward this post to him. Pretty sure he will have a good read. Many thanks for sharing! istället för durramjöl trisal.prizsewoman.com/map14.php
att tänka på som gravid
(att tänka på som gravid, 18. 11. 2021 4:51)
Hurrah! At last I got a website from where I be capable of genuinely take helpful information regarding my study and knowledge. att tänka på som gravid dayru.teswomango.com/map7.php
mest fertil ålder
(mest fertil ålder, 17. 11. 2021 18:48)
Howdy! This is kind of off topic but I need some advice from an established blog. Is it difficult to set up your own blog? I'm not very techincal but I can figure things out pretty quick. I'm thinking about making my own but I'm not sure where to start. Do you have any tips or suggestions? Thanks mest fertil ålder acin.teswomango.com/map14.php
sigma renova isotop pris
(sigma renova isotop pris, 17. 11. 2021 7:59)
Hi, Neat post. There is an issue together with your website in internet explorer, may check this? IE nonetheless is the marketplace leader and a good section of other folks will pass over your wonderful writing because of this problem. sigma renova isotop pris spywir.sewomabest.com/map20.php
alternativ till antidepressiva läkemedel
(alternativ till antidepressiva läkemedel, 16. 11. 2021 21:05)
you are actually a excellent webmaster. The web site loading pace is amazing. It seems that you're doing any unique trick. Moreover, The contents are masterpiece. you have performed a fantastic process on this subject! alternativ till antidepressiva läkemedel amoc.sewomabest.com/map11.php
Either way there needs to be a change where children grow to understand reasonable boundaries
(ClezeripLover, 16. 11. 2021 20:33)Some free on-line courting companies enable visitors to search for any profile. After the hour of open networking, about 120 people crowded into a small ballroom that had about 4, double rows of chairs. She knew her household would look dis-favorably on what he represented as he bought off the aircraft although he is an effective man, turned a very good father, and has always been a good provider https://absbl.page.link/terme-gay-friendly-italia before you had children, there were endless opportunities to meet guys: at work, at the gym, in the bar on a night out. But the girl made an exception for me. One of the best half is that single Canadian ladies and single males don't pay any price for utilizing these courting websites whether or not you're a single mother or a single father, and your objective is to seek out eternal love, a date, somebody new to fulfill, or even a beautiful network of different relationship single dad and mom, this site is for you! Repay them the courtesy by not introducing it into their lives. This point may seem at odds with the earlier one on education. In response to this examine from the College of Melbourne’s physiotherapy Department, the women who were at risk for postnatal depression in the train group was decreased by 50% by the tip of the examine! https://absbl.page.link/gay-throw-up-sex
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
I would not wish to develop this theme.
(Albertcob, 25. 11. 2021 0:48)