HTML Introduction
HTML Introduction
<HTML> is the standard markup language for creating Web pages.
<HTML> stands for Hyper Text Markup Language
<HTML> describes the structure of Web site&pages using markup
<HTML> elements are the building blocks of <HTML> pages
<HTML/> elements are represented by tags
<HTML> tags label pieces of content such as "heading=<h1>", "paragraph=<P>", "table<table>", and so on
Browsers do not display the <HTML> tags, but use them to render the content of the page
A Simple HTML Document
Example Explained
The <>!DOCTYPE html declaration defines this document to be::>HTML5The <>html element is the root element of HTML pages
The <>head elements contain meta information about the documents
The <>title element specifie a title for the documents
The <>body element contain the visible page contents
The <>h1 element defines a largest heading in page
The <>p element defines a paragraphs in html page
HTML Tags
HTML tag are element name surroundeing by angles bracket:Starting tag<=<tagname>content type goes here how much..</tagname>=>Ending tag
HTML tag normally comes in pair like <p> and </p>
The first tag in a pairs is the starting tag, the second tag is the ending tag
The ending tag is written like the starting tag, but with a forward slash inserted before the tag name
Tip: The starting tag is also called the opening tag, and the ending tag the closing tag.
Web Browsers
The purpose of a web browsers (Chrom, InternetExplorer, Mozila Firefox, apple Safari) is to read HTML document and displaying them.
The browsers does not displaying the HTML tags, but uses them to determine how to displaying the documents:
HTML Page Structure
Below is a visualizations of an HTML pages structued:HTML Versions
Since the early day of the web page, there have been many versions of HTML:
No comments