Walk In Drive : Bengalore , Hyderabad , Delhi , Chennai , Mumbai , Kolkata ->Books : Let Us C (Yashavant P.Kanetkar) , Quantitative Aptittude(RS Agrawal) , Verbal Reasoning(RS Agrawal) , SQL

HTML Interview Question And Answer

 HTML QUESTIONS AND ANSWERS
   
        
                          

HTML is basic web programming language for create webpages. The commonly asked interview questions and answers for HTML are given below.
1. What is HTML?
HTML stands for Hypertext Markup Language. It is s markup language for World Wide Web. HTML was developed by Tim Berners Lee during 1990’s. It consists of tags which are used to define content and web page formatting.
2. What is DOCTYPE?
DOCTYPE stands for Document Type Declarations. DOCTYPE is used to specify the web browsers that which types of documents(such as SGML or XML Documents) it will receive. <!DOCTYPE> is declared above the <html> tag.
3. What are the different versions of HTML?
HTML has many versions since it inceptions during 1990’s. HTML version are HTML, HTML+, HTML 2.0, HTML 3.2, HTML 4.0 and the
latest version HTML 5.
4. What are HTML Tags?
HTML tags similar to keywords which has specifies function, for example, for paragraph we can use HTML tag(<p>). HTML tags mostly comes in pair like, <p>, </p>.
5. What is HTML Element?
An HTML element is everything from starting to the ending of HTML tags. For example, <p> This is an HTML Element</p>, in this example, from starting tag to ending tag everything is HTML element and “This is an HTML Element” is Element Content.
6. What is HTML Attribute?
HTML attribute adds additional information to the HTML Elements. For example, <font size=”5” color=”green”>, here size and color are html attributes.
7. What is Hyperlinks?
Hyperlinks are used to navigate to new document with the help of text, image or with group of words.
8. Names some of the Web Browsers?
Some of the most famous web browsers are Google Chrome, Mozilla Firefox, Opera Browser, Safari and Netscape etc.
9. What is WWW?
WWW stands for World Wide Web. It is the inter-connection of all the links called as internet.
10. Which is the basic editor for HTML?
There are many editors for HTML like Notepad, Notepad++, EditPlus and WYSIWYG HTML editors etc.
11. What are the extension supported by HTML?
HTML supports both .htm and .html extension.
12. What are the web standards?
Web standards are standards specified for the internet or World Wide Web aspects for improving internet usability by all major OS and browsers.
13. What is the HTML tag for Break?
HTML tag for break is <br>. The HTML break tag is used to insert a line break.
14. How to create Tables using HTML?
HTML tables are created using tags <table>. To divide a HTML table, we have to use <tr>, which is table row. Likewise we <td> and <th>.
15. What are the tags use for Image?
HTML tag for images is <img>. We need to specify the image name and file location like <img src=”freshersemploy.png” alt=”Freshers Employ”>.
16. How to change font size?
HTML webpage font size can be varied according to the usage. HTML tag for changing the size of the font is <font size=”4”>.
17. How to open a link in new tab or window?
To open a link in new tab or window, we have to use the following html code:
<a href=”http://www.freshersemploy.com” target=”_blank”>Welcome to FreshersEmploy.com!</a>
18. How to change background color using HTML?
The back ground color of HTML can be change attribute bgcolor in the <body> tag.
Example:
19. What are the different types of Headings supported by HTML?
HTML headings are important to highlight the contents of the documents. HTML supports 6 heading starting from <h1> to <h6>.
20. What are List? How to create Lists?
HTML list(<ul> &<ol>) tag are used to create lists.
Example:
21. What are the types of HTML lists?
There are two types of HTML list, they are ordered list and unordered list.
22. What are HTML forms?
HTML forms takes data and sends the information to the servers. Simple HTML form is given below:

23. Explain HTML blocks?
HTML blocks can be defined by HTML tags like <span> and <div>.
What is the difference between <div> and <span> elements?
<div> tags are used to define section in document block wise whereas <span> tag is used to define section in documents inline.
24. How to change the size of image?
HTML image size can be change with the help of attributes as given the below example:
25. How to create frames?
HTML frames can be created by using <frame> tag within a frameset(<frameset>). HTML <frame> tag defines a particular window within frameset.
26. How to use JavaScript along with HTML?
JavaScript can be used along with HTML by including <script> tag in the HTML <body> tag.
Example:
27. What is the difference between get and post method?
HTML methods sends request using get an post method. GET post request data from the server and POST is used to submit data to the server.
28. What is iframes? Why is recommended to avoid iframes?
<Iframe> tags are used to embedded documents within current HTML document.
HTML 5 does not support <iframe> any more. So it is recommend not ti use iframe in HTML any more.
29. How to create emails links?
To HTML create email links using <a href>
Example:
30. How to redirect using HTML?
Using HTML, we can redirect users to different webpage.

No comments:

Post a Comment