Showing posts with label HTML. Show all posts
Showing posts with label HTML. Show all posts

Monday, May 14, 2012

HTML5 Input Controls


<form method="post">

Email: <input type="email" name="email" value="" required="required">
URL: <input type="url" name="url" value="" required="required">
Telephone: <input type="tel" name="tel" value="" required="required">


<input type="submit" value="Submit" />
</form>


The above controls are introduced in HTML5 input controls. If we omit required attributes, it may be empty. Validation also will happen while submit a form.



Wednesday, March 28, 2012

Pass the form values from one domain to another domain with POST values.

yes. we can pass the form values from one domain to another domain with using POST method. We have to add action attribute in <form> tag.
<form method="POST" action="http://www.anotherdomain.com" target="_parent">
</form>

Wednesday, September 28, 2011

XHTML Syntax Rules

Attribute names must be in lower case

Attribute values must be quoted

Attribute minimization is forbidden

The XHTML DTD defines mandatory elements

Tuesday, September 27, 2011

What is XHTML?

XHTML stands for EXtensible HyperText Markup Language

XHTML is almost identical to HTML 4.01

XHTML is a stricter and cleaner version of HTML

XHTML is HTML defined as an XML application

XHTML is a W3C Recommendation