0% found this document useful (0 votes)
5 views2 pages

HTML Basic Notes

HTML (HyperText Markup Language) is the standard language for creating web pages, describing their structure with markup. An HTML document includes elements such as <html>, <head>, <body>, and various tags for content like headings, paragraphs, and links. Best practices include closing tags properly, using semantic HTML, and maintaining clean code.

Uploaded by

mahatokhushi270
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)
5 views2 pages

HTML Basic Notes

HTML (HyperText Markup Language) is the standard language for creating web pages, describing their structure with markup. An HTML document includes elements such as <html>, <head>, <body>, and various tags for content like headings, paragraphs, and links. Best practices include closing tags properly, using semantic HTML, and maintaining clean code.

Uploaded by

mahatokhushi270
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/ 2

HTML Basic Notes

What is HTML?

- HTML stands for HyperText Markup Language.

- It is the standard language for creating web pages and web applications.

- HTML describes the structure of a web page using markup.

Structure of an HTML Document:

<!DOCTYPE html>

<html>

<head>

<title>Page Title</title>

</head>

<body>

<h1>This is a Heading</h1>

<p>This is a paragraph.</p>

</body>

</html>

Common HTML Tags:

Tag | Use

<html> | Root element of an HTML page

<head> | Metadata, title, links

<title> | Title shown on browser tab

<body> | Main content of the page

<h1> to <h6> | Headings (largest to smallest)


<p> | Paragraph

<a> | Anchor (hyperlink)

<img> | Image

<ul> / <ol> / <li> | Lists (unordered, ordered, list item)

<div> | Division/container

<span> | Inline container

<br> | Line break

<hr> | Horizontal rule

Attributes in HTML:

- Attributes provide additional information about elements.

- Written in the start tag.

Example:

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

<img src="image.jpg" alt="My Image" width="300">

HTML & CSS:

- HTML is for structure.

- CSS (Cascading Style Sheets) is for styling the HTML.

Best Practices:

- Always close tags properly.

- Use semantic HTML (e.g., <header>, <footer>, <main>, <section>, etc.)

- Keep code clean and indented.

You might also like