0% found this document useful (0 votes)
7 views

HTML Notes

Uploaded by

devilmk9879
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

HTML Notes

Uploaded by

devilmk9879
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

HTML Notes

1. Basic Structure

<!DOCTYPE html>

<html>

<head>

<title>Page Title</title>

</head>

<body>

<!-- Content goes here -->

</body>

</html>

2. Common Tags

- Headings: <h1> to <h6>

- Paragraph: <p>This is a paragraph.</p>

- Link: <a href="https://example.com">Visit</a>

- Image: <img src="image.jpg" alt="description">

- List:

- Unordered: <ul><li>Item</li></ul>

- Ordered: <ol><li>Item</li></ol>

- Line Break: <br> and Horizontal Rule: <hr>

3. Formatting Tags

<b> / <strong> - Bold

<i> / <em> - Italic


HTML Notes

<u> - Underline

<mark> - Highlight

<small> - Smaller

<del> - Deleted

<ins> - Inserted

4. Tables

<table>

<tr>

<th>Heading</th>

<th>Heading</th>

</tr>

<tr>

<td>Data</td>

<td>Data</td>

</tr>

</table>

5. Forms

<form action="submit.php" method="post">

<input type="text" name="username">

<input type="password" name="password">

<input type="submit" value="Submit">

</form>
HTML Notes

6. Semantic Elements

<header>, <footer>, <nav>, <section>, <article>, <aside>, <main>

7. Attributes

Common attributes: id, class, style, title, href, src, alt, type, name, value, etc.

8. HTML Entities

&lt; - <

&gt; - >

&amp; - &

&nbsp; - space

&quot; - "

&apos; -

You might also like