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ářů
Временная регистрация в Санкт-Петербурге
thank you very much
(Kzkksrddox, 8. 3. 2023 16:35)Cool, I've been looking for this one for a long time
Сказка Курочка Ряба
(KevinIller, 8. 3. 2023 15:07)Сказка Курочка Ряба https://dzen.ru/video/watch/6406b55136fc3309ce02e249
Сказка Курочка Ряба
(KevinIller, 8. 3. 2023 8:01)Сказка Курочка Ряба https://dzen.ru/video/watch/6406b55136fc3309ce02e249
Сказка Курочка Ряба
(KevinIller, 8. 3. 2023 0:34)Сказка Курочка Ряба https://dzen.ru/video/watch/6406b55136fc3309ce02e249
https://telegra.ph/Arbuz-dragon-money-02-20#РђСЂР±СѓР· dragon money
(Brianalals, 7. 3. 2023 21:58)
https://telegra.ph/Promokod-na-dragon-mani-na-100-monet-02-20#Промокод на драгон мани на 100 монет
Black caviar not in a jar
(KendyBoire, 7. 3. 2023 20:08)
In order for caviar to be stored as long as possible, it must initially be fresh
After opening, even in the refrigerator, caviar can lie for a certain time - as a rule, no more than 3 days
There is an option to purchase black caviar not in a jar, but by weight
When defrosting, instead of expensive caviar, an incomprehensible porridge with a fishy smell may appear on the festive table
At home, black caviar is optimally placed in a glass container.
https://fokachos.com/
Сказка Курочка Ряба
(KevinIller, 7. 3. 2023 17:00)Сказка Курочка Ряба https://dzen.ru/video/watch/6406b55136fc3309ce02e249
Сказка Курочка Ряба
(KevinIller, 7. 3. 2023 5:08)Сказка Курочка Ряба https://dzen.ru/video/watch/6406b55136fc3309ce02e249
СКАЛОДРОМ. ДЕТСКИЙ СКАЛОДРОМ.
(KevinIller, 7. 3. 2023 1:34)СКАЛОДРОМ. ДЕТСКИЙ СКАЛОДРОМ. https://dzen.ru/video/watch/63fd8c267297bf7c326a52ee
slot dana
(EugeneTup, 6. 3. 2023 18:27)
Slot777 adalah situs slot online terpercaya di Indonesia yang menawarkan permainan slot dengan deposit pulsa tanpa potongan. Dengan adanya metode deposit pulsa, pemain dapat dengan mudah mengisi saldo dan bermain di mana saja. Selain itu, situs ini juga menawarkan berbagai provider slot terbaru seperti Pragmatic, Habanero, dan PGsoft.
Selain Slot777, ada juga situs slot online terpercaya lainnya seperti Slot88 yang menyediakan permainan slot dengan tingkat kemenangan yang tinggi. Situs ini juga menawarkan berbagai game slot seperti Slot88 Hong Long Meng, Slot88 Qixi, dan Slot88 Lucky Bats.
Namun, pemilihan situs slot online harus dilakukan dengan hati-hati karena banyak situs yang justru membuat pemain kalah terus. Oleh karena itu, disarankan untuk memilih situs slot yang resmi dan terpercaya seperti Slot777 dan Slot88. Dengan begitu, pemain dapat memainkan permainan slot dengan aman dan meraih kemenangan yang tinggi.
Discover the Secrets of Successful Reselling
(Justingaula, 6. 3. 2023 17:26)
Are you looking for a way to make money through reselling, NFTs, or ticket sales? Are you constantly searching for pricing errors that can help you score big profits? Look no further than our group dedicated to helping you succeed in these endeavors!
Our group is made up of experienced resellers, NFT collectors, and ticket brokers who are passionate about finding the best deals and maximizing profits. We use our expertise and knowledge of the industry to help members of our group find great deals and identify pricing errors that can lead to huge profits.
Whether you're new to reselling, interested in investing in NFTs, or looking to get into the ticket selling business, our group is the perfect place to start. We provide a supportive community of like-minded individuals who are dedicated to helping each other succeed.
In our group, you'll have access to exclusive tips, strategies, and insights that can help you stay ahead of the competition. We'll also keep you up-to-date on the latest trends and developments in the industry so that you can always make informed decisions.
So if you're ready to take your reselling, NFT collecting, or ticket selling game to the next level, join our group today! You won't regret it.
Here are a few links to get you started on your journey.
https://resellcalendar.com/news/reselling-101/how-to-find-the-best-items-to-resell/?ref=Beadsman_1
https://resellcalendar.com/news/reselling-101/determine-item-value-before-reselling/?ref=Beadsman_1
https://resellcalendar.com/news/news/how-to-buy-the-victor-wembanyama-rookie-card-for-5-99/?ref=Beadsman_1
https://resellcalendar.com/news/news/mad-1-red-watch-resells-for-10000-heres-how-to-get-one/?ref=Beadsman_1
Use this link to join the waitlist.
https://resellcalendar.com/elite/?ref=Beadsman_1
Revolutionize Your Trading Approach with Binary Options
(Olpbeink, 6. 3. 2023 12:13)
Hi!
Looking for a new way to invest your money? Try binary options trading and take control of your financial future. With our platform, you can invest in a variety of assets, and use our tools to make informed predictions. Start earning returns as high as 85% today!
WARNING! If you are trying to access the site from the following countries, you need to enable VPN which does not apply to the following countries!
Australia, Canada, USA, Japan, UK, EU (all countries), Israel, Russia, Iran, Iraq, Korea, Central African Republic, Congo, Cote d'Ivoire, Eritrea, Ethiopia, Lebanon, Liberia, Libya, Mali, Mauritius, Myanmar, New Zealand, Saint Vincent and the Grenadines, Somalia, Sudan, Syria, Vanuatu, Yemen, Zimbabwe.
https://cutt.us/4S0Pb
Sign up and start earning from the first minute!
СКАЛОДРОМ. ДЕТСКИЙ СКАЛОДРОМ.
(KevinIller, 6. 3. 2023 8:02)СКАЛОДРОМ. ДЕТСКИЙ СКАЛОДРОМ. https://dzen.ru/video/watch/63fd8c267297bf7c326a52ee
Nsf graduate fellowship essay length
(Buy Essay igo, 6. 3. 2023 4:54)
Nsf graduate fellowship essay length https://dantetjvh45311.wikiinside.com/3842749/paperhelp_discount_coupon_code_10_off
СКАЛОДРОМ. ДЕТСКИЙ СКАЛОДРОМ.
(KevinIller, 5. 3. 2023 21:07)СКАЛОДРОМ. ДЕТСКИЙ СКАЛОДРОМ. https://dzen.ru/video/watch/63fd8c267297bf7c326a52ee
СКАЛОДРОМ. ДЕТСКИЙ СКАЛОДРОМ.
(KevinIller, 5. 3. 2023 13:13)СКАЛОДРОМ. ДЕТСКИЙ СКАЛОДРОМ. https://dzen.ru/video/watch/63fd8c267297bf7c326a52ee
СКАЛОДРОМ. ДЕТСКИЙ СКАЛОДРОМ.
(KevinIller, 5. 3. 2023 5:20)СКАЛОДРОМ. ДЕТСКИЙ СКАЛОДРОМ. https://dzen.ru/video/watch/63fd8c267297bf7c326a52ee
Casino bonuses for registration with withdrawal
(Bongap, 5. 3. 2023 0:18)
Casino bonuses for registration with withdrawal
https://bezdepus.ru
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
Временная регистрация в Санкт-Петербурге
(Jamila, 8. 3. 2023 20:13)