What is HTML
HTML:
HyperText Markup Language
"
Hypertext" refers to links that connect web pages to one another, either within a single website or between
websites. Links are a fundamental aspect of the Web. By uploading content to the Internet
and linking it to pages
created by other people, you become an active participant in the World Wide Web.
HTML uses "
markup" to annotate text, images, and other content for display in a Web browser.
HTML markup
includes special "elements" such as <
head>, <
title>, <
body>, <
header>, <
footer>, <
article>, <
section>, <
p>,
<
div>, <
span>, <
img>, <
aside>, <
audio>, <
canvas>, <
datalist>, <
details>, <
embed>, <
nav>, <
output>,
<
progress>, <
video>, <
ul>, <
ol>, <
li> and many others.
An HTML element is set off from other text in a document by "
tags", which consist of the element name
surrounded by "<"
and ">". The name of an element inside a tag is case insensitive. That is,
it can be written in
uppercase, lowercase, or a mixture. For example, the <
title>
tag can be written as <
Title>, <
TITLE>, or in any
other way. However, the convention and recommended practice is to write tags in lowercase.
HTML Simple Structure
you write your title here
Hello world
This is my first web page.
The <
body> tag defines the document's body.
The <
body> element contains all the contents of an HTML document, such as
headings,
paragraphs,
images,
hyperlinks,
tables,
lists, etc.
Note: There can only be one <
body> element in an HTML document.
Definition and Usage
-
The <
h1> to <
h6> tags are used to define HTML headings.
<
h1> defines the most important heading. <
h6> defines the least important heading.
Note: Only use one <
h1> per page - this should represent the main heading/subject for the whole page. Also, do
not skip heading levels - start with <
h1>, then use <
h2>, and so on.
Definition and Usage
The <
p> tag defines a paragraph.
Browsers automatically add a single blank
line before and after each <
p> element.