HTML Assignment[1]
HTML Assignment[1]
of HTML .
By group 9
IT (D)
Batch 2
Team Members
HTML stands for HyperText Markup Language. It's the HTML uses tags to define elements like headings,
core language used to structure and present content paragraphs, images, and links. These tags tell browsers
on the web. It defines the basic building blocks of web how to display the content.
pages.
The Foundation: Basic HTML Structure
DOCTYPE Declaration
1 Tells the browser which HTML version to use.
HTML Tag
2
Encloses the entire document.
Head Section
3
Contains metadata about the document.
Body Section
4
Holds the visible content of the webpage.
Html basic code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<script src="script.js"></script>
</body>
</html>
Heading Tags: Setting the Tone
H1
1
The most important heading, usually used for the main title.
H2
2
A secondary heading used for section titles.
H3
3
Tertiary heading for sub-sections.
H4-H6
4
Smaller headings for further division of content.
<h1>Main Title of the Document</h1>
<p>This is a paragraph under the main title.</p>
<h2>Subheading of a Section</h2>
<p>This is a paragraph under the subheading.</p>
<h3>Sub-subheading of a Subsection</h3>
<p>This is a paragraph under the sub-subheading.</p>
<h4>Sub-sub-subheading</h4>
<p>This is a paragraph under the sub-sub-
subheading.</p>
<h5>Lesser Subheading</h5>
<p>This is a paragraph under the lesser
subheading.</p>
<h6>Least Important Heading</h6>
<p>This is a paragraph under the least
important.</p>
Paragraphs and Text
Formatting
orientation=horizontal twosided=true
<h2>Example of an Image Link</h2>
<a href="https://www.example.com" target="_blank" title="Go to
Example">
<img src="./image.png" alt="Description of the image" width="300"
height="200">
</a>
Forms: Gathering User Input
1 2
Form (form) Input (input)
Creates a form for collecting user Creates various input fields like
data. text boxes, radio buttons, and
checkboxes.
3 4
Select (select) Textarea (textarea)
Creates a dropdown menu for Creates a multiline text area for
selecting options. user input.
<div class="form-container">
<h2>Contact Us</h2>
<form action="/submit-form" method="post">
<div class="form-group">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required>
</div>
<div class="form-group">
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
</div>
<div class="form-group">
<label for="message">Message:</label>
<textarea id="message" name="message" rows="4"
required></textarea>
</div>
<button type="submit">Submit</button>
</form>
</div>
Thank You !!!