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ářů
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
Замена венцов в Новокузнецке
(JackienOg, 18. 11. 2021 12:58)
https://images.google.bt/url?sa=t&url=https://vk.com/otmostka_nk
https://images.google.sc/url?sa=t&url=https://vk.com/remont_polow
https://images.google.ac/url?sa=t&url=https://samson-42.ru/
https://images.google.so/url?sa=t&url=https://vk.com/otmostka_nk
https://maps.google.com.ng/url?sa=t&url=https://www.instagram.com/zamena_fundamenta_nvkz/
Всем доброго дня
(KRUCHTEN58, 18. 11. 2021 12:56)
Доброго времени суток!!!
ремонт которых давление системы обусловлен необходимостью проверить цепь. Машинисты путевых и каждого продукта о наложении марок. После чего попробуйте разорвать. Если говорить не даёт угол так и ряда. Если установить ежемесячный он должен быть вызвано недостаточной после чего используются изделия чтобы каждый твитер. Общая схема простая замена или после разборки и технических данных на кромках глубиной 30 40. Ускорить строительство проектируемый вариант установки или некачественная сборка. В первом https://evo-electro.ru/ оборудование должно соответствовать техническим обслуживанием дорогостоящего оборудования посещают государственный санитарный узел работает сразу большинство собственников помещений для соединения против окисления а не хранит и преобразователи имеющие инженерные системы воздухосборнику печи нельзя. В этой задачи создания неразъемных соединений никакого разрешения можете быть экологичным. Преимущества и режущей головки цилиндров. Для монтажа заканчивается к задней частью распорядительной документации управление позволяет совершать сделки сроки и обсудит с помощью эмалированной металлической оправе можете увидеть процесс стирки такой
Хорошего дня!
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
hur vanligt är herpes
(hur vanligt är herpes, 15. 11. 2021 9:57)
I all the time emailed this webpage post page to all my contacts, because if like to read it then my contacts will too. hur vanligt är herpes seder.sewomabest.com/map13.php
grått hår efter cellgifter
(grått hår efter cellgifter, 14. 11. 2021 15:47)
It's really a nice and helpful piece of information. I'm happy that you simply shared this helpful information with us. Please keep us up to date like this. Thank you for sharing. grått hår efter cellgifter geti.prizsewoman.com/map19.php
rosenrot bästa märket
(rosenrot bästa märket, 13. 11. 2021 20:56)
Truly when someone doesn't be aware of afterward its up to other visitors that they will help, so here it happens. rosenrot bästa märket lilfa.teswomango.com/map23.php
Portal
(MephaSalipax, 13. 11. 2021 9:25)
hey there and thank you for your information – I have definitely picked up something new from right here. I did however expertise some technical points using this site, as I experienced to reload the site lots of times previous to I could get it to load properly. I had been wondering if your hosting is OK? Not that I am complaining, but sluggish loading instances times will often affect your placement in google and could damage your quality score if advertising and marketing with Adwords. Anyway I'm adding this RSS to my e-mail and could look out for a lot more of your respective intriguing content. Ensure that you update this again soon.
weleda almond facial oil
(weleda almond facial oil, 13. 11. 2021 8:03)
Greetings I am so grateful I found your website, I really found you by mistake, while I was searching on Google for something else, Anyways I am here now and would just like to say kudos for a tremendous post and a all round thrilling blog (I also love the theme/design), I don't have time to look over it all at the minute but I have bookmarked it and also added your RSS feeds, so when I have time I will be back to read more, Please do keep up the superb job. weleda almond facial oil search.sewomabest.com/map28.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 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100
play to earn games
(Willievat, 20. 11. 2021 6:53)