<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Development%3AXHTML</id>
	<title>Development:XHTML - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Development%3AXHTML"/>
	<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Development:XHTML&amp;action=history"/>
	<updated>2026-05-06T17:37:44Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Development:XHTML&amp;diff=12194&amp;oldid=prev</id>
		<title>Олег Давидович: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Development:XHTML&amp;diff=12194&amp;oldid=prev"/>
		<updated>2024-10-21T08:59:22Z</updated>

		<summary type="html">&lt;p&gt;1 версия импортирована&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 08:59, 21 октября 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Олег Давидович</name></author>
	</entry>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Development:XHTML&amp;diff=12193&amp;oldid=prev</id>
		<title>1&gt;Tsala: category edit</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Development:XHTML&amp;diff=12193&amp;oldid=prev"/>
		<updated>2009-11-26T17:36:38Z</updated>

		<summary type="html">&lt;p&gt;category edit&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This page is part of the [[Development:Coding|Moodle coding guidelines]].&lt;br /&gt;
&lt;br /&gt;
==XHTML Strict 1.0==&lt;br /&gt;
&lt;br /&gt;
Moodle output must be compliant with XHTML Strict 1.0. This means it must be:&lt;br /&gt;
&lt;br /&gt;
===Well-formed XML===&lt;br /&gt;
&lt;br /&gt;
In a well-formed XML document, every opening tag has a matching close tag; tags are properly nested, attributes are properly quoted, and the file contains no syntax errors. See [http://www.w3.org/TR/xml/#sec-well-formed the XML specification for a formal definition].&lt;br /&gt;
&lt;br /&gt;
While developing, you should have the option Administration ► Server ► Debugging ► XML strict headers turned on. With this option on, your web browser will refuse to display any page that is not well-formed. This makes such problems easy to find and fix.&lt;br /&gt;
&lt;br /&gt;
===Valid XHTML Strict===&lt;br /&gt;
&lt;br /&gt;
This means that the XML of your page follows the particular rules from the [http://www.w3.org/TR/xhtml1/dtds.html#a_dtd_XHTML-1.0-Strict XHTML-1.0-Strict DTD]. &amp;lt;nowiki&amp;gt;For example, the first tag in the file must be &amp;lt;html&amp;gt;, a &amp;lt;form&amp;gt; tag must have an action=&amp;quot;&amp;quot; attribute, an &amp;lt;li&amp;gt; can only appear inside an &amp;lt;ol&amp;gt; or &amp;lt;ul&amp;gt;, you cannot use &amp;lt;frame&amp;gt; tags, and so on.&amp;lt;/nowiki&amp;gt; and so on.&lt;br /&gt;
&lt;br /&gt;
You can check whether the HTML you output is valid by using a HTML validator, for example the [https://addons.mozilla.org/en-US/firefox/addon/249 Html Validator] add-on for Firefox.&lt;br /&gt;
&lt;br /&gt;
===Semantic markup===&lt;br /&gt;
&lt;br /&gt;
That is, HTML tags should be used only to mark up the appropriate types of content. For example:&lt;br /&gt;
* tables should not be used for page layout, just to display tabular information,&lt;br /&gt;
* if something is a heading, it should be marked up using &amp;lt;h&amp;#039;&amp;#039;n&amp;#039;&amp;#039;&amp;gt; tags, for an appropriate &amp;#039;&amp;#039;n&amp;#039;&amp;#039;,&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;if something is a list, it should be marked up using &amp;lt;ol&amp;gt;, &amp;lt;ul&amp;gt; or &amp;lt;dl&amp;gt;,&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
* see [[Semantic HTML]] for further details&lt;br /&gt;
&lt;br /&gt;
==Styling==&lt;br /&gt;
&lt;br /&gt;
How the HTML is laid out should be controlled by CSS in whichever theme is currently selected.&lt;br /&gt;
&lt;br /&gt;
* Ensure that the HTML contains enough id=&amp;quot;...&amp;quot; and class=&amp;quot;...&amp;quot; attributes so that theme designers can easily control how it is displayed.&lt;br /&gt;
* Never embed inline styles in the HTML (that is, do not use the style=&amp;quot;...&amp;quot; attribute).&lt;br /&gt;
* As you change core Moodle code, you must update the standard theme so that Moodle looks OK out of the box.&lt;br /&gt;
* If you need to make basic style definitions for a module (or some other sorts of plugin), put them in a file called styles.php in that module. This will be included into every theme.&lt;br /&gt;
&lt;br /&gt;
===The standard theme===&lt;br /&gt;
&lt;br /&gt;
The standard theme should contain the minimal styling to make Moodle look OK and function. Its main purpose is to serve as a building block for other themes. Try to keep it as plain as possible.&lt;br /&gt;
&lt;br /&gt;
When you change the standard theme, check some of the other core themes that inherit from it to ensure they also look OK.&lt;br /&gt;
&lt;br /&gt;
== Moodle API ==&lt;br /&gt;
&lt;br /&gt;
* Use the functions in lib/weblib to do as much as possible (print_header(), print_box() etc)&lt;br /&gt;
* This API will change a lot in Moodle 2.0.  See:  [[Development:Navigation_2.0]]&lt;br /&gt;
&lt;br /&gt;
== See also: ==&lt;br /&gt;
&lt;br /&gt;
* [http://developer.apple.com/internet/webcontent/bestwebdev.html Web Page Development: Best Practices] by the Safari development team at Apple.&lt;br /&gt;
* [[Development:Coding|Other Moodle coding guidelines]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Coding guidelines|XHTML]]&lt;/div&gt;</summary>
		<author><name>1&gt;Tsala</name></author>
	</entry>
</feed>