Professional Documents
Culture Documents
WHAT IS HTML?
Hyper Text Markup Language
It is a standardized system for tagging text files to achieve font, color, graphic, and hyperlink effects on
World Wide Web pages.
Link
• Planning
• Deploy
• Coding
Link Link
THE PARTS OF MARKUP
TAGS
ELEMENTS
ATTRIBUTES
TAGS
Tags are the coded symbols that separate and distinguish one portion of content from
another while also informing the browser about what type of content it’s dealing
with.
A web browser can interpret the tags embedded in an HTML document and treat
different types of content appropriately.
Most of the tags available in HTML have names that describe exactly what they do
and what sort of content they designate, such as headings, paragraphs, lists, images,
quotations, and so on.
TAGS
Tags in HTML are surrounded by angle brackets (< and >) to clearly distinguish them
from ordinary text. The first angle bracket (<) marks the beginning of the tag,
immediately followed by the specific tag name, and the tag ends with an opposing
angle bracket (>). For example, this is the HTML tag that begins a paragraph:
<p>
TAGS
Most tags come in matched pairs: one start tag (also called an opening tag) to mark
the beginning of a portion of content and one end tag (also called a closing tag) to
mark its end. For example, the beginning of a paragraph is marked by the start tag,
<p>, and the paragraph ends with a </p> end tag; the slash after the opening bracket
is what distinguishes it as an end tag. A complete (if short) paragraph would be
marked up like this:
<p>Hello, world!</p>
TAGS
These twin tags and everything between them form a complete element, and elements
are the basic building blocks of an HTML document.
A few elements don’t require an end tag in select circumstances. For example, if
certain elements are immediately followed by certain other elements, the start tag for
the following element implies the end of the previous element, so that previous
element’s end tag may be optional, depending on the elements in play.
TAGS
Some tags indicate void elements (also called empty elements), which are elements
that do not, and in fact cannot, hold any contents. Void elements don’t require a
closing tag because there’s nothing to enclose. For example, the br element represents
a line break that forces the text that follows it to wrap to a new line on the rendered
page. It’s a void element that can’t hold any content.
TAGS
An element’s start tag can carry attributes to provide more information about the element—
specific traits or properties that element should possess. An attribute consists of an attribute
name followed by an attribute value, like so:
The HTML element is everything from the start tag to the end tag:
NESTED HTML ELEMENTS
HTML elements can be nested (this means that elements can contain other elements).
Example Explained
NESTED HTML ELEMENTS
Example Explained
HTML ANATOMY
BASIC TAGS IN HTML
Tag Description
<!DOCTYPE> Defines the document type
<html> </html> Defines an HTML document
<head> </head> Contains metadata/information for the document
<title> </title> Defines a title for the document
<body> </body> Defines the document's body
<h1></h1> - <h6></h6> Defines HTML headings
<p> </p> Defines a paragraph
<br> Inserts a single line break
<!--……--> Defines a comment
FORMATTING TAGS IN HTML
Tag Description
<u> </u> Defines some text that is unarticulated and styled differently from normal text