0% found this document useful (0 votes)
0 views

computer 10

Chapter 10 covers the fundamentals of HTML, including the differences between container and empty elements, the definition of attributes and tags, and various font style tags. It explains the attributes of the body tag, the use of heading tags, and provides coding examples for displaying names using different heading levels. Additionally, it describes specific HTML tags such as <BR>, <HR>, and <FONT> attributes for font size and color.

Uploaded by

kshitij.pvt.0001
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views

computer 10

Chapter 10 covers the fundamentals of HTML, including the differences between container and empty elements, the definition of attributes and tags, and various font style tags. It explains the attributes of the body tag, the use of heading tags, and provides coding examples for displaying names using different heading levels. Additionally, it describes specific HTML tags such as <BR>, <HR>, and <FONT> attributes for font size and color.

Uploaded by

kshitij.pvt.0001
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Chapter 10

Understanding HTML
Question and Answers
Q1. Difference between Container and Empty Elements ?
Ans : Container Tags -Tags which include both ON and OFF in HTML . A tag is opened by the opening angle bracket
<>,and closed with the closing bracket </>.
E.g., <HTML > tag has its closing tag, such as </HTML>.
Empty tag – These elements do not have an OFF tag, and only contain ON tags.
E.g., <BR> is an empty tag which breaks the line and displays the text from the next line .

Q2.What are attributes & tags .


Ans : An attribute can be defined as a property which provides additional information regarding as HTML element.
E.g., <Font Size=”6” , color=”Red”>
Thus, the font size and font colour are attributes of the <Font> tag .
A tag can be defined as the text enclosed within angle brackets . Every tag has its own attribute , and default value. Tags
are not case sensitive.

Q3. Explain different Font style tags .


Ans : These tags are used to change the appearance of the text . They are also known as physical markups.
(a) BOLD:-
The bold tag is used when we wish to emphasize on the text .
Syntax:<B>Computer Applications </B>
(b) ITALIC :-
In order to place the attention of the reader on something that is relevant , italic element is used .
This element marks up the text in the document in italic style .
Syntax: <I>Computer applications</I>
(c) UNDERLINE:-
This tag underlines the text enclosed in <U> and </U> tags.
Syntax: <U> We must be disciplined in order to succeed </U>.

Q4. Explain the attributes of Body tag ?


Ans : (a)Background Colour
This attribute helps in changing the background colour of the web page .
Syntax :<BGCOLOR=”BLUE”>
(b)Top Margin
The top margin attribute is useful to set the top margin of a web page .
<BODY TOPMARGIN=”VALUE”>…</BODY>
(c) Left MARGIN
The left margin attribute is used to set the left margin of a web page .
<BODY LEFTMARGIN=”VALUE”>…</BODY>

Q5.What do you mean by heading tag?


Ans :
 The Heading tag is used for defining different heading levels in the HTML document.
 There are a total of six heading levels(H1 to H6).
 H1 heading style displays the text in the largest size .
 The lowest level H6 reduces the font size.
 These heading tags are written within the <BODY> tags of the document .

Q6. Write the coding to display your name using all heading levels .
<HTML>
<HEAD>
<TITLE>Using Heading Styles</TITLE>
</HEAD>
<BODY>
<H1>Your Name</H1>
<H2>Your Name</H2>
<H3>Your Name</H3>
<H4>Your Name</H4>
<H5>Your Name</H5>
<H6>Your Name</H6>
</BODY>
</HTML>

Q7. Explain the following tags :


1.<BR>-No space between two lines is provided .
2.<Hr> - This is used to draw a horizontal line across the page .
The size attribute of the <HR> element can also be specified , which defines the thickness of the line.
Syntax: <HR>
3.Font Size – This element is used to change the size of the font .
Syntax : <FontSize =”?”>
4. <FONTFACE> - This is used to change the typeface or name of the font .<FONT FACE > element is put to use .
For example ,<FONT FACE=”Georgia”>
5.<FONTCOLOR > - This attribute changes the colour of the text .
< FONT COLOR="?”>, you can replace the question mark with the colour code.
6.<p> - This tag place the text into several paragraphs .
Syntax: <P> starts a new paragraph.
<P Align=”Center”> Aligns the text to the center.
<P Align=”Right”> Aligns the text to the right side.
<P Align=”Left”> Aligns the text to the left side.
<P Align=”Justify”> Aligns the text evenly between both left and right margins .

You might also like