Professional Documents
Culture Documents
ANUJ KUMAR
Web Notes
[Type the document subtitle]
Windows User
2018
About HTML:- html is devolved by Tim burners-Lee in 1990, html is sort form of Hypertext mark up
language . html is used to create electronic document (webpage) that are display on the www(word wide web).
Each page content a series of connection to other pages called hyperlink . every web page you see on the
internet is retain using html code.
Structure of web page :- There are basic two section of each web page as like –
Head section :- Title bar , menu bar , Address bar , Tool Bar .
Example:- <html>
<head>
<\head>
This is tag – command
<body>
fo”ks’k izdkj ds work dks gh tag dgk
<\body>
tkrk gS A
<\html>
Element of html :- There are basic element of html (i) Tag (ii) Attribute
Tag :- Tag is command of html that is used for perform specific task . It is always closed with (< >) bracket .
Note :- Tag type tag (1) Container (2) Empty .
Attribute :- Attribute is additional sub cutes information / Description of related tag .
<html> :- It is first tag of web page that enter dues web page designing it start it is container tag
Because html tag always closed <\html>.
<Br> :- Br tag is a empty tag because it is start but don’t closed . it is used for break/ change line in to html .
<head> :- It is used for head section for any html document head tag includes title of documents , styles , scripts and
other Miata information of the web page .
Syntax :- <head>
_________
Head tag :- Title bar , Tool bar , Menu Bar , Address
_________
bar
<\head>
Miata information .
<title> :- the title tag recvayerd is all the html document that is define title of the document .
2|Page
25 March 2018 Page |3
<\title>
Q.1. Write a html code for title of web page .
Ans. <html>
<head>
<title>
Career Tech Academy
<\title>
<\head>
<\html>
<body> :- the body tag is define the document area that include text, picture , hyperlink , table , form and list etc.
There are following attribute of body tag .
1. Back ground
2. Bg color
3. Text
___________________
___________________
<\body>
Q.2. Write a html code for insert a image in back ground of document .
Ans. <html>
<\body>
<\html>
<p> :- It is paragraph tag that is used for writing a paragraph in html document there is one attribute of <p> is
align.
__________________
_________________
<\p>
Q.3. Write a html code for writing 5 line paragraph with red color in yellow background .
Ans. <html>
1 Computer Path
3|Page
25 March 2018 Page |4
<p>
<\html>
<font> :- the font tag is used for set the font name font size and fond color of the selected text in html document.
___________
____________
<\font >
Q.4. Write a html code for right to 10 line paragraph with five line blue and five line is green .
Ans. <html>
<body>
<p>
<font color=”blue”>
</font>
</p>
</p>
</body>
</html>
Q.5. Write a html code for 10 line paragraph with five line red color and monotype cursive face 14 size
and rest five line with Times new Roman face .
Ans. <html>
<body>
4|Page
25 March 2018 Page |5
<p>
</font>
</p>
</body>
</html>
<marquee> :- marquee tag is used for scrolling the piece of text or image in thee html document .
Syntax :- <marquee>
Text/image
</marquee>
Example :- <html>
<body>
<p>
</p>
</body>
</html>
<Sub> :- Sub tag is font elect tag that is used for subscript (basic line text of regular text) of the selected text.
1
(i) Alternative (ii) Slide (iii) Scroll
2
(i) Left (ii) Right (iii) up (iv) down
5|Page
25 March 2018 Page |6
H2SO4
Ans. <html>
<body>
<p>
H<sub>2</sub> SO<sub>4</sub>
</p>
</body>
</html>
<sup> It also font elect tag that is used for above line text of regular text (superscript) in html document .
x2+y2+2xy=0
Ans. <html>
<body>
<p> x<sup>2</sup>+y<sup>2</sup>+2xy=0
</p>
</body>
</html>
<B>,<U>,<I> :- These tag is used for respective bold of selected text , underline of selected text and Italic of
selected text in html document.
Ans. <html>
<body>
<p>
</p>
6|Page
25 March 2018 Page |7
</body </html>
List :- In html to create numbering and bullets using list . There are basic two type of list create in a html document .
Order list :- Its is create by <ol> and type , start is attribute of this tag .
</ol>
Example :- <html>
<body>
<ol>
1. Moniter
2. Printer
A. Imfact
B. Non Imfact
3. Speker
Ans. <html>
<body>
<ol>
<li> Printer</li>
<li> No imfact</li>
7|Page
25 March 2018 Page |8
</ol>
<li> Speaker</li>
</ol>
</body> </html>
Unordered List :- To create bullets( unordered list ) using <ul> and type one attribute <ul>
<li>
Text
</li>
</ul>
Input device
1. Keyboard
Normal Keyboard
Multi media keyboard
2. Mouse
3. Scanner
o Flat bed scanner
o Drum
4. Joystick
A.Track ball
<ol><li> keyboard
<li> Mouse
<li> Scanner
<li> Joystick</li></ol>
</body>
8|Page
25 March 2018 Page |9
</html>
<Heading> :- heading us used for heading (bold) in html document heading is created in html document using <h1> to
<h6> .
Brower support the jpg . bmp and gif file format . and there attribute is .
Example :- <html>
<body>
</img>
</margue> </body></html>
Table:- Table is combination of row and column in html , to create a table by using table tag there are
Following sub tag used with table tag . There are following attribute in table tag .
1. <tr> (row)
2. <th> (heading) default (bold,center)
3. <td> (column) default(regular , left)
Example :- <html><body>
<tr><th>S.l. No.
<th>father name
<th>mother name</th></tr>
</table>
</body>
</html>
9|Page
25 March 2018 P a g e | 10
Ans. <html>
<tr><td colspan=2> </td></tr>
<tr> <td> <td> </td></tr>
</table>
</body></html>
Ans. <html>
<html>
<tr><td rowspan=2><td> </td></tr>
<tr> <td> </td></tr>
</table>
</body></html>
Ans. <html>
<tr><td> <td> </td></tr>
</table>
</body></html>
Ans. <html>
10 | P a g e
25 March 2018 P a g e | 11
<tr><td> <td rowspan=2> </td></tr>
<tr><td> </td></tr>
</table>
</body></html>
<form>:- form is also known as web form that iss uses form input information to web page and stor for future
uses . the basic element of form tag as.
1. Text box
2. Option button
3. Ckeck box
4. Command button
5. Combo box
6. List box
7. Text Area etc
<Input tag> by using input tag , we can create text box, ckeck box, radio button ,
Password , text box, submit button and reset button , There are following attribute of input tag.
(1) Type (2) value (3) size (4) name (5) max length etc.
<html>
<body bgcolor=grey>
<form>
<html>
<body bgcolor=grey>
<form>
<html>
<body bgcolor=grey>
<form>
11 | P a g e
25 March 2018 P a g e | 12
<html>
<body bgcolor=grey>
<form>
<option>Pakistan<br>
<option>America<br>
<option>Austelia</option></select></form></body></html>
<option>Pakistan<br>
<option>America<br>
<option>Austelia</option></select></form></body></html>
<html><head></head>
<tr>
<td>
<td align="right">
</td></tr></table></body></html>
<html>
<body>
12 | P a g e
25 March 2018 P a g e | 13
<form>
</input >
</form></body></html>
<html>
<body bgcolor="red">
<form >
</form>
</body></html>
<html>
<body>
</form></body></html>
<html><head><script>
function abc()
alert (date());
}</script></head>
<body><form>
</body>
</html>
Ans. <html>
<head>
<script>
13 | P a g e
25 March 2018 P a g e | 14
</script>
</head>
<body>
</form>
</body>
</html>
Ans. <html>
<head><script>
Function dun()
f1.t1.value=date();
}</script></head>
<body>
<form name=”f1”>
</form>
</body>
</html>
14 | P a g e
25 March 2018 P a g e | 15
15 | P a g e