0% found this document useful (0 votes)
184 views7 pages

HTML Concepts and Practice Questions

Uploaded by

nikunjsp2007
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
184 views7 pages

HTML Concepts and Practice Questions

Uploaded by

nikunjsp2007
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
  • HTML Basic Questions
  • HTML Code Exercises
  • Cricket Analysis Code
  • Specific HTML Outputs
  • Advanced HTML Tasks
  • HTML Tables and Setup
  • HTML Tags and Attributes

Q.1 What are advantages of HTML?

Q.2 Give the disadvantages of HTML.

Q.3 Give the structure ofHTML web page.

Q.4 Explain the following tags in HTML:


1. <P> tag
2. <BR> lag
3. <HR> tag
4. <PRE>

Q.5 Explain the purpose of following tags in HTML with example.


1. <marquee>
2. <LI>
3. <HR>

Q.6 What is <EM> tag ?What is the difference between <EM> tag and <I> tag?

Q.7 What are types of List? Explain with example?


OR Explain <OL> and <UL> tag used in HTML with example.

Q.8 Explain the use of following tags in HTML.

1. <A> tag
2. <SUB> tag
3. <SUP> tag
4. <Font> tag
5. <BIG> tag
6. <SMALL> tag
7. <STRIKE> tag
8. HREF

Q.9 Write a HTML code with VB Script for a web page which greets "GoodMorning"if (March
04,19) time is 12.00 A.M. to 12.00 P.M. else greets "Good Afternoon"

Q.10 Write HTML code for the following:


Q.11 Write HTML codes' output for the following :

<html>
<body>
<hI> XII RESULT</hi>
<table border = "¡" cellspacing = "10"
<tr>
<th colspan = "3" > <u> STREAM <N> </th> <tr>
<tr>
<td> <a href ="SCIENCE. htmI" >SCIENCE </a> </td>
<d> <a href = " [Link]|"> COMMERCE </a> </ td>
<td> <a href = " ART. html"> ART </a> </td> </tr>
<table>
</body>
</html>

Q.12 Write HTML code for following output :

Q.13 Write HTML code for the following output:

Computer Science
● Paper - I
1) C++ language
2) HTML
3) OS
4) DS

● Paper - II
1) Microprocessor
2) Microcontroller
3) X86 Processors
4) Networking
Q.14 Write HTML code for following output :

Q.15 Write the output of the following HTML code:

<html>.
<body>
<UL type = "circle"> < Li > One
<Li>Two <Li> Three
<UL type="square'>
<Li> Monday
<Li> Tuesday
<Li> Wednesday
</UL>
</UL>
</body>
</html>

Q.16 Write the exact output of the following HTML code with font specification bracket.

<html>
<title> Introduction </title>
<body>
<h1> <b> ComputerScience </b> </h1>
<hr>
<u> Paper-I </us <hr>
<u> Paper-Il </u> </body>
<htmi>
Q.17 Write the exact output of the following HTML code:

<HTML>
<BODY>
<h1> <U> Services of
Operating System </U> </HI> <UL Type="square">
<LI> Information Management </LI>
<UL Type = "circle">
<LI> File system </LI>
<OL>
<LI> Tape based system
<LI> Disk based system
</OL>
</UL>
<LI> Process Management </LI>
<LI> Memory Management </LI> </UL>
</BODY>
</HTML>

Q.18 Write a code inHTML for following table

RESULT

JEE CET

Q.19 Write exact output of the following HTML code:

<HTMLs
<BODYS
<OL start = "10">
<i> English <li>Second language </OL>
<OL Type = "a">
<i> Compulsory <li> Optional </OL>
<UL type = "Square"> <Li>Science
<Li> Arts
<Li> Commerce
</UL>
</BODY>
</HTML>
Q.20 Write HTML code for the following output :

Q.21 Write the exact output of the following HTML code:

<HTML>
<HEAD>
«TITLE> Match summary </TITLE> </HEADS
«BODY
<Table border = 1" cellspacing = "15" cellpadding ="15"> <TR>
<TH Rowspan ="2"> IND <br> 3
35/4 </TH>
<TD> Virat </TD>
<TD> 185 < /TD>
</TR>
<TR>
<TD> Sharma </TD>
<TD> 90 </TD>
</TR>
<TR>
<TH Rowspan = "2"> AUS <br> 280 </TD>
<TD> Warner </TD>
<TD> 90 </TD>
</TR>
<TR>
<TD> Smith </TD>
<TD> 70 </TD>
</TR>
<TR>
<TR> <TD Colspan ="3”> INDwin by 055 Runs </TD>
</TR>
</Table>
<Body> </HTML>
Q.22 Write the HTML Code for following output :

(1) Computer Science Theory


I. Paper 1- 50 Marks
II. Paper 2- 50 Marks

