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ářů
hel noclegi domki letniskowe https://www.altercloudnet.online
tanie noclegi powiat radomski https://www.altercloudnet.online/noclegi-sokka-podlaskie
stx21
Best website promotion services
(Nonellwep, 13. 4. 2022 14:13)
I share with you professional website promotion services. The best price, the work is done within a few days. More than 1500 backlinks are created. Money back guarantee. A professional works through the kwork exchange https://kwork.com.
Here is the link https://kwork.com/offpageseo/13467403/professional-website-promotion-1500-good-back-links
How to keep in repair readies in 2022
(Kevintof, 11. 4. 2022 1:18)
Was sind last resting-place besten Gewinnchancen in einem Casino? "Einarmige Banditen"
Einarmige Banditen
Casinos werden in erster Linie mit Roulette und Poker in Verbindung gebracht, aber Statistiken zeigen, dass 61 % der Besucher von Spielhallen ihre Zeit damit verbringen, einarmige Banditen zu spielen (Daten von 2013 von der American Gaming Bonding). Kick the bucket Regeln der Spielautomaten sind sehr einfach, und der niedrige Mindesteinsatz macht sie auch fur die armsten Spieler zuganglich.
https://www.feldbahn-ffm.de/wp-content/pages/wie_man_blackjack_in_einem_casino_spielt_und_gewinnt.html
https://www.weyher.de/wp-includes/inc/casino_gewinne_2022__wie_viel_verdienen_casinobesitzer_.html
https://www.neukoelln-online.de/include/pages/wie_man_sich_f_r_einen_casino_abend_kleidet___auswahl_der_damenbekleidung.html
https://ltsv-brandenburg.de/news/was_sind_die_besten_gewinnchancen_in_einem_casino___die_rechtliche_komponente_.html
https://forellenteich.net/news/praktische_tipps__wie_man_ein_casino_schl_gt_.html
Are you 18? Come in and don't be shy!
(loveawake.ru, 10. 4. 2022 10:18)Welcome to the world of adult Dating loveawake.ru
pokoje pracownicze nieopodal augustowa
(TriPreomLoomy, 9. 4. 2022 11:15)
<a href="https://www.pokojeiaugustow.online">www.pokojeiaugustow.online</a href> pokoje w Augustowie
stx21
nocleg augustow
(PiPreomLoomy, 7. 4. 2022 14:38)
<a href="https://www.noclegiiaugustow.online">www.noclegiiaugustow.online</a href> noclegi w Augustowie
stx21
caxino
(Mixlooda, 5. 4. 2022 18:14)
https://www.youtube.com/channel/UC-AtRdXB62HQQ1YxjiJg3hQ/about
$300 no deposit bonus codes 2022
Nicest Roblox Vicinity
(Dexonanild, 3. 4. 2022 3:58)
Hello, here you can tumble to roblox glitches and more.
https://century21royaltors.com/roblox-game-destroyer-exploit/
Best Free USA No Deposit Bonus Codes
(belleKic, 30. 3. 2022 1:13)
https://forums.pcgamer.com/members/limaopox.314774/#about
Party Casino
juicy vegas no deposit bonus codes
Are you 18? Come in and don't be shy!
(loveawake.ru, 29. 3. 2022 7:25)Welcome to the world of adult Dating loveawake.ru
Man's predestination
(Janetikhaf, 28. 3. 2022 22:32)
Each generation sees itself as completely different from the previous one, but in the end is about the same.
When I look at my life, I see that I was constantly wrong.
The same will happen to you when you get older. Gain experience and make mistakes. That is the meaning of life.
Do not delude yourself that you are capable of being perfect - this is not real.
Temper yourself, your will, so that when the test comes, you will find the strength in yourself to meet him as a true man.
Do not let yourself be fooled by obvious facts and ringing phrases.
Travel countries, explore the world, meet people, do something that fascinates you, give a heart, be bold, but do it with enthusiasm.
The most valuable thing is to live life vividly.
Perhaps there is more than one life waiting for you. But in order to deserve them, you need to use this life to the fullest. Take everything you can from life.
Beware of boring fate.
Surpass Roblox Associate
(Dexonanild, 28. 3. 2022 3:11)
Hello, here you can on roblox hacks and more.
https://lospiritodiassisi.org/jjsploit-dll-file/.html
personal happiness
(RachellCrest, 28. 3. 2022 0:50)
Teaching old men to young people is not only a waste of time, but also impudence https://skvoter.smartphon.design .
Each generation sees itself as completely different from the previous one, but in the end is about the same.
If I look at my own life, I believe that I have made mistakes many times.
The same will happen to you at my age. Gain experience and make mistakes. And this is the meaning of existence.
Do not argue that you can be perfect - it is unattainable.
Temper yourself, your will, so that when the test comes, you will find the strength in yourself to accept it as a true man.
Do not allow yourself to be deceived by obvious facts and noisy phrases.
Travel countries, explore the world, meet people, do something that interests you, fall in love, do stupid things, but do it with passion.
The most important thing is to live your life with taste.
Perhaps there is more than one life waiting for us. But in order to deserve them, you need to spend this life to the end. Take what you can from life.
Beware of sad fate.
Nicest Roblox Area
(Dexonanild, 27. 3. 2022 1:54)
Hello, here you can espy roblox glitches and more.
https://chicagoweddings.org/roblox-the-pizzeria-roleplay-remastered-paycheck-exploit/
Overpower Roblox Deposit
(Dexonanild, 25. 3. 2022 1:30)
Hello, here you can find roblox bugs and more.
https://evergreenmedicalcentre.com/roblox-synapse-x-discord/.html
https://evergreenmedicalcentre.com/krnl-hack-script/.html
https://evergreenmedicalcentre.com/da-hood-auto-farm-script/.html
Outperform Roblox Deposit
(Dexonanild, 24. 3. 2022 1:07)
Hello, here you can tumble to roblox bugs and more.
https://mrbcny.org/roblox-online-hacks/.html
https://mrbcny.org/script-de-shindo-life-auto-farm/.html
https://mrbcny.org/roblox-games-to-exploit-in/.html
A-one Roblox Vicinity
(Dexonanild, 23. 3. 2022 21:24)
Hello, here you can on roblox bugs and more.
https://joedev.net/colonial-domination-roblox-exploit-script/.html
https://joedev.net/new-roblox-hack-exploit-system-48-reborn/.html
https://joedev.net/proxo-inject/.html
https://joedev.net/free-roblox-hacks-no-human-verification/.html
https://joedev.net/roblox-user-account-exploit/.html
Nicest Roblox Charge
(Dexonanild, 22. 3. 2022 10:17)
Hello, here you can tumble to roblox bugs and more.
https://advancedjournals.org/cyber-roblox-exploit-site-v3rmillion-net/.html
https://advancedjournals.org/roblox-tp-script/.html
https://advancedjournals.org/roblox-exploit-no-virus/.html
liverbuctuntee
(DanielSaipt, 22. 3. 2022 4:34)
https://telegra.ph/SNOW-BUNNY-PLAYS-WITH-BBC-12-17
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
bielsko podlaskie noclegi
(YlPlaynckal, 14. 4. 2022 11:39)