1 what is the purpose of using <BODY> tag in html?
2 what is difference between webpage and website?
3 differentiate between <p>and <BR> tags.
4 what is an empty tag?
5 explain <IMG> tag and its attributes
Answers
Answer:
<Body> tag is used to define the data that will be displayed on the webpage.
Webpage is a part of website and website is a collection of webpages.
<p> tag is used to define paragraph and <br> tag is used to give line break.
An empty tag is a tag which does not contain any closing tag.Eg-<br>
<img> tag is used to insert an image on a webpage. It's attributes are src, height, width etc.
Hope it helps...
Answer:
Question 1- what is the purpose of using <BODY> tag in html?
The <body> tag in HTML is used to create visible content on a webpage.
Question 2- what is difference between webpage and website?
Think a Website as a book and the webpage as a page of the book.
A website is made with some or many webpages.
A webpage is a particular page of a website
Question 3- differentiate between <p>and <BR> tags.
The <p> tag is used to define a paragraph in HTML.
Whereas
The <br> tag is used to change the line in HTML. Think this tag as the Enter key
Question 4- what is an empty tag?
The tag with nothing.
Question 5- explain <IMG> tag and its attributes
The <img> tag is used to insert an image. Its attributes -
src - if you want to insert an image from PC then this will be used.
url - if you want to insert an image from the web
size - to maintain the size of an image
alt - If the Image cannot be shown, then it will show a text.
Explanation: