Jul 22, 2024
index.html
on your desktop.<b>...</b>
for bold text).<!DOCTYPE html>
: Declares the document type and version (HTML5).
<html>
: Main HTML tag encasing all other elements.<head>
: Contains metadata, CSS, and JavaScript references.<body>
: Contains all the main content of the webpage.<meta charset="UTF-8">
: Sets character encoding to UTF-8.<meta name="viewport" content="width=device-width, initial-scale=1">
: Ensures responsive design.<title>...</title>
: Sets the title of the webpage (visible in the browser tab).<h1>
(largest) to <h6>
(smallest).<p>
tags for blocks of text.<br>
for line breaks (void element, no closing required).<b>
: Bold text<i>
: Italic text<u>
: Underlined text<em>
: Emphasized text (usually italic)<strong>
: Strong text (usually bold)<hr>
for a horizontal line.<a href="...">...</a>
: Anchor tag for links.href
): URL of the destination.target="_blank"
: Opens link in a new tab.<img src="..." alt="..." />
: Image tag.
src
): URL or local path to the image.alt
): Descriptive text for the image.width
, height
, and border
attributes.<ul>
with items <li>
.
<ol>
with items <li>
.
<table>
: Table tag.<tr>
: Table row.<th>
: Table header cell.<td>
: Table data cell.border
: Width of the table border.cellpadding
: Space inside each cell.cellspacing
: Space between cells.colspan
: Span a cell across multiple columns.rowspan
: Span a cell across multiple rows.