sivasoft interview questions

sivasoft interview questions

Html Interview Questions

1.What is HTML?

A.HTML, or HyperText Markup Language, is a Universal language which allows an individual using special code to create web pages to be viewed on the Internet (or) HTML (Hyper Text Markup Language) is the language used to write Web pages.

2.What is a tag?

A.HTML markup tags are usually called HTML tags 1.HTML tags are keywords (tag names) surrounded by angle brackets like <html> 2.HTML tags normally come in pairs like <b> and </b> 3.The first tag in a pair is the start tag, the second tag is the end tag 4.The end tag is written like the start tag, with a forward slash before the tag name 5.Start and end tags are also called opening tags and closing tags

3.What is a DOCTYPE?

A.According to HTML standards, each HTML document begins with a DOCTYPE declaration that specifies which version of HTML the document uses.

4.Do I have to memorize a bunch of tags?

A.No. Most programs that help you write HTML code already know most tags, and create them when you press a button. But you should understand what a tag is, and how it works. That way you can correct errors in your page more easily.

5.How do I specify page breaks in HTML?

A.There is no way in standard HTML to specify where page breaks will occur when printing a page. HTML was designed to be a device-independent structural definition language, and page breaks depend on things like the fonts and paper size that the person viewing the page is using.

6.The colors on my page look different when viewed on a Mac and a PC.

A.The Mac and the PC use slightly different color palettes. There is a 216 "browser safe" color palette that both platforms support; the Microsoft color picker page has some good information and links to other resources about this. In addition, the two platforms use different gamma (brightness) values, so a graphic that looks fine on the Mac may look too dark on the PC. The only way to address this problem is to tweak the brightness of your image so that it looks acceptable on both platforms.

7.My page looks good on one browser, but not on another.

A.There are slight differences between browsers, such as Netscape Navigator and Microsoft Internet Explorer, in areas such as page margins. The only real answer is to use standard HTML tags whenever possible, and view your pages in multiple browsers to see how they look.

8.iframe in HTML is used to display a web page within a web page.

A.True

9.An HTML file written in notepad can be saved with an extension

A..html

10.The href attribute in the link tag specifies the

A.Destination of a link.

11.What is cell padding?

A.Used to separate cell walls from their contents.

12.What are meta tags used for?

A. To store information usually relevant to browsers and search engines.

13.What is difference between HTML and XHTML?

A.The differences between HTML and XHTML are: HTML is application of Standard Generalized Markup Language(SGML) whereas XML is application of Extensible Markup Language(XML). HTML is a static Web Page whereas XHTML is dynamic Web Page. HTML allows programmer to perform changes in the tags and use attribute minimization whereas XHTML when user need a new markup tag then user can define it in this. HTML is about displaying information whereas XHTML is about describing the informatio

14.What is the correct HTML for inserting a background image?

A.<body background="background.gif">

15.What is the correct HTML for inserting an image?

A.<img src="image.gif" alt="MyImage">

16.What is the correct HTML for making a text area?

A.<textarea>------------------------</textarea>

17.What is the correct HTML for making a drop-down list?

A.<select>------------------------</select>

18.What is the correct HTML for making a text input field?

A.<input type="text">

19.What is the correct HTML for making a checkbox?

A.<input type="checkbox">

20.In HTML, inline elements are normally displayed without starting a new line.

A.True

21.How can you make a bulleted list?

A.<ul> <li>-----</li> <li>-----</li> <li>-----</li> </ul>

22.How can you make a numbered list?

A.<ol> <li>-----</li> <li>-----</li> <li>-----</li> </ol>

23.In HTML, inline elements are normally displayed without starting a new line.

A.True

24.How can you open a link in a new tab/browser window?

A.<a href="url" target="_blank">

25.How can you create an e-mail link?

A.<a href="mailto:xxx@yyy">

26.What is the correct HTML for creating a hyperlink?

A.<a href="http://www.sivasoft.in">SivaSoft</a>

27.Choose the correct HTML tag to make a text italic

A.<i>--------</i>

28.Write the correct HTML tag to make a text bold

A.<b>--------</b>

29.What is the correct HTML tag for inserting a line break?

A.<br>

30.Write the correct HTML tag for the largest heading

A.<h1>--------</h2>

31.Who is making the Web standards?

A.The World Wide Web Consortium

32.What does HTML stand for?

A.Hyper Text Markup Language

33. Why everyone using to write HTML?

A.Everyone has a different preference for which tool works best for them. Keep in mind that typically the less HTML the tool requires you to know, the worse the output of the HTML. In other words, you can always do it better by hand if you take the time to learn a little HTML.

34. Can I nest tables within tables?

A.Yes, a table can be embedded inside a cell in another table.

35. Do I have to memorize a bunch of tags?

A.No. Most programs that help you write HTML code already know most tags, and create them when you press a button. But you should understand what a tag is, and how it works. That way you can correct errors in your page more easily.

36.Can I have two or more actions in the same form?

A.No. A form must have exactly one action. However, the server-side (e.g., CGI) program that processes your form submissions can perform any number of tasks (e.g., updating a database, sending email, logging a transaction) in response to a single form submission.

37. How can I use forms for pull-down navigation menus?

A.There is no way to do this in HTML only; something else must process the form. JavaScript processing will work only for readers with JavaScript-enabled browsers. CGI and other server-side processing is reliable for human readers, but search engines have problems following any form-based navigation.

38. Why is there extra space before or after my table?

A.This is often caused by invalid HTML syntax. Specifically, it is often caused by loose content within the table (i.e., content that is not inside a TD or TH element). There is no standard way to handle loose content within a table. Some browsers display all loose content before or after the table. When the loose content contains only multiple line breaks or empty paragraphs, then these browsers will display all this empty space before or after the table itself. The solution is to fix the HTML syntax errors. All content within a table must be within a TD or TH element.

39. How do I change the title of a framed document?

A.The title displayed is the title of the frameset document rather than the titles of any of the pages within frames. To change the title displayed, link to a new frameset document using TARGET="_top" (replacing the entire frameset).

40. How do I specify a specific combination of frames instead of the default document?

A.This is unfortunately not possible. When you navigate through a site using frames, the URL will not change as the documents in the individual frames change. This means that there is no way to indicate the combination of documents that make up the current state of the frameset. The author can provide multiple frameset documents, one for each combination of frame content. These frameset documents can be generated automatically, perhaps being created on the fly by a CGI program. Rather than linking to individual content documents, the author can link to these separate frameset documents using TARGET="_top". Thus, the URL of the current frameset document will always specify the combination of frames being displayed, which allows links, bookmarks, etc. to function normally.

41. How can we specify page breaks in HTML?

A.There is no way in standard HTML to specify where page breaks will occur when printing a page. HTML was designed to be a device-independent structural definition language, and page breaks depend on things like the fonts and paper size that the person viewing the page is using.

42. How can we put sounds for older versions of Internet Explorer?

A/b>.For older versions of Internet Explorer, this technique was used <BG SOUND="sound.ext">.

43. Can we use any HTML in the box?

A.Yes. Any HTML tag that your browser supports will work in the box. So you can carry tags from chapters to chapters and mix and match.

44.How do you create tabs or indents in Web pages?

A.There was a tag proposed for HTML 3.0, but it was never adopted by any major browser and the draft specification has now expired. You can simulate a tab or indent in various ways, including using a transparent GIF, but none are quite as satisfactory or widely supported as an official tag would be.

45.What are some of the common lists that can be used when designing a page?

A.We can insert any or a combination of the following list types: - ordered list , unordered list , definition list , menu list and directory list

46.Do all character entities display properly on all systems?

A.No, there are some character entities that cannot be displayed when the operating system that the browser is running on does not support the characters. When that happens, these characters are displayed as boxes.

47.Can attribute values be set to anything or are there specific values that they accept?

A. Some attribute values can be set to only predefined values. Other attributes can accept any numerical value that represents the number of pixels for a size.

48.How do you insert a copyright symbol on a browser page?

A.To insert the copyright symbol, you need to type © or & #169; in an HTML file.

49.Is there any way to keep list elements straight in an html file?

A.By using indents, you can keep the list elements straight. If you indent each subnested list in further than the parent list that contains it, you can at a glance determine the various lists and the elements that it contains.

50.Do older html files work on newer browsers?

A.Yes, older html files are compliant to the HTML standard. Most older files work on the newer browsers, though some features may not work.

51.Why are there both numerical and named character entity values?

A.The numerical values are taken from the ASCII values for the various characters, but these can be difficult to remember. Because of this, named character entity values were created to make it easier for web page designers to use.

52.What will happen if you overlap sets of tags?

A.If two sets of html tags are overlapped, only the first tag will be recognized. You will recognize this problem when the text does not display properly on the browser screen.

53. What is the advantage of grouping several checkboxes together?

A.Although checkboxes don't affect one another, grouping checkboxes together helps to organize them. Checkbox buttons can have their own name and do not need to belong to a group. A single web page can have many different groups of checkboxes

54.What if there is no text between the tags or if a text was omitted by mistake? Will it affect the display of the html file?

A.If there is no text between the tags, then there is nothing to format, so no formatting will appear. Some tags, especially tags without a closing tag like the <img> tag, do not require any text between them.

55.What are the limits of the text field size?

A.The default size for a text field is around 13 characters, but if you include the size attribute, you can set the size value to be as low as 1. The maximum size value will be determined by the browser width. If the size attribute is set to 0, the size will be set to the default size of 13 characters.

56.What is the relationship between the border and rule attributes?

A.Default cell borders, with a thickness of 1 pixel, are automatically added between cells if the border attribute is set to a nonzero value. Likewise, If the border attribute is not included, a default 1-pixel border appears if the rules attribute is added to the <table> tag.

57.What is a marquee?

A.A marquee allows you to put a scrolling text in a web page. To do this, place whatever text you want to appear scrolling within the <marquee> and </marquee> tags.

58.Are there instances where text will appear outside of the browser?

