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 want to to thank you for this excellent read!! I definitely enjoyed every little bit of it. I have you book marked to look at new things you post… hur känns urinvägsinfektion gravid deusio.prizsewoman.com/map14.php
How to write a description about yourself
(BuyEssayOnline, 5. 8. 2021 13:33)
How to write a description about yourself .
Proceed to Order!!! https://mus-album.org/user/thartamvxm
UYhjhgTDkJHVy
craft weather jacket
(craft weather jacket, 5. 8. 2021 12:57)
For newest news you have to pay a quick visit world wide web and on the web I found this site as a most excellent website for most recent updates. craft weather jacket nighl.sewomabest.com/map16.php
cs go global
(cs go global, 5. 8. 2021 4:40)
hi!,I really like your writing so so much! proportion we keep up a correspondence extra approximately your article on AOL? I need an expert on this space to solve my problem. Maybe that's you! Taking a look forward to peer you. cs go global greens.sewomabest.com/map16.php
Good thesis statements list
(BuyEssayOnline, 4. 8. 2021 20:41)
Good thesis statements list .
Proceed to Order!!! https://gravesensommer804.shutterfly.com/21
UYhjhgTDkJHVy
svullen fotknöl utsidan
(svullen fotknöl utsidan, 4. 8. 2021 20:33)
Hi! Quick question that's entirely off topic. Do you know how to make your site mobile friendly? My blog looks weird when browsing from my iphone 4. I'm trying to find a theme or plugin that might be able to correct this issue. If you have any recommendations, please share. Appreciate it! svullen fotknöl utsidan hogurg.prizsewoman.com/map15.php
Sample descriptive essay on food
(BuyEssayOnline, 3. 8. 2021 11:06)
Sample descriptive essay on food .
Order NOW!!! https://v.gd/IRx7l7
UYhjhgTDkJHVy
katt skadad tass
(katt skadad tass, 3. 8. 2021 10:25)
Quality articles or reviews is the key to be a focus for the users to visit the site, that's what this web site is providing. katt skadad tass asan.prizsewoman.com/map4.php
telge nät strömavbrott
(telge nät strömavbrott, 3. 8. 2021 4:32)
I enjoy what you guys are up too. This kind of clever work and coverage! Keep up the superb works guys I've included you guys to our blogroll. telge nät strömavbrott isil.teswomango.com/map21.php
5 tippar v75
(5 tippar v75, 2. 8. 2021 23:09)
Hi, I want to subscribe for this web site to take latest updates, so where can i do it please help. 5 tippar v75 tisi.teswomango.com/map20.php
Summer school high school
(BuyEssayOnline, 2. 8. 2021 19:05)
Summer school high school .
Proceed to Order!!! https://maps.google.gg/url?q=https://edubirdie.review
UYhjhgTDkJHVy
Quality products and drugs only here https://bit.ly/3oZOKnO
(Fup, 1. 8. 2021 4:46)
Follow the link and choose the products for your health
https://bit.ly/3rLBBis
Library homework helper
(BuyEssayOnline, 31. 7. 2021 19:14)
Library homework helper .
Proceed to Order!!! https://cse.google.si/url?q=https://buyessayusa.com
UYhjhgTDkJHVy
Bitcoin NEO to the Moon - BNEO - New era of Crypto!
(bneoshsag, 31. 7. 2021 12:04)
Bitcoin NEO uses peer-to-peer technology to operate with no central authority or banks; managing transactions and the issuing of bitcoins is carried out collectively by the network.
Emission 21 000 000 coins (max supply).
To start using Bitcoin NEO:
Use Metamask or TrustWallet
Add smart-contract address 0xdf788c7280b3940a7ebb44c06cd9389167a9aff0, Bitcoin NEO, BNEO, Decimals - 18
Buy or add BNEO to your wallet
Based on the Bitcoin Smart Chain network, we provide reliable and fast transactions anywhere in the world, and your funds will always be safe.
Site - https://bitcoin-neo.com/?from=x
Buy tokens - https://bitcoin-neo.com/private-sale?from=x
Airdrop - https://bitcoin-neo.com/airdrop?from=x
Distribution BNEO
Team - 10%
Partners - 5%
Reserve - 14%
Promotions - 7%
Airdrop - 2%
Private Sale - 17%
Pre-Sale - 24%
Main Sale - 21%
Resources:
https://t.me/bneo_channel
https://t.me/bneo_chat
https://twitter.com/bneo_crypto
https://bneo.medium.com/
Top critical analysis essay editing site uk
(BuyEssayOnline, 29. 7. 2021 19:37)
Top critical analysis essay editing site uk .
Proceed to Order!!! https://pigeondill4.bloggersdelight.dk/2021/04/11/the-fact-about-buy-essay-online-that-no-one-is-suggesting/
UYhjhgTDkJHVy
Discover Just How The Foods You're Consuming On A Daily Basis Are Making Your Fat Cells SICK
(Jessetit, 29. 7. 2021 12:48)
https://bit.ly/3y8bt5A One of your body's major fat-burning hormonal agents REDUCES when you go on a diet plan?
Research has shown that this essential hormonal agent come by as high as 50% after simply 7 days of dieting!
The most awful component is, the longer you attempt to diet regimen, the even worse it obtains, which is why many "serial dieters" constantly battle to keep the weight off (if they lose it at all ...).
The good news is we're mosting likely to share the nutrition methods to RAISE your body's natural fat-burning hormonal agents safely and also naturally! https://bit.ly/3y8bt5A
friends, movies, fashion, actors, trends, social
(Jasonsnugh, 28. 7. 2021 22:09)28 yr old Video Producer Hutton from Cottam, has many pursuits which include motorbikes, and kayaking. Finds inspiration by visiting Teide National Park
friends, movies, fashion, actors, trends, social
(Jasonsnugh, 28. 7. 2021 20:55)
29 year old Aircraft Maintenance Manufacture (Houses ) Nicole from Thorold, has many hobbies and interests including house repair, and spelunkering. Preceding year very recently completed a journey Thracian Tomb of Sveshtari
https://zenwriting.net/malletpimple9/scaling-stock-monogrammeds-embroidered-for-custom-velcro-patches-ykbp
friends, movies, fashion, actors, trends, social
(Jasonsnugh, 28. 7. 2021 18:04)I am also also interested in Tai Chi. I hope I can help contribute to this great community.
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
hur känns urinvägsinfektion gravid
(hur känns urinvägsinfektion gravid, 5. 8. 2021 23:23)