Roles of an is Mgt (1)
Roles of an is Mgt (1)
WEEK 2
Objectives:
Materials Needed:
Computer with a text editor (e.g., Notepad++, VS Code) and a web browser.
Outline:
Introduction to HTML
Definition and Purpose
What is HTML?
Its the standard language for creating web pages. It provides the structure
and content of a webpage.
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<p>This is a paragraph.</p>
</body>
</html>
HTML Page Structure
<u>Undelined Text</u>
HTML Comments
<!--This is a comment-->
Lists
Ordered lists (<ol>) and unordered lists (<ul>).
<ol>
<li>First item</li>
<li>Second item</li>
</ol>
<ul>
<li>First item</li>
<li>Second item</li>
</ul>
HTML Forms (used to collect user input. The user input is most often sent to a server
for processing).
Example of Form:
Form Elements
<form> tag.
Input types: text, password, checkbox, radio, and submit.
Form Attributes
action and method attributes.
Getting Started with the Form
<!DOCTYPE html>
<html>
<head>
<title>my Web</title>
</head>
<body>
</form>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>my Web</title>
</head>
<body>
<h2>HTML FORMS</h2>
</form>
</body>
</html>
HTML5 Features
New Semantic Elements
HTML5 introduced several semantic elements that give meaning to the structure
of the web content. They are designed to make HTML more readable, both for
developers and browsers or assistant technologies (such as screen readers). They
help define different parts of a webpage, allowing search engines and other tools
to better understand and categorize the content.
<header>Header content</header>
<nav>Navigation links</nav>
<article>Article content</article>
<section>Section content</section>
<footer>Footer content</footer>
<header>
Snippet
<header>
<h1>Welcome to My Website</h1>
<nav>
<a href="#home">Home</a>
<a href="#about">About</a>
<a href="#contact">Contact</a>
</nav>
</header>
<nav>
Snippet
<nav>
<ul>
<li><a href="#home">Home</a></li>
<li><a
href="#services">Services</a></li>
<li><a
href="#contact">Contact</a></li>
</ul>
</nav>
<article>
Snippet
<article>
</article>
<section>
Snippet
<section>
<h2>About Us</h2>
</section>
<footer>
Snippet
<footer>
</footer>
<aside>
Represents content that is indirectly related to the main
content. This is often used for sidebars or additional
informattion like quotes or links.
Snippet
<aside>
<h3>More Articles</h3>
<ul>
<li><a href="#article1">Javascript vs
Python</a></li>
</ul>
</aside>
<main>
Snippet
<main>
<h1>Welcome to My Blog</h1>
<p>This is where the main content of the
blog is displayed.</p>
</main>
Snippet
<figure>
<figcaption>Figure 1: A beautiful
sunset.</figcaption>
</figure>
Before HTML5, many web developers used generic elements like <div> and
<span> to structure their content. While these elements are still valid, they don't
provide any semantic meaning.
Non-Semantic Snippet
<header>Header content</header>
<nav>Navigation links</nav>
<article>Main article</article>
Multimedia Elements
<audio> and <video> tags.
Snippet Example:
<h2>Multimedia Elements</h2>
<audio controls>
</audio>
<br><br>
</video>
HTML5 Forms
New input types: email, date, number, etc.
Validation attributes.
<input type="email" name="email" placeholder="Enter your
email">
Summary
HTML document structure, basic tags, links, images, forms, and HTML5 features.
Materials Needed:
Computer with a text editor (e.g., Notepad++, VS Code) and a web browser.
Assignment 1:
● Task: Create a personal web page that demonstrates your understanding of basic HTML
structure, including the use of semantic elements. Your page should include the following
components:
○ A heading with your full name. (Hint: <h1>Your Name</h1>)
○ A paragraph introducing yourself. Mention your interests, hobbies, or any other
relevant information. (Hint: <p>About yourself.</p>)
○ An image (e.g., a picture of your favorite place). (Hint: <img
src="yourimage.jpg" alt="Your Image">)
○ A link to your favorite website, introducing yourself. Mention your interests,
hobbies, or any other relevant information. (Hint: <a
href="https://www.cavendish.ac.ug">Link to college site </a>)
○ A Simple Contact Form: Create a basic contact form using the <form> element.
This form should collect a visitor’s first name, last name, and email address.
Ensure each field has a descriptive label. Use the required property (Hint: <input
type="text" id="lastname" name="lastname" required>)
○ Ensure your web page follows the principles of semantic HTML, using
appropriate elements for sections, such as <header>, <footer>,
<section>, and <main>.
Submission Guidelines: