<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.kjodle.net/index.php?action=history&amp;feed=atom&amp;title=Basic_HTML_Document_Structure</id>
	<title>Basic HTML Document Structure - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.kjodle.net/index.php?action=history&amp;feed=atom&amp;title=Basic_HTML_Document_Structure"/>
	<link rel="alternate" type="text/html" href="https://wiki.kjodle.net/index.php?title=Basic_HTML_Document_Structure&amp;action=history"/>
	<updated>2026-05-13T01:23:00Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.33.1</generator>
	<entry>
		<id>https://wiki.kjodle.net/index.php?title=Basic_HTML_Document_Structure&amp;diff=987&amp;oldid=prev</id>
		<title>Kenneth John Odle: /* The Doctype Element */</title>
		<link rel="alternate" type="text/html" href="https://wiki.kjodle.net/index.php?title=Basic_HTML_Document_Structure&amp;diff=987&amp;oldid=prev"/>
		<updated>2013-11-17T21:53:17Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;The Doctype Element&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 21:53, 17 November 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l21&quot; &gt;Line 21:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 21:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===The Doctype Element===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===The Doctype Element===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;All HTML pages should have a &amp;lt;code&amp;gt;&amp;lt;doctype&amp;gt;&amp;lt;/code&amp;gt; declaration that informs the browser which version of HTML the page is written in. See [[Doctype]] for &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;a &lt;/del&gt;more information, as well as a list of available doctypes.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;All HTML pages should have a &amp;lt;code&amp;gt;&amp;lt;doctype&amp;gt;&amp;lt;/code&amp;gt; declaration that informs the browser which version of HTML the page is written in. See [[Doctype &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;| doctype&lt;/ins&gt;]] for more information, as well as a list of available doctypes.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===The HTML Element===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===The HTML Element===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kenneth John Odle</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.kjodle.net/index.php?title=Basic_HTML_Document_Structure&amp;diff=985&amp;oldid=prev</id>
		<title>Kenneth John Odle: Created page with &quot;All HTML documents must adhere to the same basic structure. There are some variations between the different versions of HTML, which are described below.   ==Basic Structure== ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.kjodle.net/index.php?title=Basic_HTML_Document_Structure&amp;diff=985&amp;oldid=prev"/>
		<updated>2013-11-17T19:13:41Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;All HTML documents must adhere to the same basic structure. There are some variations between the different versions of HTML, which are described below.   ==Basic Structure== ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;All HTML documents must adhere to the same basic structure. There are some variations between the different versions of HTML, which are described below. &lt;br /&gt;
&lt;br /&gt;
==Basic Structure==&lt;br /&gt;
&lt;br /&gt;
The basic structure of any HTML document, whether [[HTML4]], [[HTML5]], or [[XHTML]], is the same:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;!doctype html&amp;gt;&lt;br /&gt;
&amp;lt;html lang=&amp;quot;en&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
    &amp;lt;meta charset=&amp;quot;utf-8&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Document Title&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
...[page content]...&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Differences Between HTML Versions==&lt;br /&gt;
&lt;br /&gt;
===The Doctype Element===&lt;br /&gt;
All HTML pages should have a &amp;lt;code&amp;gt;&amp;lt;doctype&amp;gt;&amp;lt;/code&amp;gt; declaration that informs the browser which version of HTML the page is written in. See [[Doctype]] for a more information, as well as a list of available doctypes.&lt;br /&gt;
&lt;br /&gt;
===The HTML Element===&lt;br /&gt;
For HTML4 and HTML5 documents, this is simply &amp;lt;code&amp;gt;&amp;lt;html lang=&amp;quot;en&amp;quot;&amp;gt;&amp;lt;/code&amp;gt;. For more information, see [[Language Codes]]. &lt;br /&gt;
&lt;br /&gt;
===The Character Encoding Element===&lt;br /&gt;
This is the &amp;lt;code&amp;gt;charset&amp;lt;/code&amp;gt; meta element. An HTML4 document doesn't have the trailing slash, whereas an HTML5 document may or may not have the trailing slash. It's preferable to put it before the &amp;lt;code&amp;gt;title&amp;lt;/code&amp;gt; element.&lt;br /&gt;
&lt;br /&gt;
[[Category:HTML]]&lt;/div&gt;</summary>
		<author><name>Kenneth John Odle</name></author>
		
	</entry>
</feed>