Html full course || html for beginners || html course || what is html, how to create a website using html

 Lesson 1: Introduction to HTML


HTML stands for Hypertext Markup Language. It is a markup language used to create web pages. An HTML file contains text, images, links, and other elements that are displayed on a web page.



HTML code is written using tags, which are enclosed in angle brackets like this: <tagname>. Tags are used to define different elements on a web page, such as headings, paragraphs, images, links, and more.


HTML documents are created using a text editor, such as Notepad, and saved with a .html file extension. To view an HTML document, you can open it in a web browser like Google Chrome, Firefox, or Safari.


Lesson 2: Basic HTML Document Structure


An HTML document consists of two main parts: the head and the body. The head contains information about the document, such as the document title and links to external stylesheets and scripts. The body contains the content that is displayed on the web page, such as text, images, and other elements.


Here is an example of a basic HTML document:

The <!DOCTYPE html> declaration at the beginning of the document tells the web browser that the document is an HTML5 document. The <html> tag marks the beginning of the HTML document, and the </html> tag marks the end.

The <head> tag contains information about the document, such as the document title, which is defined using the <title> tag. The <body> tag contains the content that is displayed on the web page.

In this example, the <h1> tag defines a heading and the <p> tag defines a paragraph of text.

Lesson 3: Basic HTML Tags

HTML tags are used to define different elements on a web page. Here are some of the most commonly used HTML tags:

1.(<html>: Defines the beginning and end of an HTML document.) 

2.(<head>: Defines the head section of an HTML document.) 

3.(<title>: Defines the document title.) 

4.(<body>: Defines the body section of an HTML document.) 

5.(<h1>, <h2>, <h3>, <h4>, <h5>, <h6>: Defines headings of different sizes.) 

(a) <p>: Defines a paragraph of text.
<a>: Defines a hyperlink.

(b) <img>: Defines an image.

(c) <ul>, <ol>, <li>: Defines unordered and ordered lists and list items.

(d) <div>, <span>: Defines containers for other HTML elements.

Here is an example of using some of these tags in an HTML document:


Previous Post Next Post