Hi, buddies!
I hope you checked my video about What is HTML? and you are here to get the reading part and the reference area. If not, here is the link to my video for you.
Let's get into the content.
What is HTML?
HTML is the standard markup language for creating Web pages. HTML is a short form of HyperText Markup Language. It describes the structure of a web page. It consists of a series of an element. HTML elements tell the browser how to display the content and finally it is pieces of content like this is a heading, this is a paragraph and etc...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>A simple HTML Document</title> | |
</head> | |
<body> | |
<h1>Hello world!</h1> | |
<h2>I am learnig HTML!</h2> | |
<p>Learning HTML with mukun..!</p> | |
</body> | |
</html> |
Example explanation:
- 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 <meta> tag defines metadata about an HTML document. Metadata is data (information) about data.
- 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.
- The <h1> element defines a large heading
- The <h2> element defines a second level of heading
- The <p> element defines a paragraph
Comments
Post a Comment