Lab Performance 1
HTML Basics Demo (Inline CSS)
A compact reference of common HTML elements and attributes.
Headings h1–h6
This is an H1 heading
This is an H2 heading
This is an H3 heading
This is an H4 heading
This is an H5 heading
This is an H6 heading
Text and Formatting
This is a paragraph demonstrating strong, emphasis, bold, italic, underline, mark, small, deleted, inserted, H2O and E = mc2.
Inline code: console.log('Hello'), keyboard: Ctrl + S
“Simplicity is the soul of efficiency.” — Austin Freeman
function greet(name) {
return `Hello, ${name}!`;
}
console.log(greet('World'));
Abbreviation: HTML. Time: .
Box Model: Margin and Padding
Parent box (padding: 16px, dashed border)
Child box (margin: 12px, padding: 12px)
Tip: Margin adds space outside the border; padding adds space inside.
Lists
Unordered
- Item A
- Item B
- Nested 1
- Nested 2
- Item C
Ordered
- First
- Second
- Third
Description
- HTML
- The standard markup language for web pages.
- CSS
- Used to style and layout web pages.
Links, Images, and Media
Visit W3Schools • Email link • Telephone link • Back to top
Tables
| # | Name | Price | Stock |
|---|---|---|---|
| 1 | Keyboard | $29.99 | In stock |
| 2 | Mouse | $15.00 | In stock |
| 3 | Webcam | $49.00 | Limited |
| 4 | Headset (bundle) | Preorder | |
| 5 | Monitor 24" | $149.00 | In stock |
| Monitor 27" | $219.00 | In stock | |
| Prices are in USD. Availability may vary. | |||
Forms
Semantic Elements
Article Title
by
John DoeThis is a short article using semantic elements: header, section, and footer.
Click to expand details
This content is hidden by default and revealed using the details/summary elements.
Miscellaneous
Horizontal rule separates content:
Entities: © ® € ¥ £ ♥ 🚀