Professional Documents
Culture Documents
HTML BASICS
LECTURE 3
What is HTML?
• HTML is a markup language
for describing web documents (web pages).
• HTML stands for Hyper Text Markup Language
• A markup language is a set of markup tags
• HTML documents are described by HTML tags
• Each HTML tag describes different document
content
With HTML you can create your own Web
site.
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
This is my first page
</body>
</html>
Example Explained
<!DOCTYPE HTML>
<!doctype html>
<!Doctype Html>
HTML Headings
HTML headings are defined with
the <h1> to <h6> tags:
<h1>This is a heading</h1>
<h2>This is a heading</h2>
<h3>This is a heading</h3>
HTML Paragraphs
• HTML paragraphs are defined with
the <p> tag:
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
Line Break Element
• The line break element causes the browser to
advance to the next line before displaying the
next element or portion of text on a web
page.
• The line break tag is not coded as a pair of
opening and closing tags. It is a stand-alone,
or void element, empty and is coded as <br>.
Blockquote Element
• In addition to organizing text in paragraphs and
headings,
• sometimes you need to add a quotation to a web
page.
• The blockquote element is used to display a block
of quoted text in a special way—indented from
both the left and right margins.
• A block of indented text begins with a <blockquote>
• tag and ends with a </blockquote> tag.
HTML Lists
• HTML can have Unordered Lists, Ordered Lists,
or Description Lists: