Resourcech 10
Resourcech 10
Ans. HTML stands for Hyper Text Mark-up Language. It is the most widely used language to
design web contents for the Internet.
Q2. What do you understand by tags? How many types of tags are there?
Ans. A tag is a piece of code, which acts as a label that a web browser interprets. It instructs
a web browser what to display and how to display. A complete tag having an opening <tag»
and a closing </tag> is known as element. Each tag in HTM L follows specific rules known as
syntax.
These tags are not case sensitive. The HTML tags can be categorized as:
Container Tags
Empty Tags
Ans. The tags that include both ON and OFF tags are called Container tags, whereas tags
that contain only ON tags are called Empty tags. <HTML> tag is an example of container tag,
Whereas <BR> tag is an example of an empty tag.
Q4. What do you understand by attributes in HTML?
Ans. An attribute is a property value that modifies an HTML element. It appears inside the
opening tag and value is always inside the quotation marks.
For example: <Font face =”Arial”> where face is the attribute of the font tag.
Ans. Paragraph tag is used to display text in the form of a paragraph. A paragraph can be
aligned using the attribute named, "Align". Various attributes of a paragraph element are:
<P>, <P Align-"Center">, <P Align-"Right">, <P Align-"Left">, <P Align-"Justify">
COLOR ="RED">
Ans. BGCOLOR attribute is used to change the background color of the web page. In the
<BODY> tag, type BGCOLOR -"?", replacing '?' with the name or a color code.
Ans. <BR> tag breaks the line and displays the text from the next line, without giving any
space between two lines. It should be given at the end of the line after which a newline is
required.
Q8. Which tags are used to apply the bold, underline and italic properties to the text?
Ans. <B>, <l>and <U>tags are used to apply the bold, underline, and italic properties to the
text.
Q9. Which attribute of <BODY> tags are used to set margins in a web page?
Ans. The following tags are used to set the margins in a web page:
TOPMARGIN
LEFTMARGIN