Showing posts with label format. Show all posts
Showing posts with label format. Show all posts

Monday, April 26, 2010

HTML : Form And Text Input

As we know, HTML is easy program for website. If we want input some information, usually we use Form and text input.



orms are used in HTML to pass data. On the web, data is typically passed as a key-value pair. For example, the following URL:
http://www.xyz.com/example?c=1&d=title
has two separate key-value pairs, separated by '&'. The key for the first key-value pair is 'c', and the value is '1'. The key for the second key-value pair is 'd', and its value is 'title'.
How are key-value pair specified? They are specified by the <form> tag. The general format is as follows:


<form action=xxx>
  ...
  [section specifying the value for each key]
  ...
  <input type=submit value=Go>
</form>


The text after action= specifies the script to be executed after the user submits the information. <input type=submit> gives a button that the user clicks when she is ready to submit the information. The value=Go piece specifies the text appearing on the button, in this case 'Go'. This is shown below:



Tuesday, February 2, 2010

HTML Tutorial : Format

We have leard about html tags and we known about general format of html.
This section includes the tags often used for formatting the HTML text.

<font>
The <font> tag is used to change the format of the text on the web page. The most important attributes are as follows: javascript:void(0)

  • face: The type of font. Common ones include "Time New Roman", "Verdana", and "Helvetica."
  • size: This indicates the size of the text. This can be absolute (0 .. 6), or relative ("+1", "+2", ... or "-1", "-2" ...) 
  • color: This indicates the color of the text. Either the color name or the six-character color code may be used to specify color.