(2) Computer Science Practicals


I. Paper 1- 50 Marks
II. Paper 2- 50 Marks

Q.23 Write a code in HTML for following table:

Q.24 To display defination lists on your web page___________ tag is used.


OR __________ tag is used to write the definition list.

I. <DLIST>
II. <OL>
III. <LI>
IV. <DL>

Q.25 ______ tag is used to put a line break in HTML code.

I. <HR>
II. <BR>
III. <P>
IV. <ТТ>
Q.26 Border attribute is used in______ tag.

I. <HTML>
II. <P>
III. <TABLE>
IV. <TITLE>

Q.27 The attribute BORDER in <TABLE> tag has the default value of ________.

I. 2
II. 0
III. 1
IV. None of the above

Q.28 In HTML, for red colour, RGB code is________.

I. #000000
II. #ff0000
III. #00ff00
IV. #0000ff

Q.29 _______ tag is used to write the definition list.

I. <UL>
II. <DL>
III. <OL>
IV. <DT>

Q.30 The attribute BORDER in <TABLE> tag has the default value of

I. 2
II. 1
III. None of the above

Common questions

Powered by AI

The <marquee> tag is used to create scrolling text or images on a web page. It makes content move, either horizontally or vertically, across the viewer's screen. An example of its use is: <marquee>Scrolling text example</marquee>. Note that the use of <marquee> is deprecated in modern HTML standards, and CSS or JavaScript is recommended for such effects .

The default border attribute value for the <TABLE> tag in HTML is 1. This is important because it determines the initial appearance of table borders, providing a distinct visual separation of table cells which can be enhanced or suppressed according to design needs through CSS .

The RGB code for red in HTML is #ff0000. This is used in web design to apply a pure red color to any HTML element that accepts color styling, ensuring consistent color representation across different devices and browsers .

A typical HTML web page structure includes the document type declaration (<!DOCTYPE html>), the <html> tag as the root element, a <head> section containing metadata, styles, and scripts, and a <body> section where the visible content is placed. This setup ensures proper rendering by web browsers .

The <DL> tag is used to write definition lists in HTML. Its components include <DT> for the term and <DD> for the description or definition. This structure is useful for presenting glossaries or explanations where terms require further elaboration .

Advantages of HTML include its simplicity and ease of learning, being open and widely supported, and not requiring programming knowledge. However, its disadvantages involve its static nature, inability to create dynamic outputs or applications without using it alongside other technologies, and its outdated elements like the <font> tag, that are no longer standard .

<OL> and <UL> tags define ordered and unordered lists, respectively. <OL> presents items with a sequence (e.g., numbers or letters) indicating order, as in <ol><li>First</li><li>Second</li></ol>. In contrast, <UL> shows items with bullet points, as in <ul><li>Item</li><li>Another item</li></ul>, indicating no inherent priority or order .

The <SUB> tag is used to create subscript text, rendering it smaller and lowered compared to the baseline, commonly used in chemical formulas like H<sub>2</sub>O. The <SUP> tag creates superscript text, appearing smaller and raised, often used for exponents such as E=mc<sup>2</sup> .

The <EM> tag is used to define emphasized text, which typically renders as italicized text but is intended to denote emphasis and thus can change in future styling or devices. The <I> tag specifically sets the text in an italic style purely for stylistic reasons. This means <EM> is semantically distinct as it communicates meaning to assistive technologies and search engines, whereas <I> does not .

The <A> tag is the anchor element used to create hyperlinks in HTML. The HREF attribute within the <A> tag specifies the destination URL of the link. This functionality is crucial for web navigation, allowing users to move between web pages or sections easily .

Q.1 What are advantages of HTML?
Q.2 Give the disadvantages of HTML.
Q.3 Give the structure ofHTML web page.
Q.4 Explain the
Q.11 Write HTML codes' output for the following :
<html>
<body>
<hI> XII RESULT</hi>
<table border = "¡" cellspacing = "10"
<
Q.14 Write HTML code for following output :
Q.15 Write the output of the following HTML code:
<html>.
<body>
<UL type = "circ
Q.17 Write the exact output of the following HTML code:
<HTML>
<BODY>
<h1> <U> Services of
Operating System </U> </HI> <UL Ty
Q.20 Write HTML code for the following output :
Q.21 Write the exact output of the following HTML code:
<HTML>
<HEAD>
«TITLE>
Q.22 Write the HTML Code for following output :
(1) Computer Science Theory
I.
Paper 1- 50 Marks
II.
Paper 2- 50 Marks
(2) Co
Q.26 Border attribute is used in______ tag.
I.
<HTML>
II.
<P>
III.
<TABLE>
IV.
<TITLE>
Q.27 The attribute BORDER in <TABLE> t

You might also like