A.By default, the text is wrapped to appear within the browser window. However, if the text is part of a table cell with a defined width, the text could extend beyond the browser window.

59.Can I specify fractional weight values such as 670 or 973 for font weight?

A.Implementation largely depends on the browser, but the standard does not support fractional weight values. Acceptable values must end with two zeroes.

60.What is the hierarchy that is being followed when it comes to style sheets?

A.If a single selector includes three different style definitions, the definition that is closest to the actual tag takes precedence. Inline style takes priority over embedded style sheets, which takes priority over external style sheets.

61.What happens if the number of values in the rows or cols attribute doesnt add up to 100 percent?

A.The browser sizes the frames relative to the total sum of the values. If the cols attribute is set to 100%, 200%, the browser displays two vertical frames with the second being twice as big as the first.

62.When is it appropriate to use frames?

A.Frames can make navigating a site much easier. If the main links to the site are located in a frame that appears at the top or along the edge of the browser, the content for those links can be displayed in the remainder of the browser window.

63.Can we put markup in ALT text?

A.No. Character entities (©, &#nnn; and such) are permitted, though. If you want to know how to write good ALT texts without markup, please see Alan Flavells essay on choosing ALT texts.

64.Define URL?

A.Uniform Resource Locator; an address that specifies the location of a file on the Internet

65.Explain meta tag in HTML ?

A. Metadata is data (information) about data. The tag provides metadata about the HTML document. Metadata will not be displayed on the page, but will be machine parsable. Meta elements are typically used to specify page description, keywords, author of the document, last modified, and other metadata. The tag always goes inside the element. The metadata can be used by browsers (how to display content or reload page), search engines (keywords), or other web services.

66.What is the importance of Doctype in HTML?

A.Doctype tag is not a HTML tag, it is just an instruction that is passed to the web browser to check for the information that is being provided by the markup language in which the page is written. Doctype is sometimes referred as Document type definition (DTD) that describes some rules that has to be followed while writing the markupt language so to make the web browser understand the language and the content correctly. Doctype is very important to be placed in the beginning of the HTML and before the <html> tag to allow easy rendering of the pages that are used.</html>

67.Why it is important to set the meta information?

A.Metadata is the data about the data or the information about the data. There is a tag that is being provided for the HTML document. This information won't be displayed anywhere and will not be visible to the user. It will be parsable by the machine which will parse it according to the requirement. It consists of the elements that are related to the page description, keywords, document related element. The tag that is being used resides in the section in HTML. The meta information is being used by the web browser or by the search engines to rank and let the user find the pages easily.

68.What is the purpose of iframe in HTML?

A.Iframe is called as inline frame that places one HTML document in a frame. It is different from the object element as the inline frame can be made in the target frame. The target frame consists of the links that is defined by other elements used in the web page. Iframe is used to focus on printing or viewing of the source. Iframe can be used by the user in those browser that supports it. If they have used iframe also then the incompatible browser wont display the actual but display of the alternative text will take place. The content of the iframe is being written in between <iframe>---</iframe> .

69.How can tables be used inside a form?

A.A form can consist of the table and its properties to display it on the web page. The form is placed with the
tag that includes the data of the table. This can also be used to position the form in relation to the other content. The table will be added within the form.

70.Differentiate HTML and HTML Extension?

A.The extension which is used for saving HTML file is .html or .htm. In our example .htm is used. It is a past habit when only three letters are allowed for the software in file extensions. In the new versions of software, we can perfectly use .html extension.

71. How an index document is defined?

A.Many times we use index.htm document as it is standard for host-server to look and deploy document. It is the default document which is displayed on the web.

72.How a HEAD is defined in HTML?

A.In HTML, HEAD is placed before body and it is used to show general information or unordered collection about HTML document. In HTML, it is the first tag which helps to give title for the page.

73.Define polymorphism?

A. In object oriented programming polymorphism is nothing but objects ability to take form objects of different classes.

74.Differentiate component and container?

A.Component is an object like a scroll bar or button that is visually presented on screen window whereas a container is window-like component which has different components. Each component has unique container that contains it directly.

75.What are the different graphic types?

A.In general, there are two different types of graphics, they are: a. Raster Graphics pixels and b.Vector Graphics lines and curves

76.Define Gradient and how to apply it?

A.Mixing two or more colors are known as Gradient.

77.Define DHTML?

A.The combination of HTML, JavaScript, XHTML, CSS and Jquery is known as DHTML. It is used for creating interactive and dynamic web pages.

78. What are some of the online tools and resources you use when you have a problem? Where do you go to ask questions?

A.This question really just looks for how resourceful the candidate is, it also reflects on their problem solving process and may lead you to ask more questions.

79. What is web a application?

A.A web application is an application utilizing web and [web] browser technologies to accomplish one or more tasks over a network, typically through a [web] browser.

80.Define what web standards mean to you? How do you implement web standards?

A.Standardized specifications for Internet markup languages such as HTML, CSS, and XML. Formulated by the W3 organisation, these standards enable people to create websites that will work in almost any browser or internet-enabled device, instead of being specific to certain versions of Internet Explorer or Netscape Navigator.