Sep 28, 2024
<h1>
for headers<p>
for paragraphs<a>
for hyperlinkscode.visualstudio.com
.index.html
as the homepage.<!DOCTYPE html>
<html>
<head>
<title>My First Website</title>
<body>
<h1>
to <h6>
for headers.<p>
.
<br>
for line breaks and <hr>
for horizontal lines.<!-- comment here -->
for notes.lyrics.html
with song details.<a href="URL">Link Text</a>
for hyperlinks.target="_blank"
for new tabs.title
for tooltips.mailto:
in href
for email links.<img src="image.png" alt="description">
height
and width
for dimensions.alt
for accessibility.<audio controls><source src="audio.mp3" type="audio/mpeg"></audio>
<video controls><source src="video.mp4" type="video/mp4"></video>
<link rel="icon" href="favicon.ico" type="image/x-icon">
in the head.<b>
for bold<i>
for italic<u>
for underline<mark>
for highlighted text.<span>
and <div>
Tags<span>
= inline elements.<div>
= block-level elements.<ul><li>Item</li></ul>
<ol><li>Item</li></ol>
<dl><dt>Term</dt><dd>Description</dd></dl>
<table>
, <tr>
, <th>
, and <td>
.<button>Click Me</button>
<form action="url" method="post">
<header>
, <nav>
, <main>
, <footer>
, <section>
, <article>
, and <aside>
for structure.<style>
tags in the head.color
, background-color
, margin
).box-sizing: border-box
.display: flex
property.flex-direction
justify-content
align-items
@keyframes
to handle transitions and effects.