What is HTML?
- HTML stands for Hyper Text Markup Language
- 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
- HTML elements are represented by tags
- HTML tags such as "heading", "paragraph", "table", and so on
- Browsers do not display the HTML tags but use them to SHOW OUTPUT on website page
HTML COURCE Class: 1
Example:
Web Browsers:
The view of a web browser (Chrome, Edge, Firefox, Safari) is to read HTML documents and display them.
The browser does not display the HTML code, but uses them to determine how to display the document:
A Simple HTML Document
Example Explained:
-
<!DOCTYPE html> declaration defines this document to be HTML5
- <html>element is the root element of an HTML page
The
<head>
the element contains meta-information about the document- The
<title>
element specifies a title for the document - The
<body>
element contains the visible page content - The
<h1>
element defines a large heading - The
<p>
the element defines a paragraph
The <!DOCTYPE html> Declaration:
The <!DOCTYPE html> declaration represents the document type and helps browsers to display web pages correctly.
It must only appear once,at the top of the page (before any HTML tags).
It must only appear once,at the top of the page (before any HTML tags).
<!DOCTYPE html>
HTML Tags
HTML tags are element names enclosed by angle brackets:
<tagname>any text..</tagname>
<tagname>any text..</tagname>
- HTML tags usually come in pairs like
<p>
and</p>
- The first tag in a pair is the start tag, the second tag is the end tag
- The end tag is written like the start tag, but with a forward slash / inserted before the tag name,
HTML Page Structure:
Below is a visualization of an HTML page structure:
<!DOCTYPE html>
<html>
<head>
<title>Page title</title>
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
</body>
</html>
Below is a visualization of an HTML page structure:
<!DOCTYPE html>
<head>
<title>Page title</title>
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
</body>
</html>
What is HTML?
Answer Your Question in Comment Section!
12 Comments
Comment you Answer Here
ReplyDeleteMarkup language
Deletevery good
DeleteMarkup
ReplyDeleteright answer!
DeleteIt's a great dear
ReplyDeleteGood
DeleteIt's a great
ReplyDeleteright answer!
DeleteMarkup language
ReplyDeleteright answer!
Deletegood !
ReplyDeletehow I can help you?