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

HTML Code Notes English Codewithankit

The document provides an explanation of basic HTML code elements, including their functions and usage. It covers essential tags such as <html>, <head>, <body>, and formatting options like <font> and <marquee>. Additionally, it includes a summary table for quick reference of the HTML tags discussed.
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)
3 views2 pages

HTML Code Notes English Codewithankit

The document provides an explanation of basic HTML code elements, including their functions and usage. It covers essential tags such as <html>, <head>, <body>, and formatting options like <font> and <marquee>. Additionally, it includes a summary table for quick reference of the HTML tags discussed.
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 Code Explanation - CODE WITH ANKIT

1. <!DOCTYPE html>

Declares the document as HTML5. Helps the browser understand HTML syntax.

2. <html>...</html>

Wraps the entire HTML content. It marks the beginning and end of an HTML document.

3. <head>...</head>

Contains metadata like the title, CSS links, and scripts. Not shown on the page.

4. <title>My First HTML Program</title>

Sets the name shown in the browser tab.

5. <body bgcolor="pink">

Contains everything visible on the page. 'bgcolor' sets the background color.

6. <center>...</center>

Aligns the content to the center of the page.

7. <font color="..." face="..." size="...">

Changes the color, font style, and size of the text.

8. <marquee>...</marquee>

Displays scrolling text. Used for announcements.

9. <hr>

Draws a horizontal line to separate sections.

10. Headings, Paragraph, Formatting tags

<h2>, <h3>: Define section titles


<p>: Defines paragraphs
<b>, <i>, <u>: Bold, Italic, Underline
<sup>: For superscript like 12th.

11. <a href="...">

Creates a hyperlink to another site or email.

12. Summary Table

Quick recap of all basic HTML tags used in the code.

You might also like