HTML-all
HTML interview questions and Answers
1.What does HTML stand for?
1.What does HTML stand for?
- Hyperlinks and Text Markup Language
- Home Tool Markup Language
- Hyper Text Markup Language
Ans: Hyper Text Markup Language
-------------------------------------------------------------------
2.Who is making the Web standards?
- Mozilla
- Microsoft
- The World Wide Web Consortium
Ans: The World Wide Web Consortium
-------------------------------------------------------------------
3.Choose the correct HTML tag for the largest heading
-------------------------------------------------------------------
3.Choose the correct HTML tag for the largest heading
- <h6>
- <heading>
- <head>
- <h1>
Ans: <h1>
-------------------------------------------------------------------
4.What is the difference between XML and HTML?
-------------------------------------------------------------------
4.What is the difference between XML and HTML?
- HTML is used for exchanging data, XML is not.
- XML is used for exchanging data, HTML is not.
- HTML can have user defined tags, XML cannot
Ans: XML is used for exchanging data, HTML is not.
-------------------------------------------------------------------
5.What is the correct HTML tag for inserting a line break?
-------------------------------------------------------------------
5.What is the correct HTML tag for inserting a line break?
- <br />
- <break />
- <lb />
Ans: <br />
-------------------------------------------------------------------
6.Can a data cell contain images?
-------------------------------------------------------------------
6.Can a data cell contain images?
- Yes
- No
Ans: Yes
-------------------------------------------------------------------
7.How do I add scrolling text to my page?
-------------------------------------------------------------------
7.How do I add scrolling text to my page?
- <scroll>
- <marquee>
- <ciruler>
Ans: <marquee>
-------------------------------------------------------------------
8.What is the preferred way for adding a background color in HTML?
-------------------------------------------------------------------
8.What is the preferred way for adding a background color in HTML?
- <body background="yellow">
- <background>yellow</background>
- <body style="background-color:yellow">
Ans: <body style="background-color:yellow">
-------------------------------------------------------------------
9.What does vlink mean ?
-------------------------------------------------------------------
9.What does vlink mean ?
- visited link
- vlink
- active link
Ans: visited link
-------------------------------------------------------------------
10.Is width=”100” and width=”100%” the same?
-------------------------------------------------------------------
10.Is width=”100” and width=”100%” the same?
- Yes
- No
Ans: No
-------------------------------------------------------------------
11.Choose the correct HTML tag to make a text bold
-------------------------------------------------------------------
11.Choose the correct HTML tag to make a text bold
- <bold>
- <b>
Ans: <b>
-------------------------------------------------------------------
12.Choose the correct HTML tag to make a text italic
-------------------------------------------------------------------
12.Choose the correct HTML tag to make a text italic
- <i>
- <italic>
Ans: <i>
-------------------------------------------------------------------
13.What is extension of html file ?
-------------------------------------------------------------------
13.What is extension of html file ?
- html
- xml
- xhtml
Ans: html
-------------------------------------------------------------------
14.What is the correct HTML for creating a hyperlink?
-------------------------------------------------------------------
14.What is the correct HTML for creating a hyperlink?
- <a name="">A</a>
- <a>B</a>
- <a href="http://www.example.com">example</a>
- <a url="http://www.example.com">example</a>
Ans: <a href="http://www.example.com">example</a>
-------------------------------------------------------------------
15.How can we resize the image?
-------------------------------------------------------------------
15.How can we resize the image?
- Using size attribute
- Using height and width
Ans: Using height and width
-------------------------------------------------------------------
16.How can you create an e-mail link?
-------------------------------------------------------------------
16.How can you create an e-mail link?
- <mail href="a@b">
- <mail>a@b</mail>
- <a href="a@b">
- <a href="mailto:a@b.com">
Ans : <a
href="mailto:a@b.com">
-------------------------------------------------------------------
17.How can you open a link in a new browser window?
-------------------------------------------------------------------
17.How can you open a link in a new browser window?
- <a href="url" new>
- <a href="url" target="new">
- <a href="url" target="_blank">
Ans: <a href="url" target="_blank">
-------------------------------------------------------------------
18.Which of these tags are all <table> tags?
-------------------------------------------------------------------
18.Which of these tags are all <table> tags?
- <table><head><tfoot>
- <table><tr><td>
- <table><tr><tt>
- <thead><body><tr>
Ans: <table><tr><td>
-------------------------------------------------------------------
19.Choose the correct HTML to left-align the content inside a tablecell
-------------------------------------------------------------------
19.Choose the correct HTML to left-align the content inside a tablecell
- <td valign="left">
- <tdleft>
- <td leftalign>
- <td align="left">
Ans: <td align="left">
-------------------------------------------------------------------
20.How can you make a list that lists the items with numbers?
- <ul>
- <list>
- <ol>
- <dl>
Ans :<ol>
-------------------------------------------------------------------
21.How can you make a list that lists the items with bullets?
-------------------------------------------------------------------
21.How can you make a list that lists the items with bullets?
- <ol>
- <list>
- <ul>
- <dl>
Ans: <ul>
-------------------------------------------------------------------
22.What is the correct HTML for making a checkbox?
-------------------------------------------------------------------
22.What is the correct HTML for making a checkbox?
- <checkbox>
- <input type="checkbox" />
- <input type="check" />
- <check>
Ans: <input type="checkbox" />
-------------------------------------------------------------------
23.What is the correct HTML for making a text input field?
-------------------------------------------------------------------
23.What is the correct HTML for making a text input field?
- <input type="textfield" />
- <textinput type="text" />
- <textfield>
- <input type="text" />
Ans: <input type="text" />
-------------------------------------------------------------------
24.What is the correct HTML for making a drop-down list?
-------------------------------------------------------------------
24.What is the correct HTML for making a drop-down list?
- <input type="list" />
- <select>
- <list>
- <input type="dropdown" />
Ans: <select>
-------------------------------------------------------------------
25.What is the correct HTML for making a text area?
-------------------------------------------------------------------
25.What is the correct HTML for making a text area?
- <input type="textarea" />
- <input type="textbox" />
- <textarea>
Ans: <textarea>
-------------------------------------------------------------------
26.What is the correct HTML for inserting an image?
-------------------------------------------------------------------
26.What is the correct HTML for inserting an image?
- <image src="image.gif" alt="MyImage" />
- <img href="image.gif" alt="MyImage" />
- <img src="image.gif" alt="MyImage" />
- <img alt="MyImage">image.gif</img>
Ans: <img
src="image.gif" alt="MyImage" />
-------------------------------------------------------------------
27.What is the correct HTML for inserting a background image?
-------------------------------------------------------------------
27.What is the correct HTML for inserting a background image?
- <img src="background.gif" background />
- <body background="background.gif">
- <background img="background.gif">
Ans: <body
background="background.gif">
-------------------------------------------------------------------
28.When you count to 15 using hexadecimal numbers, the highest number is what ?
-------------------------------------------------------------------
28.When you count to 15 using hexadecimal numbers, the highest number is what ?
- F
- B
- 15
Ans: F
-------------------------------------------------------------------
29.What is the REFRESH meta tag used for ?
-------------------------------------------------------------------
29.What is the REFRESH meta tag used for ?
- Refresh your content
- Redirect to a new domain
- rewrite url
Ans: Redirect
to a new domain
-------------------------------------------------------------------
30.colspan=n can be added to only what tag?
-------------------------------------------------------------------
30.colspan=n can be added to only what tag?
- <table>
- <td>
- <tr>
Ans:<td>
-------------------------------------------------------------------
31.What tag adds a paragraph break after the text ?
-------------------------------------------------------------------
31.What tag adds a paragraph break after the text ?
- <PARAGRAPH>
- <P>
- <BR>
Ans:<P>
-------------------------------------------------------------------
32.All HTML tags are enclosed in what ?
-------------------------------------------------------------------
32.All HTML tags are enclosed in what ?
- <>
- <?php and ?>
- # and #
- <!-- and -->
Ans: <>
- Design page Home page First page Main page
Ans: b. Home Page
- Mozilla Microsoft The World Wide Web Consortium
Ans: c. The World Wide Web Consortium
- Table tr td form
Ans: d. form
- HTML 0 HTML 1 HTML 2 All of these
Ans: d. All of these
- Writing Styles Writing Java Scripts Including CSS,JS Files All of above
Ans: d. All of above
- 3 4 5 6
Ans: d. 6
- H1 H3 H4 H6
Ans: a. H1
- Face Size Color All of above
Ans: d. All of above
- 1 2 3 4
Ans: c. 3
- Yes No Both None
Ans: a. Yes
- is used to display the Title for table at the top is used to display the Title for table at the bottom
- both none
Ans: c. both
- Cellspacing cellpadding row span col span
Ans: c. row span
- Cellspacing cellpadding row span col span
Ans: c. col span
- Red green blue pink
Ans: c. blue
- #000000; #0000000; #00000000; #000000000;
Ans: a. #000000;
- Web Browser Internet Explorer Firefox Google Chrome
Ans: a. Web Browser
- Internal External Both None
Ans: c. Both
- .html .htm Both None
Ans: c. Both
- World Wide Web Corporation World Wide Consortium World Wide Conference
- World Wide Web Cyberspace
Ans: b. World Wide Consortium
- Hyper text markup language Hyphenation text markup language
- Hyphenation test marking language Hyper text marking language
Ans: a. Hyper text markup language
- Hyper text transfer protocol Hyper text transfer package
- Hyphenation text test program None of the above
Ans: a. Hyper text transfer protocol
- a program that searches engines a web site that searches anything
- a hardware component a machinery engine that search data
Ans: d. a machinery engine that search data
- Transmission control protocol / Internet protocol
- telephone call protocol / international protocol
- transport control protocol / internet protocol
- none of the above
Ans: c. Both
No comments:
Post a Comment