Introduction to HTML
V VIDYASHANKAR
29th JUNE 2025
Hyper Text markup Language
A markup language is a set of markup
tags
What is HTML uses these markup tags to
HTML? describe web pages
HTML is not a case sensitive language
HTML documents contain tags as well as
text
Tags are the elements that create
components of a page
Tags surrounded by angle brackets usually
occur in pairs
HTML Example : <p> and </p> ( start and end
Elements tags )
Convention is to use lower case
Stuff between tags is called element
content
< html >
< head >
<title > …. Document title ….
</title>
</head>
HTML PAGE
< body >
…. Page content ….
< / body >
< / html >
EXAMPLE
SYNTAX
What is the difference between elements
and tags?
An HTML Tag is just the opening <p> or
closing </p> part. They are basically the
instructions.
ELEMENTS An HTML element is the entire thing : the
& TAGS opening tag, the content tag and the
closing tag.
Visualize a sandwich. The two slices of
bread are the tags and the complete
sandwich with everything else is the
element.
EXAMPLE
Wetting hands with code!
Create the largest heading with the text
‘Welcome’
Create the second highest heading with
the text ‘About Us’
Create the third highest heading with the
ACTIVITIES text ‘GeeksforGeeks’ aligned to the center
Create the third smallest heading with the
text ‘Services’ and set its colour to
‘#0066cc’
Create a paragraph with bold text ‘Hello
World’