HTML Introduction

What is html?

HTML stands for HyperText Markup Language. It is a markup language used for creating web pages and other types of documents that are displayed on the World Wide Web (WWW). HTML is used to structure content on the web, including text, images, and multimedia, by defining elements and their attributes.

HTML uses a system of tags and attributes to define the structure and appearance of a web page. Tags are used to indicate the beginning and end of an element, and attributes provide additional information about the element, such as its size, color, or alignment.

HTML is essential to web development because it forms the foundation of all web pages. It is often used in conjunction with other web development languages like CSS (Cascading Style Sheets) and JavaScript to create dynamic and interactive web pages.

 

Declaration define document in html

In HTML, the declaration is used to define the version of HTML being used in a web page, as well as the character encoding of the document. It is typically the first line of code in an HTML document and appears at the very beginning of the page’s source code, before the <html> tag.

The declaration is written using the following syntax:

<!DOCTYPE html>

This declaration tells the web browser that the document is written in HTML5, which is the current standard version of HTML. The DOCTYPE keyword stands for “document type” and is followed by html , which specifies the version of HTML being used.

In addition to the DOCTYPE declaration, the character encoding of the document can also be specified using the meta tag in the head section of the HTML document. For example:

<head>
  <meta charset="UTF-8">
  <title>My Web Page</title>
</head>

This meta tag specifies that the character encoding of the document is UTF-8, which is a widely used character encoding for displaying international characters on the web.

Scroll to Top