Thursday, October 20, 2016

HTML INTERVIEW QUESTIONS AND ANSWERS

Good Day Friends!! In this Article we will learn HTML interview Questions and Answers. These interview questions will get knowledge how to use HTML and features of HTML and many more. Many WEB Developers uses HTML  to develop WEB Pages.I am writing from Basic to Advanced HTML interview Questions. Why should we wait Let's Start !!!!

1. What is HTML?

Ans: This is one of the Basic interview Question for HTML. HTML stand for Hyper Text Markup Language.It is also called as Universal Language which allows an individual using special code to create web page to  be viewed on the Internet. The main purpose of HTML is to design or create web page.

2. What is difference between HTML and HTML5?

Ans:  HTML5 is nothing more than upgraded version of HTML. HTML supports the innovative features such as 

  • video
  • Audio/mp3
  • date select function
  • place holder 
  • canvas,2D/3D Graphics
  •  Local SQL database added  so that no need to do external plugin like Flash player or other library elements.
  • Cleaner markup than earlier versions of HTML
  • new elements like <nav> and <time>
  • New form input types and attributes that will take the hassle out of scripting forms


3. Can You Write simplest HTML page?

Ans:   HTML Code:
<!Doctype.html>

<html>
<head>
<title> This is page Title</title>
</head>
<body>
WELCOME TO HTML INTERVIEW QUESTIONS
</body>
</html>

After writing this code in one of the Text Editor(notepad), Run this code in any Browser(Google Chrome or Mozilla Firefox) Then display :

WELCOME TO HTML INTERVIEW QUESTIONS

4. What is a DOCTYPE?

Ans: According to HTML standards, each HTML documentation  begins with DOCTYPE declaration that specifies which version of HTML the document uses. Today,many browsers use the document DOCTYPE declaration to determine whether to use more standards-oriented layout mode or to use a "quirks" layout mode that attempts to emulate older,buggy browsers.

5. How do you create links to sections within the same page?

Ans:  This first thing we must know to create link then we use <a> tag,with referencing through the use of the number(#) symbol.
For Example, you can have one line as
 <a href=?#topmost?>BACK TO TOP</a>
which would result in the words ?BACK TO TOP ? appearing on the webpage and links to a bookmark named topmost. you then create a separate tag command like 
<a name=?topmost?>somewhere on the top of the same webpage so that the user will be linked to that spot when he clicked  on ?BACK TO TOP?.

6. Could Older html files work on newer Browsers?

Ans:  YES, older html files are complained to the HTML standard. Most older files work on the newer browsers,though some features may not work.

7. How do you create Multicolored text in a webpage?

Ans:  To create text with different colors, fallow like this:
<font color=?color?>?</font>tags for every character that you want to apply a color.You can use this tag combination as many times as needed,surrounding a single character or words.

8. How do you create a link that will connect to another web page when clicked?

Ans: we have to use href tag to create hyperlinks or links that connect to another web page. The general format is: <a href=?site?>text</a>
In this format Replace ?site? with the actual page url that is supposed to be linked to when the text is clicked.

9. Can a single text link point to two different web pages?

Ans: NO, because <a> tag can accept only a single href attribute,and it can point to only a single web page.

10. Can you change the color of Bullets?

Ans: In fact, The bullet color always same as that of the first character in the list item. If you want to have a different color than text then you should write code just surround the <li> and the first character with a set of <font> tags with the color attribute set,the bullet color and the first character will be a different color from a text.
Example:
HTML CODE:  <ul>
                               <li><span>Item #1</span></li>
                               <li><span>Item #2</span></li>
                               <li><span>Item #3</span></li>
                               </ul>

Then write CSS code:  li
                                           { color:red;
                                            }

                                       li span{
                                            color:black;
                                           }

                                          
                          
11. What is marquee?

Ans: Marquee  allows you to put a scrolling text in a web page. If you  want scroll any text on your web page then write code like below:
<marquee>and</marquee> tags. that's it.
Ex: <marquee> HTML INTERVIEW QUESTIONS</marquee>

12. What is the difference between the directory and menu lists and the unodered  list?
Ans:  The main difference is that the directory and menu lists do not include attributes for changing the bullet style.




13. What happens if you open the external CSS file in a browser?

Ans: If you try to open the external CSS file in a browser, the browser can not open the file,because the file has a different extension. The only way to use an external CSS file is to reference it using<link/> tag within another html document.

14. How do i use an image instead of the standard submit button?

Ans: Use <input name=foo type=image SRC="http://utl.to/image.gif"> instead of the normal submit tag.There is no way to do this for the reset button.

15.How to change font Size?

Ans: HTML webpage font size can be varied according to the usage. Html tag for changing the size of  the font is <font size=4>

16. What is difference between <div> and <span> elements?

Ans: <div> tags are used to define section in document block wise whereas <span> tag is used to define section  in document inline.

17. How to create Frames?

Ans: Html Frames can be created by using <frame> tag within the <frameset>. Html <frame> tag define a particular window within frameset.

18. How do I make a form so it can be submitted by hitting ENTER?

Ans:  I am giving short answer here to create form, <input type=text> and no TEXTAREA,though it can have other form elements like checkboxes and radio buttons.






2 comments:

  1. Thank for posting HTML interview questions but I am expecting more interview questions please post

    ReplyDelete
  2. Thanks to Admin for Sharing such useful Information. I really like your Blog. Addition to your Story here I am Contributing 1 more Similar Story UI Developer Interview Questions for Experienced Professionals.

    ReplyDelete

High Paying Jobs after Learning Python

Everyone knows Python is one of the most demand Programming Language. It is a computer programming language to build web applications and sc...