Introduction To HTML: by Usman Zahid Saif Ul Haq
Introduction To HTML: by Usman Zahid Saif Ul Haq
By
Usman Zahid
Saif ul Haq
WHAT IS HTML?
• Hyper Text Markup Language.
– Hyper Text means non-linear.
– Markup means marking text as a special type.
• HTML Tags:
– Markup tags are called HTML tags
– HTML tags mark text as special type
– ‘< >‘ is called opening tag.
– ‘</ >‘ is called closing tag.
FIRST WEBSITE
• <html>
<body>
<h1>My heading</h1>
</body>
</html>
EXPLAINING THE FIRST WEBSITE
• Heading:
– Headings range from h1 to h6.
• Paragraphs:
– Used to write all details.
• Line break:
– <br> tag used to give empty space.
CONTINUED
• Bold <b>
• Italic <i>
• Subscript <sub>
• Superscript <sup>
• More examples:
– <p style="color:orange">welcome to my 2nd website</p>
• Similarly
– text-align:centre
– font-family:arial
– font-size:20px
ADDING IMAGES
• E.g.
– <img width="125" height="125" src="logo.png" alt="error pic not
opening"/>