0% found this document useful (0 votes)
13 views

HTML Code.doxs 2

The document contains multiple HTML code examples demonstrating various HTML elements and attributes, including forms, tables, images, and styles. Each example illustrates specific functionalities such as using form tags, background images, table borders, and alignment. The codes are structured to show how to implement these features in web development.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

HTML Code.doxs 2

The document contains multiple HTML code examples demonstrating various HTML elements and attributes, including forms, tables, images, and styles. Each example illustrates specific functionalities such as using form tags, background images, table borders, and alignment. The codes are structured to show how to implement these features in web development.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 17

QUES . WRITE A HTML CODE USING FORM TAG WITH CONTROL TAG?

<html>
<head>
<title> creating form </title>
</head>
<body bgcolor= "skyblue">
<h2> Sample form</h2>
<font size = 3>
<form>
FIRST NAME<input type= "text" name= "firstname" value= "" ><br>
LAST NAME <input type="text" name = "lastname" value=""><br>
EMAIL <input type="text" name="email" value="" ><br>
<input type= "checkbox" name= "check"> set google as my default
homepage <br><br>
<input value="send" type= "submit">
<input type= "reset">
</p>
</form>
</font>
</body>
</html>
QUES. WRITE A HTML USING BGCOLOR AND TEXT?

<html>
<head>
<title>using bgcolour and text </title>
</head>
<body bgcolor="yellow" text ="blue">
<p align= "center"> <font face="Colonna MT Regular" size= 6>
There is a lot of stress all around us these days. Most people
complain about problems at office, issues in relationships and the
growing competition in various fields. People are so engrossed in
dealing with these issues that they don’t see the real beauty of life.
There is so much more to life than these things. In fact, if we look at
life closely, we will realize how beautiful it is. God has given us an
abundance of everything. </font> </p>
<p> <font size = 6 face="Segoe Print">
Freedom fighters are people who fought to free their country from
an oppressor. They often face hardships in the process of securing
the freedom of their country and people. Because of the freedom
fighters who fought for Indian independence, we celebrate
Independence Day on August 15 every year.</font> </p>
</body>
</html>
QUES. WRITE A HTML CODE USING ALIGN TAGE IN IMAGE ?
<html>
<head>
<title> Aligning image </title>
</head>
<Body bgcolor= "yellow">
<b><font size=4 color= "blue"> grinning face </font></b>
<IMG src = "C:\Users\agarw\OneDrive\Pictures\grinning- face.png"
Align= "top"> --this image depict that the user is in a very good
temper and is laughing cheerfully. <br><hr>
<b><font size= 4 color= "blue">face with tears of joy </font></b>
<IMG src = "C:\Users\agarw\OneDrive\Pictures\joy with cry.jpg"
align= "middle">-- this emoji shows that the user is so happy that he
is shedding tears of joy <br> <hr>
<b> <font size= 4 color= "blue"> astonished face </font>
</b> <IMG src= "C:\Users\agarw\OneDrive\Pictures\astonish.jpg"
align="bottom"> --this emoji shows that the user is extremely
amazed and surprised
</body>
</html>
QUES. WRITE A HTML CODE USING HR TAG ?

<html>
<head>
<title>using horizontal tag </title>
</head>
<body bgcolor= "aqua">
<FONT size = 5>
<HR size= 20 width= "75%" align= "center" color= "red"><br>
<P align = "center"> Never judge each day by THE HARVEST YOU
REAP But by GOOD SEED YOU PLANT
</p> <br>
<HR size= 30 width= "75%" align= "center" color= "yellow">
<p align= "center"> Real Achievers are just Ordinary people but with
EXTRAORDINARY DETERMINATION </p><br>
<HR size= 40 width= "75%" align= "center" color= "green">
</font>
</body>
</html>
QUES . WRITE A HTML CODE USING TABLE TAG USING CELLSPACING ?

<html>

<head>

<title> creating a table </title>

</head>

<body topmargin = 50 leftmargin = 50 bgcolor = "Cyan">

