FAQ, HTML & CSS

HTML, CSS, JS, Interview Question and answers

  1. What is HTTP ?
    1. HTTP is standards for Hyper Text Transfer Protocol.
  2. What does it mean Small lock on the status bar?
    1. It was a secured connection.
  3. Which is better, gif or jpg format, justify?
    1. Generally JPG is used for High resolution Images, such as artistic images but this takes lot of size in document.  The people who uses slow connections they may face the problems like slow loading but in GIF format it takes low size in 128depth and 256 depth colors and we can also use small animations in GIF format.
  4. Explain HTML Frames (Frames, iFrame, NoFrame, Target controls, Frame Attributes) ?
    1. Frames concept is used to load multiple pages in a single page. We can create frame page by horizontally and vertically if we want to use horizontal frames we use Where Iframe is used.
  5. What is the purpose of an HTML forms?
    1. To get few details from the user.
  6. How Many maximum colors does GIF has ?
    1. 256
  7. Write HTML code to create a INLINE Frame ?
    1. <iframe src=”demo_iframe.htm” width=”200″ height=”200″></iframe>
  8. Why is JavaScript not a programming language but script language? Justify
    1. Write JavaScript code to call multiple function with a single events ?
  9. Write HTML code to control the margins of page?
    1. <body  topmargin=”50”, leftmargin=”50”>
  1.                                                                i.      The above script makes 50px left and top margin
  2. Meta elements are typically used to specify page description, keywords, author of the document, last modified, and other metadata.
  3. The <meta> tag always goes inside the <head> element.
  4. The metadata can be used by browsers (how to display content or reload page), search engines (keywords), or other web services.
  5. The <meta> tag provides metadata about the HTML document. Metadata will not be displayed on the page, but will be machine parsable
  1. Write JavaScript code to call multiple functions with a single event ?
    1. onclick = “f1(); f2”
      or onclick = “funct()”
      function funct() {
      f1()
      f2();

      }
  2. Write JavaScript code to change an image when the users mouse points
    1. document.getElementById(“id”).src = “url Value”;
  3. What is META Tags ?
  1. How can i control the tab order in HTML Form elements?
    1.  <form>
      Field 1 (first tab selection):
      <input type=”text” name=”field1″ tabindex=1 /><br />
      Field 2 (third tab selection):
      <input type=”text” name=”field2″ tabindex=3 /><br />
      Field 3 (second tab selection):
      <input type=”text” name=”field3″ tabindex=2 /><br />
      </form>
  2. How do i get a pop up window to always stay on top using JavaScript ?
    1. <SCRIPT LANGAUGE=”JavaScript”><!–
      function newWindow(file,window) { msgWindow=open(file,window,’resizable=no,width=200,height=400′);
  3. Difference between the DIV and Tables ?
    1. Div generally separates a block of code. It can contain any number of elements, and is controlled by CSS. Think of a table as a block of cells cut into squares. Each cell in the table can be customized and shaped as needed. While both are acceptable for building websites, web developers will tell you that using CSS and divs is the way to go.
  4. Difference between the DIV and SPAN  and  Why Can’t I use only SPAN tag in Document ?
    1. The main difference between the DIV and Span tag is
  5. What is RIA (Rich Internet Application) ?
    1. A rich Internet application (RIA) is a Web application designed to deliver the same features and functions normally associated with deskop applications. RIAs generally split the processing across the Internet/network divide by locating the user interface and related activity and capability on the client side, and the data manipulation and operation on the application side.
  6. What is web 2.0 ?
    1. Web 2.0 is a concept that takes the network as a platform for information sharing, interoperability, user-centered design and collaboration on the World Wide Web. A Web 2.0 site allows users to interact and collaborate with each other in a social media dialogue as creators  of user-generated content in a virtual community, in contrast to websites where users are limited to the passive viewing of content that was created for them.
  7. What is Semantic Web?
    1. The Semantic Web is a collaborative movement lead by the World Wide Web Consortium (W3C). The standard promotes common data formats on the Web. By encouraging the inclusion of semantic content in web pages, the Semantic Web aims at converting the current web dominated by unstructured and semi-structured documents into a “web of data”. The Sematic Web stack builds on the W3C’s Resource Description Framework (RDF).
  8. What are the difference between DIV tag and SECTION element ?
    1. If you need the element simply to add styles to that area of the page, you should use theDIV element.
    2. If that area of the page has a specific meaning, for example it holds all your social media elements or it contains your blogroll, then you should use the SECTION element.

You Might Also Like