Wednesday, 2 January 2013

Html Interview questions for frehsers

What is HTML?
HTML ( Hyper Text Markup Language) is the language which is used to create or make webpages or templates.

Make a simple html page ?
or
Layout of simple HTML page ?
<!Doctype HTML>
<HTML>
<HEAD>
<TITLE>Title of webpage </TITLE>
</HEAD>
<BODY>
The display content will be written here.
</BODY>
</HTML>  


Write various lists tags in HTML ?
<ul>Defines an unordered list.</ul>
<li>Defines a list item</li>
<ol>Defines an ordered list.</ol>
<select>Defines a selectable list item</select>

How can I include comments in HTML? 
<!-- This is one line commment -->  
<!--This is more than one 
line comment --> 
/*Multi line comment*/

What is a Hypertext link?
A hypertext link is a special tag that links one page to another page.

What is the difference between html and xhtml?
HTML stands for Hyper Text Markup Language 
                     and
XHTML stands for Extensible Hyper Text Markup Language  
XHTML is almost identical to HTML 4.01
XHTML is a stricter and cleaner version of HTML
XHTML is case sensitive
All the tags in xhtml must be closed 

How we can include CSS in HTML document ?
we can include css in html document in three ways:
1. Inline CSS
2. Internal Css which is included in head tags under <style type="text/css"><style>  tags
3.External Style sheet.

How we can include external CSS file in HTML document ? 
<html>
<head>
<link href="youfilelocation.css" type="text/css" rel="stylesheet" />
</head>
<body>
</body>
</html> 


Which Extension is used to save HTML document?
We can save html document with two types of extensions:
1 (.html) 
2 (.htm)
 
  
Explain anchot tag in html ?
The <a> tag defines an anchor. It can be used to create a link to another document by using the href attribute.


What are META TAGS in html ?

1. The <meta> tag provides metadata about the HTML document. Metadata will not be displayed on the page.
2. Meta elements are typically used to specify page description, keywords, author of the document, last modified, and other metadata.
3. The metadata can be used by browsers, search engines (keywords), or other web services.
4. It helps in better webpage ranking. 

What is CSS ?
CSS stands for (Cascading Style Sheets) . Which is used with html to give html document a better view.


Are HTML tags case sensitive?

No
 
How to Write bulleted Point in Html ? 
 <ul> 
      <li>Text 1</li> 
      <li>Text 2</li> 
      <li>Text 3</li> 
</ul> 
 
 
How to Create Drop Down list in Html ? 
 <select>
  <option value="car">car</option>
  <option value="bus">bus</option>
  <option value="train">train</option>
  <option value="bike">bike</option>
</select>

How to display numbered list in HTML?   

<ol>
<li>Text 1</li>
<li>Text 2</li>
</ol>

Can we use table inside another table?
Yes


Which tag is used to embed another document within the current HTML document ?
<iframe> </iframe>


How to use iframe tag ?
<iframe src="http://www.google.com">
</iframe> 



Which Tag specifies bold tag ? 
<b></b>  tag specifies bold tag.


How to input a button in html document ?
<input type="button" value="button" />  


Why we use <noscript> tag in html ?
The <noscript> tag is used to provide an alternate content for users that have disabled scripts in their browser or have a browser that doesn’t support client-side scripting.The message between <noscript></noscript> will be displayed on those browsers that don't support javascript or javascript is disabled.


How to include external Javascript file in Html ?
<script type="text/javascript" src="file location.js"></script> 


How we can write Javascript in html document ?
We  can use Javascript in html document inside <script></script> tag.


    

 

      

1 comment:

  1. Dear Resahab Kapoor,


    Apka hindi tutorials padhakar bahut achha laga , Ap hindi or urdu jagat ke baccho ke liye bahut hi acche kaam kr rhe hain. maine apke saare tutorial dekhe or kaafi faydemand laga. meri apse ek gujarish hai ki aap ek pura ka pura form validation ka form banakar form validation or form submition script tutorial bhi upload karein to hamare liye kafi faydemand hoga, iske sath custom select box , custom scroll bar, custom radio or custom checkbox, custom checkbox in a select box, customization slider etc. pe full tutorial banaye ye ham logo ki apse gujarish hai ..



    Thanks
    Regards
    Angad kushwaha

    ReplyDelete