Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
A tag in HTML is a keyword written inside angle brackets (< >) that tells the browser what to do with the content.
Opening tag: <p>, Closing tag: </p>
An HTML element is the combination of a start tag, content, and an end tag.
<h1>Hello, World!</h1>
Container elements have both an opening and closing tag and wrap content. Example: <p> This is a container element.</p>
Empty elements do not have closing tags and are used for standalone tasks. Examples: <br>, <img>
No, not every tag is an empty element. Only some tags like <br> and <img> are empty elements.
Attributes provide extra information about an element and are always written in the opening tag.
Attributes are placed inside the start (opening) tag of an HTML element.
Attribute values are written in quotes as name='value' pairs.
<p align="center">This text is centered.</p>
src (specifies the image location), alt (provides alternate text for the image).
The 'href' attribute specifies the URL or link address for the <a> (anchor) tag.
It creates a link to the CBSE website that opens in a new tab when clicked.
The 'bgcolor' attribute sets the background color of the web page.
A tag is a keyword inside angle brackets that instructs the browser, while an attribute is extra information within the tag that modifies its behavior.
An attribute is structured as name="value" within the opening tag.
<br> is the correct way because empty elements do not require a closing tag.
Yes, for example: <img src="flower.jpg" alt="A red flower" width="200" height="150" />
Tags are the instructions written in angle brackets, elements are the combination of tags and content, and attributes are additional settings within the opening tag to provide extra information about the element.