The language used to develop web pages is called HyperText Markup Language (HTML). HTML is the language interpreted by a Browser. Web pages are also called HTML document. HTML is set of special coded that can be embedded in text to add formatting and linking information. HTML is specified as TAGS is a HTML document.
HTML is the standard markup language for creating Web pages.
<!DOCTYPE html>declaration defines this document to be HTML5
<html>element is the root element of an HTML page
<head>element contains meta information about the document
<title>element specifies a title for the document
<body>element contains the visible page content
<h1>element defines a large heading
<p>element defines a paragraph
Tags are instruction that are embedded directly into the text of the document. An HTML tag is a signal to a browser that it should do something other than just throw text up on the screen. By convention all HTML tags begin with an open angle bracket (<) and end with a close angle brackets.
There are two types of html tags.
Paired Tags: In Paired Tags, the first tag ( <p> ) is often called the opening tag and second tage ( </p> ) is called the closing tag
Example: <p>This the dummy text.</p>
Singular Tags: This tag doesn’t have a companion tag.
Tip: The start tag is also called the opening tag, and the end tag the closing tag.
To access information stored in the form of web pages, user must connect to a Web Server. Once connected, an interface that displays the contents of the web pages is required.
Computer that offer the facility to read information stored in web pages are called web client’s.
Web Clients run special software called a ‘Browser’ that allow them to:
The browser does not display the HTML tags, but uses them to determine how to display the document:
Below is a visualization of an HTML page structure:
Note: Only the content inside thesection (the white area above) is displayed in a browser.
The declaration is used to inform a website visitor's browser that the document being rendered is an HTML document. While not actually an HTML element itself, every HTML document should being with a DOCTYPE declaration to be compliant with HTML standards.
The <!DOCTYPE> declaration for HTML5 is: <!DOCTYPE html>