Showing posts with label HTML. Show all posts
Showing posts with label HTML. Show all posts
HTML interview questions and Answers(Multiple Choice)-HTML Quiz
Posted by Raj
HTML interview questions and Answers(Multiple Choice)-HTML Quiz.
In this section, I have selected advanced HTML interview questions and answers for Freshers and Experienced candidates.Last few months I have been working to select best HTML Job interview question and answer set for IT interview questions.
Multiple Choice HTML interview questions and Answers:
-------------------------------------------------------------------
1.What does HTML stand for?
Ans: Hyper Text Markup Language
-------------------------------------------------------------------
2.Who is making the Web standards?
-------------------------------------------------------------------
3.Choose the correct HTML tag for the largest heading
-------------------------------------------------------------------
4.What is the difference between XML and HTML?
-------------------------------------------------------------------
5.What is the correct HTML tag for inserting a line break?
-------------------------------------------------------------------
6.Can a data cell contain images?
-------------------------------------------------------------------
7.How do I add scrolling text to my page?
-------------------------------------------------------------------
8.What is the preferred way for adding a background color in HTML?
-------------------------------------------------------------------
9.What does vlink mean ?
-------------------------------------------------------------------
10.Is width=”100” and width=”100%” the same?
-------------------------------------------------------------------
11.Choose the correct HTML tag to make a text bold
-------------------------------------------------------------------
12.Choose the correct HTML tag to make a text italic
-------------------------------------------------------------------
13.What is extension of html file ?
-------------------------------------------------------------------
14.What is the correct HTML for creating a hyperlink?
-------------------------------------------------------------------
15.How can we resize the image?
-------------------------------------------------------------------
16.How can you create an e-mail link?
-------------------------------------------------------------------
17.How can you open a link in a new browser window?
-------------------------------------------------------------------
18.Which of these tags are all <table> tags?
-------------------------------------------------------------------
19.Choose the correct HTML to left-align the content inside a tablecell
Ans: <td align="left">
-------------------------------------------------------------------
20.How can you make a list that lists the items with numbers?
-------------------------------------------------------------------
21.How can you make a list that lists the items with bullets?
-------------------------------------------------------------------
22.What is the correct HTML for making a checkbox?
-------------------------------------------------------------------
23.What is the correct HTML for making a text input field?
-------------------------------------------------------------------
24.What is the correct HTML for making a drop-down list?
-------------------------------------------------------------------
25.What is the correct HTML for making a text area?
-------------------------------------------------------------------
26.What is the correct HTML for inserting an image?
-------------------------------------------------------------------
27.What is the correct HTML for inserting a background image?
Ans: <body background="background.gif">
-------------------------------------------------------------------
28.When you count to 15 using hexadecimal numbers, the highest number is what ?
Ans: F
-------------------------------------------------------------------
29.What is the REFRESH meta tag used for ?
Ans: Redirect to a new domain
-------------------------------------------------------------------
30.colspan=n can be added to only what tag?
Ans:<td>
-------------------------------------------------------------------
31.What tag adds a paragraph break after the text ?
Ans:<P>
-------------------------------------------------------------------
32.All HTML tags are enclosed in what ?
Ans: <>
In this section, I have selected advanced HTML interview questions and answers for Freshers and Experienced candidates.Last few months I have been working to select best HTML Job interview question and answer set for IT interview questions.
Multiple Choice HTML interview questions and Answers:
-------------------------------------------------------------------
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
-------------------------------------------------------------------
3.Choose the correct HTML tag for the largest heading
- <h6>
- <heading>
- <head>
- <h1>
-------------------------------------------------------------------
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
-------------------------------------------------------------------
5.What is the correct HTML tag for inserting a line break?
- <br />
- <break />
- <lb />
-------------------------------------------------------------------
6.Can a data cell contain images?
- Yes
- No
-------------------------------------------------------------------
7.How do I add scrolling text to my page?
- <scroll>
- <marquee>
- <ciruler>
-------------------------------------------------------------------
8.What is the preferred way for adding a background color in HTML?
- <body background="yellow">
- <background>yellow</background>
- <body style="background-color:yellow">
-------------------------------------------------------------------
9.What does vlink mean ?
- visited link
- vlink
- active link
-------------------------------------------------------------------
10.Is width=”100” and width=”100%” the same?
- Yes
- No
-------------------------------------------------------------------
11.Choose the correct HTML tag to make a text bold
- <bold>
- <b>
-------------------------------------------------------------------
12.Choose the correct HTML tag to make a text italic
- <i>
- <italic>
-------------------------------------------------------------------
13.What is extension of html file ?
- html
- xml
- xhtml
-------------------------------------------------------------------
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>
-------------------------------------------------------------------
15.How can we resize the image?
- Using size attribute
- Using height and width
-------------------------------------------------------------------
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">
-------------------------------------------------------------------
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">
-------------------------------------------------------------------
18.Which of these tags are all <table> tags?
- <table><head><tfoot>
- <table><tr><td>
- <table><tr><tt>
- <thead><body><tr>
-------------------------------------------------------------------
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>
-------------------------------------------------------------------
21.How can you make a list that lists the items with bullets?
- <ol>
- <list>
- <ul>
- <dl>
-------------------------------------------------------------------
22.What is the correct HTML for making a checkbox?
- <checkbox>
- <input type="checkbox" />
- <input type="check" />
- <check>
-------------------------------------------------------------------
23.What is the correct HTML for making a text input field?
- <input type="textfield" />
- <textinput type="text" />
- <textfield>
- <input type="text" />
-------------------------------------------------------------------
24.What is the correct HTML for making a drop-down list?
- <input type="list" />
- <select>
- <list>
- <input type="dropdown" />
-------------------------------------------------------------------
25.What is the correct HTML for making a text area?
- <input type="textarea" />
- <input type="textbox" />
- <textarea>
-------------------------------------------------------------------
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>
-------------------------------------------------------------------
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 ?
- F
- B
- 15
Ans: F
-------------------------------------------------------------------
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?
- <table>
- <td>
- <tr>
Ans:<td>
-------------------------------------------------------------------
31.What tag adds a paragraph break after the text ?
- <PARAGRAPH>
- <P>
- <BR>
Ans:<P>
-------------------------------------------------------------------
32.All HTML tags are enclosed in what ?
- <>
- <?php and ?>
- # and #
- <!-- and -->
Ans: <>
Javascript Find Vowels in a String
Posted by Raj
Javascript Find Vowels in a String
In this article, I will explain how to find Vowels in a String and how to find total number of vowels in a string in JavaScript. I have written simple script for checking vowels in a string in JavaScript. I have used regular expression. For me, a regular expression is best.
Read more "Find Vowels in a String in Javascript"
In this article, I will explain how to find Vowels in a String and how to find total number of vowels in a string in JavaScript. I have written simple script for checking vowels in a string in JavaScript. I have used regular expression. For me, a regular expression is best.
Read more "Find Vowels in a String in Javascript"
Javascript:Disable Back Button in Browser (firefox,IE,..)
Posted by Raj
Javascript:Disable Back Button in Browser.
Disable Back Button in Browser(IE,firefox,Google Chrome, Opera, Safari, Internet Explorer) using javascript.
In this tutorial, I will explain how to disable the back button on FireFox's/IE browser.
this code will works for all web browsers such as Google Chrome, Opera, Safari, Internet Explorer etc.
Please check two methods to somewhat disable a browser's Back button.
<script language="javascript" type="text/javascript">
window.history.forward(1);
</script>
Disable Back Button in Browser(IE,firefox,Google Chrome, Opera, Safari, Internet Explorer) using javascript.
In this tutorial, I will explain how to disable the back button on FireFox's/IE browser.
this code will works for all web browsers such as Google Chrome, Opera, Safari, Internet Explorer etc.
Please check two methods to somewhat disable a browser's Back button.
<script language="javascript" type="text/javascript">
window.history.forward(1);
</script>
Align text in text box using HTML
Posted by Raj
Align text in text box
In this article,I will explain how to align text in text box using TextBox TextAlign Property
There is a property called "style" which you have to set style="text-align:right"
Example:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Align text in text box</title>
</head>
<body>
<input style="text-align:center" type="text" name="Center Align" value="Center Align" />
<input style="text-align:left" type="text" name="Left Align" value="Left Align" />
<input style="text-align:right" type="text" name="Right Align" value="Right Align"/>
</body>
</html>