Learning HTML Basic Commands - Complied together
I am trying to learn HTML through internet but there is no website
which will provide a complete list of HTML commands compiled together.
So i thought to compile all the commands and write them down together.
I hope it will help you people.
I hope it will help you people.
SNo. | What to do | How to do | Where to do/ Remarks |
1 | Body | <body></body> | everything has to be in here. Only this will be visible |
2 | Table | <table></table> | to start a table |
3 | Table rows | <tr></tr> | to start a row in table |
4 | Table cells | <td></td> | putting a value in table in different cells row wise |
5 | Changing the fonts | <h1-h6></h1-h6> | whenever writing a text <h1>rideandrite</h1> |
6 | Hyperlink | <ahref= "http://www.rideandrite. blogspot.com">Blog</a> |
can be used anywhere |
7 | Adding an Image |
<img src="bike.jpg" width="100" height="90"> |
can be used anywhere |
8 | Line break |
<br> |
to go into next line |
9 | Language Attribute |
lang="en-US" |
have to be declared before <body> in <html> |
10 | Tittle Attribute |
tittle="Keep Rawking" |
To make the text as tittle. <h tittle=" "> |
11 | Meta Data Attribute |
<meta charset="character_set"> character_set can be UTF-8 or ISO-8859-1 |
specifies the character encoding for the HTML document so that it can be used in all browsers |
12 | pre element |
<pre></pre> |
it will restore the text written and no need to use <br> |
13 | Style Attribute |
<tagname style="property:value;"> property is a CSS property, value is CSS value |
examples given below |
14 | Background Colour | <body style="background-color:blue;"> | it will change the background colour of full page |
15 | Text Colour | <h1 style="color:blue;">You Rock</h1> | it will change the colour of the text |
16 | Font-family property | <h1 style="font-family:verdana;">You Rock</h1> | to change the font of the line |
17 | Font-size property | <h1 style="font-size:300%;">keep Rawking</h1> | to change the font size of the line |
Comments
Post a Comment