CLASS 7 Working With HTML 1
CLASS 7 Working With HTML 1
An HTML element is everything from the start tag to the end tag:
Tag (element) – is an HTML element that indicates how information
should be displayed. A tag is enclosed in angular brackets (< >). Eg. <HEAD>,
<TITLE> etc.
• the An HTML element starts with a start tag / opening tag ie. <tagname>
• An HTML element ends with an end tag / closing tag ie.</tagname>
There are two types of tags:
Container tag – has an ON and OFF tag. They have text enclosed within
them.eg. <BODY>, <HEAD> etc. A tag is closed as </tagname> eg. </HTML,
</HEAD>
Empty tags – they require only ON tag. They don’t have content within them.
Eg. <BR>, <HR>
The following output appears in the Web Browser.
Text
Topmargin
Example:
<!- - This is a comment - ->
Lets understand through an
example
<html>
<head>
<title> MY FIRST WEBPAGE</title>
</head>
<body>
<H1>Hello friends! </H1> <hr> <P>We are
going to study through real time online classes.
<br> In this the sessions are conducted where the
teacher and students have to be online a t a
particular time. <H3> Online teaching is more
beneficial. </H3> </P>
</body>
</html>
1) Provide additional information about elements and are attached to the elements.
2) Tag used to add section breaks.
3) An attribute of the tag used to change the background colour of the web page.
4) A line of code that is not interpreted by a browser.
5) A popular text editor used for creating HTML documents.
6) Two possible extensions of an HTML file.
7) A tag used for displaying headings in a webpage