HTML Basic
HTML Basic
Feroza Naznin
Lecturer, GUB
What is HTML?
• HTML tags are composed of three things: an opening tag, content and
ending tag.
• Some tags are unclosed tags.
When a web browser reads an HTML document, the browser reads it from top
to bottom and left to right. HTML tags are used to create HTML documents and
render their properties. Each HTML tags have different properties.
Syntax
<tag> content </tag>
Content is placed between tags to display data on the web page.
Do all HTML tags have an end tag?
No.
There are some HTML tags that don't need a closing tag. For
example:
• <image> tag
• <br> tag.
<br> Tag: br stands for break line, it breaks the line of the
code.
<hr> Tag: hr stands for Horizontal Rule. This tag is used to put
a line across the webpage.
What is formatting in HTML?
<b> This is a physical tag, which is used to bold the text written between it.
<strong> This is a logical tag, which tells the browser that the text is important.
How many types of heading does an
HTML contain?
The HTML contains six types of headings which
are defined with the <h1> to <h6> tags.
Each type of heading tag displays different text
size from another. So
• <h1> is the largest heading tag and
• <h6> is the smallest one.
How to create a hyperlink in HTML?
There are many common lists which are used to design a page.
You can choose any or a combination of the following list types:
For example:
• In semantic HTML <b> </b> tag is not used for bold statement
as well as <i> </i> tag is used for italic.
• Instead of these we use <strong></strong> and <em></em>
tags.
Which HTML tag is used to display the
data in the tabular form?
What is an image map?
For example:
<!DOCTYPE html>
<html>
<body>
<h2>HTML Iframes example</h2>
<p>Use the height and width attributes to specify the size of the iframe:</p>
<iframe src="https://www.javatpoint.com/" height="300" width="400"></iframe>
</body>
</html>
How do you keep list elements straight in an HTML file?