HTML
HTML
Introduction to HTML
Content:
1. Introduction to HTML
2. History of HTML
3. HTML Release Year
4. What is HTML?
5. HTML Document Structure
6. Software required for HTML
7. Basic Terminology
8. Steps to write HTML Code
9. Basic HTML Tags
10. Types of Tags in HTML
11. Formatting Tags
12. Table Tag
13. Image Tag
Learning Objective:
1. Understanding the concept of HTML and its role in creating web Pages.
1. Introduction to HTML:
HTML (HyperText Markup Language) is the standard markup language for creating
web pages and web applications. It is a combination of Hypertext and Markup
language. The Hypertext defines the link between web pages, and Markup defines
the text document within tags to structure the web pages.
2. HISTORY OF HTML:
1 Introduction to HTML
through different versions to become the backbone of the web, allowing people
worldwide to build and view websites with text, images, and multimedia content.
4. What is HTML?
● HTML stands for Hyper Text Markup Language.
● HTML is the standard markup language for creating Web pages.
● HTML describes the structure of a Web page.
● HTML consists of a series of elements.
● HTML elements tell the browser how to display the content.
5. HTML DOCUMENT STRUCTURE:
● The <!DOCTYPE html> declaration defines that this document is an HTML5
document
● The <html> element is the root element of an HTML page
● The <head> element contains meta information about the HTML page
● The <title> element specifies a title for the HTML page (which is shown in the
browser's title bar or in the page's tab)
● The <body> element defines the document's body, and is a container for all
the visible contents, such as headings, paragraphs, images, hyperlinks,
tables, lists, etc.
2 Introduction to HTML
6. Software required to write and execute HTML Code:
● Text Editor (Notepad)/ WYSIWYG( Ex. Vs Code)
● Web Browser (Microsoft Edge, Google Chrome, Mozilla Firefox etc)
7. Basic Terminologies:
● Text Editor: A text editor is a software application that allows you to create
and edit plain text files. For HTML, it enables you to write the markup code
that structures web pages.
● Web Browser:A web browser is a software application that allows users to
access, retrieve, and view content on the World Wide Web.
● Web Page: A web page is a document that is displayed in a web browser and
is part of the World Wide Web.
● Home Page: A home page is the main or introductory page of a website.
8. Basic Terminologies HTML:
1. Open Notepad:
● Press Windows + R and type notepad, then press Enter.
● Alternatively, search for Notepad from the Start menu.
2. Write Your HTML Code:
3 Introduction to HTML
3. Save the HTML File:
● Click File → Save As.
● In the Save as type, select All Files.
● Type the file name with the extension .html (e.g., index.html).
● Choose a location to save the file (like the Desktop or Documents).
● Click Save.
4. Navigate(Go) to the folder where you have saved the file.
5. You can see the browser icon on your file.
6. Double click on it and your file gets opened on the Browser.
Tag Use
4 Introduction to HTML
In HTML, Tags are classified into two main categories: container tags and empty
tags.
Container Tags: Container tags are elements that can enclose content. They have
an opening tag and a closing tag.
Empty Tags: Empty tags do not have any content and do not require a closing tag.
They are self-contained.
1. Bold:
2. Italic:
3. Underline:
Output:
This text is bold.
5 Introduction to HTML
● <th>: Defines a header cell in a table, typically displayed in bold and
centered.
● <td>: Defines a standard data cell in a table.
Attributes Use
Cellpadding Defines the space between the cell content and its border
(padding).
Example: <table cellpadding="10">
<!Doctype html>
<html>
<head> <title> Fruits Name along with their colors </title> </head>
<body>
</table>
6 Introduction to HTML
</body>
</html>
Attributes:
Basic Syntax:
<img src="image-url" alt="description of image">
Here, src: Specifies the path to the image file, and alt: Provides alternative text for
the image if it cannot be displayed.
Example:
7 Introduction to HTML