Color Code
HTML color codes are hexadecimal numbers representing the colors as red, green, and blue.
The hex values is used with the #sign in starting.
A hexadecimal is a 6 digit representation of a color. The first two digits(RR) represent a red value, the next two are a green value(GG), and the last are the blue value(BB).
the dynamic color code table look like this.
for web site background color:
<body style=”background:#80BFFF”>
for setting font/text color:
<span style=”color:#80BFFF”>
for table background color:
<table style=”background:#80BFFF”>
Q tag in Html.
Q tag (<q> tag ) is used for short quotation .The browser will insert quotation marks around the quotation . If your quotation is of multiple line you should use html <block quote >. It is an online element.
<q> Save our tigers. </q>
out put :
“Save our Tigers. “
Submit button in html .
submit button helps to send the form information to a specified location.Just we have to mention the address in the action setting to the <form> tag
Attributes
name – we should mention a unique name to our button, so that we can use it properly with out any confusion.
value – It says that what is written on the button.
align – we can align, by using align attribute.
tab order – it says in which order the different field will be activated when the user clicks the tab key.
<form action="hello.php" method="get"> User name : <input name="user" type="text" /> <input type="submit" value="Go" name="go_button align="middle"/> </form>
In this example if you hit the go button it will try to retrieve hello.php and show the information available in that.
Option tag in html .
The option tag is used in conjunction with the select tag . It is used for defining option items within the select list . The option element goes inside the select element.It is used to create drop-down list.It has no end tag
<select> <option value ="delhi">Delhi</option> <option value ="mumbai">Mumbai</option> <option value ="culcutta" selected>Culcutta</option> <option value ="bangalore">Bangalore</option> </select>
Tips
If you have a long list of options ,you can group
together with the <option group tag >.
ex:
<optgroup label=”Nokia”>
<option value=”N95″>N95</option>
<option value=”N72″>N72</option>
</optgroup>
<optgroup label=”Samsung”>
<option value=”sumsung corby”>sumsung corby</option>
<option value=”sumsung metro”>sumsung metro</option>
</optgroup>
In this example Nokia and samsung are group name of their sublist.just try and see the out put.
No script
The no script tag is used to provide an alternate content for users . A browser doesn’t support client – side scripting ,The no script element can contain all the elements .You can find inside the body element of normal Html page .
<script type=”text/javascript”> document.write(“Hello World!”) </script> <noscript>hello,wel come to the world!</noscript>.
Out put :
Hello World!
wel come to the world!
In this example Hello World,will be displayed in the page.When the browser both supports javascript.If the browser doesn’t support javascript or javascript is turned off then displayed “wel come to the world !.
Noframe tag in html
Noframe tag is used to create frames page . The noframe elements can contain all the elements . You can find it inside the body . It displays a message to users that frames are required .
<html> <frameset cols="25%,50%,25%"> <frame src="frame_a.htm" /> <frame src="frame_b.htm" /> <frame src="frame_c.htm" /> <noframes> Sorry, your browser does not handle frames! </noframes> </frameset> </html>
Menu tag in html
Menu tag is used to create a list of menu choices for a user .
<menu> <li>html</li> <li>xhtml</li> <li>css</li> </menu>
The menu tag is started with <menu > ends with </menu> .The list tag specifies the list of items.
out put :
Html forms
Form tags are used to pass data into a server.
A form can contain input elements like text fields, checkboxes, radio-buttons, submit buttons and more.
A simple HTML form with two input fields and one submit button:
look that example :
<form action="form_action.asp" method="get"> First name: <input type="text" name="fname" /><br /> Last name: <input type="text" name="lname" /><br /> <input type="submit" value="Submit" /> </form>
Click the “Submit” button and the input will be sent to a page on the server called “form_action.asp”.
Words to know in html
TAG : Tag is used to specify regions of Html documents for the web browser to interpret .<tag> Look like this.
Element : A complete tag,having an opening <tag> and closing </tag>.
Attribute : It is used to modify the value of the Html element . Elements may often have multiple attributes.
In html tag is a command . An element is complete tag. An attribute modifies html elements . A web page created using a language called html code. You can write your own coding with in a plain text editor such as notepad used in html . Html are enclosed by > (greater than)
and < (lesser than) ,and may be written in capital or lower case letters .
The opening bracket is followed by an element . An element is browser command .
Table in Html
Tables are defined with the <table> tag . A table is divided into rows and columns. The table tag contains other tags that define the structure of the table.
Some other tags are nested into table tag to make the table structure.The important elements available inside the table are tr,th and td elements.
tr is used to define table row,th is used to define table header and the td tag is used to define table cell.
<table border="1"> <tr> <td>Samsung </td> <td>Nokia</td> </tr> <tr> <td>Spice</td> <td>Motorla</td> </tr> </table>
out put :
Samsung | Nokia |
Spice | Motorla |