Aug 11, 2024
index.html
(change extension to .html).index.html
file in a web browser (e.g., Microsoft Edge, Google Chrome).<tagname>
</tagname>
<h1>Header</h1>
defines a header element.<h1>
: Main title<h2>
: Subheader<p>
tag for paragraphs:
<p>This is a paragraph.</p>
<em>
or <i>
for emphasis (italics).<strong>
or <b>
for strong emphasis (bold).<u>
for underline.<section>
tag to group related content:
<ul>
and <li>
for bullet points.<ol>
and <li>
for numbered items.<br>
for line breaks (self-closing tag).<!-- comment here -->
.recipe.html
.<a>
tag.<img>
tag to add images:
<img src="image.png" width="400" height="122" alt="Description">
.alt
attribute for accessibility.<audio>
and <video>
tags for media content.<table>
, <tr>
, <th>
, and <td>
for displaying tabular data.<form>
to create interactive forms for user input.<!DOCTYPE html>
at the top.<head>
(metadata) and <body>
(visible content).
<title>
and <meta>
description.