I got some old books from my Opa. I'll share if I find anything interesting.
seen from China
seen from China
seen from Venezuela
seen from China
seen from Türkiye

seen from Italy
seen from Türkiye

seen from Malaysia

seen from Türkiye

seen from United States

seen from Germany
seen from Mexico
seen from China

seen from Japan
seen from United States

seen from United States
seen from Malaysia
seen from United States
seen from Georgia
seen from United States
I got some old books from my Opa. I'll share if I find anything interesting.
08.09.2020 | pictures of the start of my web development class! trying my absolute hardest to structure my days!... understanding your own studying habits and what suits you isn't the easiest but I'll get there, and so will you!!
Why it’s a shame that XHTML died.
I've been doing a fair bit of web development over the years, and the more of it I do, the more I hate HTML. Why? Simple. It's fucking inconsistent.
HTML5 tags come in three flavours: <a></a>, <b/>, and <c>. The last one in particular is the one that makes me hate HTML5.
The thing about HTML5 is that it's never obvious when it's appropriate to use which tag. For example: <br> is correct, but <br/> is not, <img> is correct and <img/> is not. And the kicker: <script></script> is right, and <script/> is wrong.
Learning XML I was always taught that an opening tag needed a closing tag, and that an opening tag always without exception was followed by a closing tag, meaning that writing <foo> would always be wrong, and <foo></foo> would always be right, and that <foo/> was always just stand-in for a set of opening and closing tags.
So why is this a problem? Because it makes it impossible to write a HTML parser that knows how to deal with the tags properly; that is, unless you include special cases for all the tags that don't have closing tags... In XML/XHTML this isn't a problem at all because all the tags are completely uniform in their construction.
Example
Here's an example body of HTML code
<body> <h1>Hello, reader!</h1> <p>This is a simple example<br> of a broken up paragraph</p> <img src="my-image.png" alt="holiday photo"> <script src="my-script.js"></script> </body>
And now the same code in XHTML
<body> <h1>Hello, reader!</h1> <p>This is a simple example<br/> of a broken up paragraph</p> <img src="my-image.png" alt="holiday photo"/> <script src="my-script.js"/> </body>
Sure it all might just seem minor, after all the differences between the two examples aren't huge; but (to me) they're significant. All the tags are properly closed, it all looks neat and tidy, and look! The script line is actually shorter!
To me XHTML isn't more verbose, it's less confusing.
I mean sure, XHTML requires you to use this dreadful doctype and namespace:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">
Which is much less nice than the simple <!DOCTYPE Html> found in HTML5. But I'd argue the payoff is worth it in the long run.
Or it would be if any modern frameworks and tools actually supported XHTML.
Oh how I wish XHTML would be resurrected...
XHTML Nedir?
Web dünyasında sürekli değişen teknolojiler, standartların da gelişmesini gerektirir. XHTML (Extensible Hypertext Markup Language), HTML’in daha katı kurallar ve XML uyumluluğu ile geliştirilmiş bir versiyonudur. Peki, XHTML nedir? HTML ile arasındaki farklar nelerdir? Hangi avantajları ve dezavantajları sunar? Bu makalede XHTML’in tüm yönlerini detaylıca ele alacağız.
XHTML’in Tanımı ve Amacı
XHTML’in HTML’den Farkı Nedir?
XHTML, HTML’in XML kurallarına uyumlu hale getirilmiş bir sürümüdür. Daha sıkı sözdizimi kuralları içerir ve hata toleransı düşüktür. Bu nedenle, modern web standartları açısından daha güvenli ve stabil bir yapı sunar.
XHTML Neden Geliştirildi?
HTML, web dünyasında uzun süre standart olarak kullanıldı ancak esnekliği nedeniyle birçok uyumluluk ve hata sorunlarına yol açtı. W3C (World Wide Web Consortium) tarafından XHTML geliştirilerek HTML’in hatalara daha az açık, daha iyi yapılandırılmış bir versiyonu sunulmuştur.
XHTML’in Temel Özellikleri
XML ile Uyumluluk
XHTML, XML’in katı kurallarını benimser. Bu sayede, veri doğrulama ve taşınabilirlik açısından büyük avantaj sağlar.
Katı Sözdizimi Kuralları
XHTML, tüm etiketlerin küçük harfle yazılmasını, kapanmamış etiketlerin bulunmamasını ve tüm özniteliklerin tırnak işareti içinde belirtilmesini zorunlu kılar.
Daha Güvenli ve Stabil Yapı
XHTML kullanımı sayesinde web sayfaları farklı tarayıcılarda ve platformlarda daha stabil çalışır. Bu da kullanıcı deneyimini önemli ölçüde iyileştirir.
Artıları:
XML ile uyumlu olması sayesinde veri taşıma kolaylığı sağlar.
Web sayfalarının daha güvenli ve stabil çalışmasını garanti eder.
Daha iyi tarayıcı uyumluluğu sunar.
Eksileri:
HTML’e göre daha katı kurallar içerir ve öğrenmesi başlangıçta zor olabilir.
XHTML’in esnekliği HTML’e göre daha azdır.
HTML5’in yükselmesiyle popülerliği azalmıştır.
XHTML Nasıl Kullanılır?
XHTML Doküman Yapısı
XHTML dokümanları, belirli bir yapıya sahiptir ve her dosyanın başında bir DOCTYPE beyanı bulunmalıdır.
Geçerli Bir XHTML Belgesi Oluşturma
Tüm etiketleri küçük harf ile yazın.
Kapatılması zorunlu olan tüm etiketleri kapatın.
Öznitelik değerlerini mutlaka tırnak içine alın.
XHTML’in Günümüzdeki Kullanımı
XHTML, HTML5’in yükselmesiyle eskisi kadar yaygın olarak kullanılmamaktadır. Ancak, XML ile veri paylaşımı gereken projelerde hala tercih edilmektedir. XHTML’nin en büyük avantajı, katı sözdizimi kurallarıyla tutarlı web siteleri oluşturmaya olanak tanımasıdır.
Sonuç
XHTML, HTML’in XML uyumlu ve daha güvenli versiyonu olarak geliştirilmiş bir işaretleme dilidir. Modern web geliştirme süreçlerinde HTML5 daha yaygın olarak kullanılsa da, XHTML’in sunduğu stabilite ve kurallar sayesinde hâlâ belirli projelerde tercih edilmektedir. Eğer daha yapılandırılmış ve hatasız kod yazmak istiyorsanız, XHTML’i öğrenmek faydalı olabilir.
Sıkça Sorulan Sorular (SSS)
1. XHTML ne için kullanılır? XHTML, web sayfalarının daha güvenli ve tutarlı olması için geliştirilmiş bir işaretleme dilidir.
2. XHTML ile HTML arasındaki fark nedir? XHTML, HTML’in daha katı sözdizimi kurallarına sahip olan XML tabanlı bir sürümüdür.
3. XHTML hala kullanılıyor mu? Günümüzde HTML5 daha yaygın olsa da, belirli projelerde XHTML kullanılmaktadır.
4. XHTML mi, HTML5 mi daha iyi? HTML5 daha esnektir ve günümüz web teknolojileri için daha uygundur. Ancak, XHTML daha disiplinli bir kod yapısı sunar.
5. XHTML sayfası nasıl oluşturulur? XHTML sayfası oluşturmak için XML uyumlu sözdizimi kullanarak uygun DOCTYPE beyanı eklenmelidir.
6. XHTML belgelerini doğrulamak neden önemlidir? Doğrulama, hatasız ve uyumlu kod yazılmasını sağlar, böylece tarayıcı uyumluluğu artar.
7. XHTML dosyaları nasıl açılır? XHTML dosyaları, herhangi bir tarayıcı veya kod editörü ile açılabilir.
8. XHTML’de en sık yapılan hatalar nelerdir? Kapatılmayan etiketler, büyük harf kullanımı ve tırnak işareti eksikliği en sık yapılan hatalardır.
9. XHTML SEO açısından avantajlı mı? Daha temiz kod yapısı sayesinde SEO için olumlu etki yaratabilir, ancak HTML5 kadar yaygın değildir.
10. XHTML yerine ne kullanmalıyım? Modern web geliştirme için HTML5 önerilmektedir, ancak XML uyumlu projeler için XHTML hâlâ geçerlidir.
HTML or XHTML: Which Syntax Will Give You Fewer Headaches?
When diving into web development, one of the first decisions you'll face is whether to use HTML or XHTML. Both are markup languages essential for creating web pages, but they come with different rules and characteristics. This guide will explore the nuances of HTML and XHTML, helping you decide which syntax might offer you fewer headaches.
Introduction
When building websites, the choice between HTML and XHTML can significantly impact your development process. Both HTML (HyperText Markup Language) and XHTML (eXtensible HyperText Markup Language) are crucial for structuring web pages, but they come with different sets of rules and features. Understanding these differences can help you avoid common pitfalls and select the syntax that best fits your needs.
What is HTML?
Definition
HTML stands for HyperText Markup Language. It is the standard language used to create and design web pages. HTML provides the basic structure of web documents by using a system of tags and attributes to define elements on the page.
History and Evolution
HTML has been around since the early days of the web. Since its inception in 1991 by Tim Berners-Lee, it has evolved through several versions. HTML5, the latest version, introduced new elements and APIs to better support modern web applications.
Basic Structure
A typical HTML document starts with a <!DOCTYPE html> declaration, followed by an <html> element that contains a <head> and a <body>. Within these sections, you can include various elements like headings, paragraphs, links, and images.
What is XHTML?
Definition
XHTML stands for eXtensible HyperText Markup Language. It combines the flexibility of HTML with the strict syntax rules of XML (eXtensible Markup Language). XHTML aims to improve web standards and ensure consistent rendering across different browsers.
Differences from HTML
While XHTML is similar to HTML, it enforces stricter rules. For example, XHTML documents must be well-formed XML documents, meaning they must adhere to precise syntax rules such as proper tag closure and case sensitivity.
Basic Structure
An XHTML document also begins with a <!DOCTYPE html> declaration but requires all tags to be properly closed and nested. It follows a more rigorous syntax compared to HTML.
Key Differences Between HTML and XHTML
Syntax Rules
HTML is more lenient with syntax rules. For example, tags can be left unclosed, and attribute values can be omitted if they are boolean. XHTML, on the other hand, requires all tags to be closed and attributes to be quoted.
Case Sensitivity
HTML is not case-sensitive. Tags and attributes can be written in any combination of uppercase and lowercase letters. XHTML requires all tags and attributes to be in lowercase.
Tag Closure
In HTML, some tags like <br> or <img> don’t require closing tags. XHTML mandates that all tags must be closed, either with a separate closing tag or a self-closing slash (e.g., <br />).
Advantages of HTML
Flexibility
HTML's flexibility allows for faster development and easier adjustments. Developers can write less strict code without worrying about compliance issues.
Browser Compatibility
HTML has broad compatibility with various browsers. Older browsers and newer ones alike generally support HTML, making it a safe choice for many projects.
Ease of Use
For beginners, HTML is easier to learn and use. Its less strict rules mean fewer errors during development.
Advantages of XHTML
Strict Syntax Rules
XHTML’s strict syntax rules help ensure that documents are well-formed and free of errors. This can lead to more predictable rendering and easier debugging.
Compatibility with XML
Since XHTML is based on XML, it integrates well with other XML-based technologies. This can be beneficial for projects that require data interchange between different systems.
Error Handling
XHTML provides better error handling due to its stricter rules. Errors are often easier to identify and fix compared to HTML.
Common Issues with HTML
Browser Inconsistencies
HTML’s lenient syntax can lead to inconsistencies in how different browsers render the same page. This may require additional testing and adjustments.
Deprecated Elements
Some HTML elements and attributes have become outdated. Using these can lead to issues with modern browsers and may impact future-proofing your website.
Common Issues with XHTML
Strict Compliance Requirements
The strict rules of XHTML can be challenging, especially if you’re used to HTML’s more relaxed approach. Small mistakes, like forgetting to close a tag, can cause your entire document to fail.
Potential for More Errors
Due to its stricter nature, XHTML can lead to more frequent errors during development. This requires more careful coding and validation.
When to Use HTML
Simple Projects
HTML is suitable for straightforward projects where the flexibility and ease of use outweigh the need for strict standards.
Legacy Systems
For maintaining older websites that were originally built with HTML, sticking with HTML might be easier and more practical.
When to Use XHTML
Complex Projects
If you’re working on a complex project that requires rigorous data handling or integration with other XML-based technologies, XHTML might be the better choice.
XML-Based Applications
For applications that need to comply with XML standards, XHTML provides the necessary structure and error handling.
Best Practices for Using HTML and XHTML
Writing Clean Code
Regardless of the syntax you choose, writing clean and organized code is crucial. It makes your code more readable and maintainable.
Validating Your Code
Use validation tools to check your HTML or XHTML code. This helps catch errors early and ensures your code meets the standards.
Staying Updated with Standards
Web standards evolve, so stay informed about the latest developments in HTML and XHTML to keep your skills and code current.
Conclusion
Choosing between HTML and XHTML depends on your project requirements and personal preferences. HTML offers flexibility and ease of use, while XHTML provides strict syntax rules and compatibility with XML. Consider the complexity of your project, the need for strict standards, and your own comfort level with these languages when making your decision.
FAQs
What are the main differences between HTML and XHTML?
HTML is more flexible and less strict with syntax, while XHTML enforces stricter rules and is XML-based.
Can I mix HTML and XHTML in the same document?
No, mixing HTML and XHTML in the same document can lead to errors. Stick to one syntax for consistency.
Which is better for mobile web development?
Both HTML and XHTML can be used for mobile web development, but HTML5 is often preferred due to its modern features and flexibility.
How do I transition from HTML to XHTML?
To transition, start by ensuring your HTML is well-formed and follows XHTML rules. Use validation tools to check for compliance.
Are there any tools to help with HTML or XHTML validation?
Yes, tools like W3C Markup Validation Service and HTML Tidy can help validate and clean up your code.
XHTML
XHTML înseamnă „Extensible HyperText Markup Language”. Este un limbaj de marcare folosit pentru crearea paginilor web și se bazează pe XML (eXtensible Markup Language). XHTML a fost dezvoltat pentru a fi o versiune mai strictă și mai curată a HTML (HyperText Markup Language) urmând regulile de sintaxă XML. Principala diferență dintre HTML și XHTML este că XHTML necesită ca toate elementele să fie…
View On WordPress