WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML Introduction


What is HTML

HTML is a markup language for describing Web pages

  • HTML represents Hyper Text Markup Language
  • it is a markup language set of markup tags
  • HTML records are portrayed by HTML tags
  • Each HTML tag describes distinctive record content

HTML Example

A little HTML document:

<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>

<h1>My First Heading</h1>
<p>My first paragraph.</p>

</body>
</html>
Try it yourself »

Example Explained

  • The DOCTYPE announcement characterizes the record type to be HTML
  • The message between <html> and </html> depicts a HTML document
  • The message between <head> and </head> gives data about the document
  • The message between <title> and </title> gives a title to the document
  • The message between <body> and </body> portrays the noticeable page content
  • The message between <h1> and </h1> portrays a heading
  • The message between <p> and </p> portrays a paragraph

HTML Tags

HTML labels are keywords (label names) encompassed by angle brackets:

<tagname>content</tagname>
  • HTML labels ordinarily come in pairs like <p> and </p>
  • The first tag in a couple is the begin tag, the second tag is the end tag
  • The end tag is composed like the begin tag, however with a slash before the label name

Web Browsers

The motivation behind an internet browser, for example, firefox is to peruse HTML records and show them.

View in Browser


HTML Page Structure

Below is a perception of a HTML page structure:

<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>

The <!DOCTYPE> Declaration

The <!DOCTYPE> affirmation encourages the program to show a page correctly.

There are diverse archive types on the web.

To show an archive accurately, the program must know both sort and version.

The doctype assertion isn't case touchy. All cases are acceptable:

<!DOCTYPE html>

<!DOCTYPE HTML>

<!doctype html>

<!Doctype Html>

Common Declarations

HTML5

<!DOCTYPE html>

HTML 4.01

<!DOCTYPE HTML PUBLIC "-/W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

HTML Versions

various adaptations of HTML:

Version Year
HTML lunch date 1991
HTML 2.0 lunch date 1995
HTML 3.2 lunch date 1997
HTML 4.01 lunch date 1999
XHTML lunch date 2000
HTML5 lunch date 2014