HTML Project
HTML Project
Ans: To create a HTML document, first open the Notepad and type the
following codes:
<html>
<head>
</head>
<h1>This is an H1 heading</h1>
<h2>This is an H2 heading</h2>
<h3>This is an H3 heading</h3>
<h4>This is an H4 heading</h4>
<h5>This is an H5 heading</h5>
<h6>This is an H6 heading</h6>
<p>This is a paragraph of text. It contains multiple sentences that form a cohesive block of
text.</p>
<p>This is the first line.<br>This is the second line after a line break.</p>
<hr>
<pre>
line breaks.
</pre>
</body>
</html>
I. Ordered List
IV. Image
Ans: Here are the HTML codes for the following documents:-
<html>
<head>
</head>
<body>
<li>Milk</li>
<li>Bread</li>
<li>Eggs</li>
<li>Fruits</li>
<h2>Stationery (Unordered):</h2>
<li>Pens</li>
<li>Notebooks</li>
<li>Highlighters (optional)</li>
<h2>Weekend Activities:</h2>
<<li>Go hiking</li>
<li>Visit a museum
<li>Art museum</li>
<li>Science museum</li>
</ul>
</li>
</body>
</html>
Save the code as .html extension on your computer and open with any browser.
Ans: Open the Notepad in the computer, to create the following HTML
document:-
<head>
</head>
<body>
<h1>Welcome to My Website!</h1>
<p>This website provides a brief introduction to HTML. To learn more about
HTML elements and attributes, you can visit the official <a
href="https://www.w3schools.com/html/">W3Schools HTML
Tutorial</a>.</p>
<p>Feel free to explore other sections of this website using the navigation
menu below.</p>
<hr>
<ul>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/HTML">MDN
Web Docs - HTML</a> (external link)</li>
</ul>
</body>
</html>
Ans: To create a HTML table, open the MS Word and type the following codes-
This code defines a simple HTML document with a title "Student
Information". Inside the body, it creates a heading "Student Information"
followed by a table element.
Header Row (th): The first row defines the table headers using the <th>
tag. It includes "Roll No.", "Student's Name", and "Grade".
Data Rows (td): Each subsequent row (using <tr>) represents a student.
Within each row, individual data points (like roll number, name, and
grade) are specified using the <td> tag.
Ans: First open the MS Word to create an HTML file that contains a table
structured similar to the given table. The table will have cells arranged to match
the layout, with a placeholder for an image.
This HTML creates a table with three rows. The first two cells in each
row span two columns, and the last cell spans four columns and three rows,
providing space for an image. Adjust the style and dimensions as needed. Save
this code in a file with a `.html` extension, and open it in a web browser to view
the table.
6. Create a form using HTML which has the following types of controls:
I. Text Box
Ans: To create a form using HTML, we have to open the MS Word to write the
following code-
This code creates a form with:
Frame 1
Frame 2
Frame1
Frame2 Frame3