HTML is the usual markup language for creating Internet pages.
What’s HTML?
HTML stands for Hyper Textual content Markup Language
HTML is the usual markup language for creating Internet pages
HTML describes the construction of a Internet web page
HTML consists of a collection of parts
HTML parts inform the browser how one can show the content material
HTML parts label items of content material similar to “it is a heading”, “it is a paragraph”, “it is a hyperlink”, and so on.
A Easy HTML Doc
Instance
`<!DOCTYPE html>
Web page Title
My first paragraph.
`
Instance Defined
The <!DOCTYPE html> declaration defines that this doc is an HTML5 doc
The aspect is the foundation aspect of an HTML web page
The
aspect comprises meta details about the HTML web page
The aspect specifies a title for the HTML web page (which is proven within the browser’s title bar or within the web page’s tab)
The aspect defines the doc’s physique, and is a container for all of the seen contents, similar to headings, paragraphs, photographs, hyperlinks, tables, lists, and so on.
The
aspect defines a paragraph
What’s an HTML Ingredient?
An HTML aspect is outlined by a begin tag, some content material, and an finish tag:
Content material goes right here…
The HTML aspect is every thing from the beginning tag to the tip tag:
My first paragraph.
Begin tag Ingredient content material Finish tag
My first paragraph.
none none
Observe: Some HTML parts don’t have any content material (just like the
aspect). These parts are known as empty parts. Empty parts don’t have an finish tag!
Internet Browsers
The aim of an online browser (Chrome, Edge, Firefox, Safari) is to learn HTML paperwork and show them appropriately.
A browser doesn’t show the HTML tags, however makes use of them to find out how one can show the doc:
View in Browser
HTML Web page Construction
Beneath is a visualization of an HTML web page construction:
<html>
<head>
<title>Web page title</title>
</head>
<physique>
<h1>It is a heading</h1>
<p>It is a paragraph.</p>
<p>That is one other paragraph.</p>
</physique>
</html>
Observe: The content material contained in the
part (the white space above) might be displayed in a browser. The content material contained in the aspect might be proven within the browser’s title bar or within the web page’s tab.
HTML Historical past
Because the early days of the World Broad Internet, there have been many variations of HTML:
12 months Model
1989 Tim Berners-Lee invented www
1991 Tim Berners-Lee invented HTML
1993 Dave Raggett drafted HTML+
1995 HTML Working Group outlined HTML 2.0
1997 W3C Suggestion: HTML 3.2
1999 W3C Suggestion: HTML 4.01
2000 W3C Suggestion: XHTML 1.0
2008 WHATWG HTML5 First Public Draft
2012 WHATWG HTML5 Residing Customary
2014 W3C Suggestion: HTML5
2016 W3C Candidate Suggestion: HTML 5.1
2017 W3C Suggestion: HTML5.1 2nd Version
2017 W3C Suggestion: HTML5.2
This tutorial follows the newest HTML5 customary.