<table border=3 bgcolor= "white" align= "center" cellspacing= 10 cellpading= 10 height = 300 width
= 400>

<tr>

<th>S.NO</th>

<th> Name </th>

<th> Grades </th>

</tr>

<tr>

<td>1</td>

<td>Bindu</td>

<td>A</td>

</tr>

<tr>

<td>2 </td>

<td> Yogesh</td>

<td> A+ </td>

</tr>

<tr>

<td>3</td>

<td> Sakshi </td>

<td>A</td>

</tr>

</table>

</body>

</html>
QUES. WRITE A HTML CODE USING TABLE TAG WITH BACKGROUNG IMAGE AND COLOR ?

<html>

<head>

<title> creating table with background image and color </title>

</head>

<body background="file:///C:/Users/agarw/OneDrive/Pictures/Screenshots/flower%202.jpg">

<table border = 2 border color = "red">

<tr bgcolor= "blue">

<th> S.NO </th>

<th> Name </th>

<th> Grades </th>

</tr>

<tr bgcolor= "pink">

<td> 1</td>

<td> mansa </td>

<td> A+</td>

</tr>

<tr bgcolor= "cyan">

<td> 2 </td>

<td>digraj </td>

<td> A</td>

</tr>

</table>

</body>

</html>
QUES. WRITE A HTML CODE USING TABLE TAG USING COLSPAN AND ROWSPAN

<html>

<head>

<title> spanning </title>

</head>

<body bgcolor= "aqua">

<table border= 5 align= "center">

<tr>

<th colspan= 5 align= "center"> class 10th </th>

</tr>

<tr>

<th rowspan =3> details </th>

<th> S.NO</th>

<th> Name </th>

<th>Grads </th>

<th> Roll no </th>

</tr>

<tr>

<td> 1 </td>

<td> manas </td>

<td> A+ </td>

<td> 4 </td>

</tr>

<tr>

<td> 2</td>

<td> dhiraj</td>

<td> A </td>

<td> 7 </td>

</tr>

</table>

</body></html>
QUES. WRITE A HTML CODE USING TABLE AND INSERT IMAGE IN TABLE?

<html>

<head>

<title> image in cell </title>

</head>

<body bgcolor="cyan">

<table border =5 bordercolor= "cyan" align= "center"


background="file:///C:/Users/agarw/OneDrive/Pictures/Screenshots/flower.jpg" cellspacing= 10
cellpadding= 5>

<caption> books price and name </caption>

<tr>

<th>S.NO</th>

<th> name</th>

<th> price </th>

</tr>

<tr>

<td>1 </td>

<td>the guide</td>

<td> $100 </td>

</tr>

<tr>

<td> 2 </td>

<td> midnight 's children </td>

<td>$ 150 </td>

</tr>

</table>

</body>

</html>
QUES. WRITE A HTML CODE USING TABLE BORDER COLOR ?

<html>

<head>

<title> using table border color </title>

</head>

<body>

<table border= 3 bordercolor= "red">

<caption> student table </caption>

<tr>

<th> Name </th>

<th> Subject </th>

<th> Marks </th>

</tr>

<tr>

<td> Alfiya </td>

<td> Science</td>

<td> 80 </td>

</tr>

<tr>

<td>Rohit</td>

<td> Maths</td>

<td> 38 </td>

</tr>

<tr>

<td>Pradeep</td>

<td>Computer </td>

<td>99 </td>

</tr>

</table>

</body></html>
QUES. WRITE A HTML CODE USING LINK TAG

<html>

<head>

<title> linking </title>

</head>

<body bgcolor = "lightgreen">

<ul>

<h1>different input device </h1>

<font face= "monotype corsiva" size =6>

<li><A href="linkingsection.html#keyboard"> keyboard</a>

<li><A href="linkingsection.html#scanningsystem"> scanning system</a>

<li><A href="linkingsection.html#OCR"> OCR</a>

<li><A href="linkingsection.html#OMR"> OMR</a>

</Font>

</ul>

</body>

