HTML WebDev Lesson Notes
HTML WebDev Lesson Notes
Notes
1. Introduction to HTML
HTML (HyperText Markup Language) is the standard language for creating webpages. It
structures content like text, images, links, forms, and multimedia.
2. Iframes
An iframe allows you to embed another webpage inside your current page.
Example syntax:
<iframe src="https://example.com" width="600" height="400" title="Example"></iframe>
Attribute Description
3. Tables in HTML
Tables are used to display tabular data.
Example:
<table border="1">
<tr>
<th>Name</th>
<th>Age</th>
</tr>
<tr>
<td>Alice</td>
<td>25</td>
</tr>
</table>
Tag Use
5. Buttons in HTML
Buttons trigger actions like form submission or JavaScript events.
Example:
<button type="button" onclick="alert('Hello!')">Click Me</button>
Type Function
Example:
<form action="/submit" method="post" target="_blank" autocomplete="on" novalidate>
<input type="text" name="username" required>
<input type="submit" value="Submit">
</form>
Attribute Purpose
7. Introduction to CSS
CSS (Cascading Style Sheets) styles your HTML content.
CSS Syntax:
selector {
property: value;
}
Example:
body {
background-color: lightblue;
font-family: Arial;
}
1. Inline CSS
<h1 style="color:red;">Title</h1>
2. Internal CSS
<style>
p { color: green; }
</style>
3. External CSS
<link rel="stylesheet" href="style.css">
8. Summary Table
Feature Key Tags / Attributes / Styles
YouTube <iframe
src="https://www.youtube.com/embed/...">
CSS
<table border="1">
<tr>
<th>Name</th>
<th>Age</th>
<th>Country</th>
</tr>
<tr>
<td>Alice</td>
<td>25</td>
<td>Uganda</td>
</tr>
<tr>
<td>Bob</td>
<td>30</td>
<td>Kenya</td>
</tr>
</table>