Web Tech Lect 5
Web Tech Lect 5
Presented By
Sudipta Sahana
Asst. Prof.
Dept. of CSE
JIS College of Engineering
[email protected]
Topic of Interest
Introduction to HTML
HTML Tags
HTML Elements
HTML Attributes
HTML Heading
HTML Paragraphs
HTML Text Formatting Tags
Introduction to HTML
•HTML is a language for describing web pages.
•HTML stands for Hyper Text Markup Language
•HTML is a markup language
•A markup language is a set of markup tags
•The tags describe document content
•HTML documents contain HTML tags and plain text
•HTML documents are also called web pages
Introduction to HTML(Continued)
Example:
<!DOCTYPE html>
<html>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
Example Explained
•The DOCTYPE declaration defines the document type
•The text between <html> and </html> describes the web page
•The text between <body> and </body> is the visible page content
•The text between <h1> and </h1> is displayed as a heading
•The text between <p> and </p> is displayed as a paragraph
HTML Tags
•HTML markup tags are usually called HTML tags.
•HTML tags are keywords (tag names) surrounded by angle brackets like <html>
•The first tag in a pair is the start tag, the second tag is the end tag
•The end tag is written like the start tag, with a slash before the tag name
•Start and end tags are also called opening tag and closing tag <tagname>content</tagname>
HTML Elements
The start tag is often called the opening tag. The end tag is often called the closing tag.
Attribute Example:
HTML links are defined with the <a> tag. The link address is specified in the href attribute.
Example
<a href="https://www.jiscollege.ac.in">This is a link</a>
HTML Heading