HTML Introduction
HTML Introduction
Faizullah Hamdard
Musa Hodman 2
HTML (HYPERTEXT MARKUP LANGUAGE)
▪ The most basic building block of the Web.
▪ Defines the meaning and structure of web content.
▪ Hypertext!
• The links that connect web pages to one another.
Faizullah Hamdard
Musa Hodman 3
WHAT IS MARKUP LANGUAGE?
▪ The language which marks up the places in web pages.
• XML
• XHTML
• SGML
• KML
Faizullah Hamdard
Musa Hodman 4
A SIMPLE HTML DOCUMENT
Faizullah Hamdard
Musa Hodman 5
A SIMPLE HTML DOCUMENT EXPLANATION
Musa Hodman
Faizullah Hamdard 6
HTML TAGS
▪ HTML tags are simple instructions that tell a web browser how to format
webpage.
▪ The HTML tag is just an opening or closing entity.
▪ The first tag in a pair is the start tag, the second tag is the end tag.
Like: <p></p>, <svg>, <embed>
Musa Hodman
Faizullah Hamdard 7
KINDS OF TAGS:
1: Container tags:
Container tags contain content.
Like: <p>Hamdard</p>.
2: Empty tags:
The tags that do not contain any closing tags.
Like: <br>,<hr>.
Musa Hodman
Faizullah Hamdard 8
HTML ELEMENTS:
▪ An HTML element is defined by a start tag, some content, and an end tag.
▪ <tagname> Write your content here </tagname>.
Like: <h1> My First Heading </h1>.
Musa Hodman
Faizullah Hamdard 9
NESTED HTML ELEMENTS
▪ The elements can contain other elements.
▪ All HTML documents consist of nested HTML elements.
Musa Hodman
Faizullah Hamdard 10
HTML PAGE STRUCTURE
Musa Hodman
Faizullah Hamdard 11
HTML VERSIONS
Musa Hodman
Faizullah Hamdard 12
HTML TIPS:
▪ Use Lowercase Tags.
▪ HTML tags are not case sensitive: <P> means the same as <p>.
▪ The HTML5 standard does not require lowercase tags, but
recommends lowercase in HTML4, and demands lowercase for
stricter document types like XHTML.
Musa Hodman
Faizullah Hamdard 13
THANK YOU
[email protected]