Introduction to HTML

First Example

<!DOCTYPE html>
<meta charset="utf-8">
<title>Page Title</title>

	<h1>My first header</h1>

	<p>My first paragraph</p>


The DOCTYPE declares the document type

<html> describe the document type

<head> Identify the headers of HTML documents, which are usually required by the browser and additional instructions for the HTML document, such as document-loaded CSS styles or other scripting information.

<title> defines the title of the entire HTML document for display in the title bar at the top of the browser window, nested within <head>.

<body> are for visualizing web content

<h1> are used as a title

<p> are displayed as a paragraph

Note : <!DOCTYPE html> also describes the document type in HTML5.

Html or htm?

Web pages can be html suffix or htm suffix, in this tutorial html suffix as default.

Copyright 2014-2017 by All Rights Reserved.