Showing posts with label html. Show all posts
Showing posts with label html. Show all posts

Tuesday, January 22, 2013

html vs dthml vs xhtml differences

Source: http://milhaniqbal.com/webplatform-the-new-site-for-web-standards/140

I. The basics

HTML and XHTML are different sematics, while dHTML (DHTML) is a name of technology.Using DHTML pretends to use HTML, CSS and Javascript together to create dynamic web pages and response to what a user does on a page.

XHTML 1.0 as a standard was published in 2000. Shortly after this working group started discussions of XHTML 2.0 which is still work. See reports on w3.org


II. MIME type

XHTML has to have application/xhtml+xml, application/xml, or text/xml  type.

III. The Semantics

XHTML has stricter rules semantically as an extension of XML.
For example: 
  • XHTML elements must be properly nested.
  • XHTML elements must always be closed.
  • XHTML elements must be in lowercase.
  • XHTML documents must have one root element.
  • XHTML elements must quoted attribute values
and others here on w3.org
The root element of an XHTML document must be html:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

Wednesday, February 29, 2012

оформление таблицы если бы html писался по-русски

Я тут переработал похоже и написал как должна была бы оформляться таблица если бы html писался по-русски:


<таблица бордюр="0" ячоступ="3" ячпробел="0" ширина="100%">
<таблтело>
<стр>
<яч высвыр="верх">
Hi, i am a first table cell!
</яч>
<яч>
I am his brother.
</яч>
</стр>
<стр>
<яч горизобъед="2" ширвыр="центр">
An i am a fat footer.
</яч>
</стр>
</таблтело>
</таблица>

Tuesday, October 25, 2011

обозначение required true в input

input type="text" id="car" required="true" /> - is wrong

, it should be one of:
input type="text" id="car" required />
input type="text" id="car" required="" />
input type="text" id="car" required='' />
input type="text" id="car" required=required />
input type="text" id="car" required="required" />
input type="text" id="car" required='required' />


отсюда: http://stackoverflow.com/questions/3090369/disable-validation-of-html5-form-elements