</html>
QUES. WRITE A HTML CODE USING FORM TAG WITH ALL BUTTON ?

<html>

<head>

<title> creating form </title>

</head>

<body bgcolor= "cyan">

<form>

USER NAME <input type= "text" name= "username" value=""><br>

ADDRESS<input type = "text" name= "address" value=""><br>

GENDER <input type= "radio" id="male" name="gender" value="male">Male <br>

<input type= "radio" id="female" name="gender" value="female">Female<br>

QUALIFICATION<input type= "checkbox" id= "highschool" value="highschool" name= "qualification">


High school <br>

<input type= "checkbox" id= "graduate" value="graduate" name= "qualification"> graduate <br>

<input type= "checkbox" id= "postgraduate" value="postgraduate" name= "qualification">


postgraduate <br>

HOBBIES <select name="hobbies">

<option value="reading">reading </option>

<option value="sleeping"> sleeping </option>

<option value="others" >others </option>

</select>

</form>

</body>

</html>
2

<html>

<head>

<title>external style sheet </title>

</head>

<link rel= "stylesheet" href=".css" type="text/css">

</head></body>

<h1> A new child can breath and swallow at the same time for up to seven month </h1>

<h2>human shull is made up of 29 different bones. </h2>

</body>

</html>
QUES . WRITE A HTML CODE USING CSS TAG? 1

h1 {font-family: Arial; text -align: center;border:thick groove gray;}

h2 {font-family: arial; text -align: right;border:thick groove red;}

body{ color: white; background:limegreen;}


QUES . WRITE A HTML CODE USING BACKGROUND IMAGE ?

<html>

<head>

<title>setting background image </title>

</head>

<body background="file:///C:/Users/agarw/OneDrive/Pictures/image.2.jpg"

text ="cyan">

<h1> Technology </h1>

<p> Technology is the study of scientific knowledge in order to create tools and processes that may
be used to change the world by increasing efficiency in nearly every aspect of our lives. Technology
has made our lives easier, and all human beings have become entirely dependent on technology. It is
now difficult to imagine a step ahead without technology. So to get an idea about writing a
paragraph on technology, refer to the samples given in the article.

</p>

</body>

</html>
QUES. WRITE A HTML CODE USING SUBSCRIPT AND SUPERSCRIPT?

<html>

<head>

<title>chemical& mathematical equations</title>

</head>

<body background="file:///C:/Users/agarw/OneDrive/Pictures/maths2.jpg" text="red">

using CHEMICAL AND MATHEMATICAL FORMULAS <br>

<b><u> chemical formulae</u></b><br>

CO<sub>2 </sub><br>

H<sub>2</sub>0<br>

<b><U> displaying mathematical formulae </u></b><br>

(A+B)<sup>2</sup>=a <sup>2</sup>+b <sup>2</sup>+2AB <BR>

(A-B) <SUP>2</SUP>=A <SUP>2 </SUP>+B<sup>2</sup>-2AB<br><br>

<p> my name is dharna agarwal

</p>

</body>

</html>
QUES. WRITE A HTML CODE USING HORIZONTAL SPACE AND VERTICAL SPACE ?

<html>

<head>

<title> space around a image </title>

</head>

<body bgcolor="dodgerblue" text="green" >

<p> <font size=3> Creativity is a valuable workplace skill because it can be a useful tool for
developing new ideas, increasing efficiency and

devising solutions to complex problems.

While you may have natural creativity skills in certain forms, it is a skill that can be learned and
developed over time.

</p>

<IMG src="file:///C:/Users/agarw/OneDrive/Pictures/Screenshots/Screenshot%202023-11-
06%20213611.png "height=150 width=150 hspace=30 vspace=30 align="right">

<IMG src="file:///C:/Users/agarw/OneDrive/Pictures/Screenshots/Screenshot%202023-11-
06%20213611.png" height=150 width=150 hspace=30 vspace=30 align="left">

<p>MY NAME IS DHARNA AGARWAL. I STDUIED IN CLASS 10.

</p>

</font>

</body>

</html>

You might also like