CLASS X HTML Program (25/7/2023)
1. Write the output: - To display paragraphs in various alignments.
<HTML>
<HEAD>
<TITLE> Paragraph Alignments </TITLE>
</HEAD>
<BODY>
<P Align=Left> HYPERTEXT MARKUP LANGUAGE </P>
<P Align=Center> TIM BERNERS LEE </P>
<P Align=Right> Creating Webpage </P>
</BODY>
</HTML>
2. Which tag is used to define the basic font size?
Ans2. Base Font Tag
3. What is paragraph tag?
Ans3. Paragraph is a formatting tag used to mark the beginning of a
new paragraph.It is a container element. It contains text and
defines the paragraph of text.
4. Define attribute? What are the attributes of the <FONT> tag?
Ans4. An attribute is a special word used inside a HTML tag and
which specifies additional information to tag such as color
alignment, height or width. Size, Face, Color are the attributes
of the <FONT> tag.
5. Differentiate between <BASEFONT> and <FONT> tags.
Ans5. <Basefont> - This tag is used to define basic font size for the
HTML page. Once set, this font size is applicable to all the text
following it, for which no other size has been specified.
Attributes- Size, Face, Color.
<FONT> Tag on the other hand, lets one define size, style, and
color of a short segment of text. Once </FONT> is reached, the
following text is rendered in default font size set by
<BASEFONT>. Attributes- Size, Face, Color
Comments
Post a Comment