HTML Basics
HTML Basics
( H y p e r Te x t M a r k u p L a n g u a g e )
INTRODUCTION
HTML is a markup language that defines the structure of a document or webpage
and provide a standard on how it should be rendered by the web browsers.
Originally, HTML was developed with the intent of defining the structure of
documents like headings, paragraphs, lists, and so forth to facilitate the sharing of
scientific information between researchers. Now, HTML is being widely used to
format web pages with the help of different tags available in HTML language.
I M P O R TA N C E O F H T M L
Helps in creating visually appealing websites.
<html>
<head>
<meta charset="UTF-8">
<title>My Webpage</title>
</head>
<body>
<h1>Welcome to My Webpage</h1>
</body>
</html>
H T M L TA G S
HTML tags are essential building blocks for creating web pages. They define the
structure, content, and behavior of elements within an HTML document.
src
alt
style
script
HTML COMMENTS
HTML comments are lines within your HTML code that are not executed or
displayed by the browser. They serve various purposes, such as providing instructions,
explanations, or temporarily disabling certain sections of your HTML code.
The exclamation mark (!) is included at the start of the tag but not at the end.
HTML SEMANTIC ELEMENTS
HTML semantics refer to the practice of using HTML markup to convey the
meaning of information in web pages and applications, rather than just defining their
presentation or appearance. By using semantic HTML, you enhance both human
understanding and machine interpretation of your content.
Semantic elements are HTML tags that clearly describe their meaning to both browsers
and developers.
eg: form, table, article, section, header, footer, nav, main ….etc
HTML5
HTML5 is the fifth and final major version of HTML which was developed to
enhance the capabilities of web pages and applications.
Multimedia support
Improved forms
Responsive design
HTML5 enables developers to create richer, more interactive, and accessible web
experiences. It promotes consistency across different devices and browsers.
T H A N K YO U