1. Define HTML5?
The new standard for HTML, HTML DOM and XHTML is HTML5.HTML5 is work in progress and the modern browsers have support to HTML5.
2. Does HTML is case sensitive?
No, it is not case sensitive.
3. What are the advantages of HTML?
The main advantages of HTML are as follows:
• HTML is the widely used language.
• Almost all the browsers support HTML.
• HTML is very simple and usage, learning is easy.
• You need not purchase additional software as it is in windows by default.
• The syntax of HTML and XML is similar and XML is widely used for storing data.
• Even the beginners feel easy to code the program.
4. What are the disadvantages of HTML?
• HTML is used to develop plain and static pages. HTML suits perfectly when dynamic pages are required.
• A lengthy code is written to create a simple HTML page.
• The security features are not good in HTML.
• If you write a length code to develop web pages then the code may result in complexity.
5. Define HTML?
The language which is used for describing web pages is known as HTML.
• The abbreviation of HTML is Hyper Text Markup Language.
• HTML is a markup language but not a programming language.
• A set of mark up tags is known as markup language.
• To describe web pages, markup tags are used by HTML.
6. Differentiate HTML and HTML Extension?
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.
7. Define tag?
Browser is told what to do by the tags in the HTML language. While writing an HTML page, the tags are entered for many reasons such as to show graphic, to change the text appearance or to link to other page.
8. Define HTML tag?
In the HTML language, HTML tag is a syntactical construct that abbreviates particular instruction to be executed when the web browser loads HTML script. It is like a function in C++, method in Java, routine in FORTRAN or a procedure in Pascal.
9. Define Hypertext link?
The special tag linking one page to other resource or a page is known as hypertext link. If you click the link then the browser jumps to the destination link.
10. Differentiate HTML form methods GET and POST?
Which method is used by the client to send information to web server is specified by the method parameter.
• POST – post_args
• GET – httpargs
11. How an index document is defined?
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.
12. How a HEAD is defined in HTML?
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.
13. How a body is defined in HTML?
In HTML, body specifies all the contents in the document and it contains colors, images, text, graphics, etc.
14. How to keep sound for older version internet explorer?
is the technique used for older versions of internet explorers
15. Can HTML is used in box?
Yes. Any HTML tag that is supported by the browser works in the box.
16. Define polymorphism?
In object oriented programming polymorphism is nothing but objects ability to take form objects of different classes.
17. Differentiate component and container?
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.
18. Differentiate constructor and method?
The member function of a class which is used for creating objects of that particular class is known as a constructor. It has the same name of a class without any return type. New operator is used to invoke it.
An ordinary member function of a class is known as a method. It has a return type with its own name. Dot operator is used to invoke it.
19. What are the different graphic types?
In general, there are two different types of graphics, they are:
• Raster Graphics – pixels
• Vector Graphics – lines and curves
20. Define Gradient and how to apply it?
Mixing two or more colors are known as Gradient.
21. Define DHTML?
The combination of HTML, JavaScript, XHTML, CSS and Jquery is known as DHTML.
It is used for creating interactive and dynamic web pages.
22. What is the difference between HTML and DHTML?
HTML:
• The full form of HTML is hyper text markup language.
• HTML is a markup language but not programming.
• It does not allow any features.
• HTML documents describe web pages which include HTML tags and plain text.
DHTML:
• The full form of DHTML is dynamic hyper text markup language.
• Few extra features are permitted by DHTML.
• DHTML sites are going fast on the client based technologies.
• The art of combining HTML, HTML DOM and JavaScript is known as DHTML.
23. Define XML?
• The abbreviation of XML is extensible markup language.
• To store and transport data, XML is used.
24. Define CSS?
The abbreviation of CSS is Cascading Style Sheets. To solve problem, styles are added to HTML 4.0 and these styles define how the HTML elements are showed. Lot of work is saved by External Style Sheets and is stored in CSS files.
25.Do all HTML tags come in pair?
No, there are single HTML tags that does not need a closing tag. Examples are the <img> tag and <br> tags.
26.What are some of the common lists that can be used when designing a page?
You can insert any or a combination of the following list types:
- ordered list
- unordered list
- definition list
- menu list
- directory list
Each of this list types makes use of a different tag set to compose
27.How do you insert a comment in html?
Comments in html begins with “<!–”nd ends with “–>”.
28.Do all character entities display properly on all systems?
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.
29.What is image map?
Image map lets you link to many different web pages using a single image. You can define shapes in images that you want to make part of an image mapping.
30.What is the advantage of collapsing white space?
White spaces are blank sequence of space characters, which is actually treated as a single space character in html. Because the browser collapses multiple space into a single space, you can indent lines of text without worrying about multiple spaces. This enables you to organize the html code into a much more readable format.
31.Can attribute values be set to anything or are there specific values that they accept?
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.
32.How do you insert a copyright symbol on a browser page?
To insert the copyright symbol, you need to type © or & #169; in an HTML file.
33.How do you create links to sections within the same page?
Links can be created using the <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”.
34.Is there any way to keep list elements straight in an html file?
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.
35.If you see a web address on a magazine, to which web page does it point?
Every web page on the web can have a separate web address. Most of these addresses are relative to the top-most web page. The published web address that appears within magazines typically points this top-most page. From this top level page, you can access all other pages within the web site.
36.What is the use of using alternative text in image mapping?
When you use image maps, it can easily become confusing and difficult to determine which hotspots corresponds with which links. Using alternative text lets you put a descriptive text on each hotspot link.
37.Do older html files work on newer browsers?
Yes, older html files are compliant to the HTML standard. Most older files work on the newer browsers, though some features may not work.
38.Does a hyperlink apply to text only?
No, hyperlinks can be used on text as well as images. That means you can convert an image into a link that will allow user to link to another page when clicked. Just surround the image within the <a href=” “>…</a> tag combinations.
39.If the user’s operating system does not support the needed character, how can the symbol be represented?
In cases wherein their operating system does not support a particular character, it is still possible to display that character by showing it as an image instead.
40.How do you change the number type in the middle of a list?
The <li> tag includes two attributes – type and value. The type attribute can be used to change the numbering type for any list item. The value attribute can change the number index.
41.What are style sheets?
Style sheets enable you to build consistent, transportable, and well-defined style templates. These templates can be linked to several different web pages, making it easy to maintain and change the look and feel of all the web pages within a site.
42.What bullet types are available?
With ordered lists, you can select to use a number of different list types including alphabetical and Roman numerals. The type attribute for unordered lists can be set to disc, square, or circle.
43.How do you create multicolored text in a webpage?
To create text with different colors, use the <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 an entire word.
44. Why are there both numerical and named character entity values?
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.
45.What is the advantage of grouping several checkboxes together?
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.
46.What will happen if you overlap sets of tags?
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.
47.What are applets?
Applets are small programs that can be embedded within web pages to perform some specific functionality, such as computations, animations, and information processing. Applets are written using the Java language.
48.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?
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.
49.Is it possible to set specific colors for table borders?
You can specify a border color using style sheets, but the colors for a table that does not use style sheets will be the same as the text color.
50.How do you create a link that will connect to another web page when clicked?
To create hyperlinks, or links that connect to another web page, use the href tag. The general format for this is: <a href=”site”>text</a>
Replace “site” with the actual page url that is supposed to be linked to when the text is clicked.
51.What other ways can be used to align images and wrap text?
Tables can be used to position text and images. Another useful way to wrap text around an image is to use style sheets.
52.Can a single text link point to two different web pages?
No. The <a> tag can accept only a single href attribute, and it can point to only a single web page.
53. What is the difference between the directory and menu lists and the unordered list?
The key differences is that the directory and menu lists do not include attributes for changing the bullet style.
54.Can you change the color of bullets?
The bullet color is always the same as that of the first character in the list litem. If you 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 the text.
55.What are the limits of the text field size?
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.Do <th> tags always need to come at the start of a row or column?
Any <tr> tag can be changed to a <th> tag. This causes the text contained within the <th> tag to be displayed as bold in the browser. Although <th> tags are mainly used for headings, they do not need to be used exclusively for headings.
57.What is the relationship between the border and rule attributes?
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.
58.What is a marquee?
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.
59.Are <br> tags the only way to separate sections of text?
No. The <br> tag is only one way to separate lines of text. Other tags, like the <p> tag and <blockquote> tag, also separate sections of text.
60.Are there instances where text will appear outside of the browser?
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.
61.How are active links different from normal links?
The default color for normal and active links is blue. Some browsers recognize an active link when the mouse cursor is placed over that link; others recognize active links when the link has the focus. Those that don’t have a mouse cursor over that link is considered a normal link.
62.Do style sheets limit the number of new style definitions that can be included within the brackets?
Style sheets do not limit the number of style definitions that can be included within the brackets for a given selector. Every new style definition, however, must be separated from the others by a semicolon symbol.
63.Can I specify fractional weight values such as 670 or 973 for font weight?
Implementation largely depends on the browser, but the standard does not support fractional weight values. Acceptable values must end with two zeroes.
64.What is the hierarchy that is being followed when it comes to style sheets?
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.
65.Can several selectors with class names be grouped together?
You can define several selectors with the same style definition by separating them with commas. This same technique also works for selectors with class names.
66.What happens if you open the external CSS file in a browser?
If you try to open the external CSS file in a browser, the browser cannot 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.
67.What happens if the list-style-type property is used on a non-list element like a paragraph?
If the list-style-type property is used on a non-list element like a paragraph, the property will be ignored and have no effect on the paragraph.
68.When is it appropriate to use frames?
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.
69.What happens if the number of values in the rows or cols attribute doesn’t add up to 100 percent?
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.
70.What is difference between HTML and XHTML?
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 information
71.How many types CSS can be include in HTML?
There are three ways to include the CSS with HTML:
Inline CSS: it is used when only small context is to be styled.
To use inline styles add the style attribute in the relevant tag.
External Style Sheet: is used when the style is applied to many pages.
Each page must link to the style sheet using the <link> tag. The <link> tag goes inside the head section:
<head>
<link rel=”stylesheet” type=”text/css” href=”mystyle.css” />
</head>
Internal Style Sheet: is used when a single document has a unique style.
Internal styles sheet needs to put in the head section of an HTML page, by using the <style> tag, like this:
<head>
<style type=”text/css”>
hr {color:sienna}
p {margin-left:20px}
body {background-image:url(“images/back40.gif”)}
</style>
</head>
72.What are logical and physical tags in HTML?
Logical tags are used to tell the meaning of the enclosed text. The example of the logical tag is <strong> </strong> tag. When we enclosed text in strong tag then it tell the browser that enclosed text is more important than other text.
Physical text are used to tell the browser that how to display the text enclosed in the physical tag.
Some example of the physical tags are: <b> , <big> , <i>
73.Does HTML support Javascripts?
Yes, HTML supports JavaScripts. We can use JavaScript anywhere in the HTML Coding. Mainly there are four sections where we can add JavaScript in HTML.
Head Section: we can add JavaScript in Head section of HTML.
<head>…..Javascript…. </head>
Body Section: <body>….. Javascript…</body>
Head and Body both: we can add Javascript in both head and body section.
<body….Javascript…</body> and <head>…..Javascript…. </head>
External File: script in and external file and then include in <head> ….. </head> section.
74.Explain marquee tag.
Marquee tag: Marquee tag is used when we want that some text or content move in the web page whether horizontally or vertically.
Syntax of Marquee tag: <marquee>move text</marquee>
Attribute of Marquee tag are: bgcolor, direction, height, width, vspace etc.
75.How do I add midi music to my web page?
We can add midi Music in our HTML web page using following tag:
<bgsound src=”music.mid” loop=”1″>
Attribute LOOP= 1: shows that music.mid is played only for one time. We can also set the value of loop to infinite. This tag is supported by Netscape and Internet Explorer.
Example: <embed src=”canyon.mid” Autostart=TRUE Width=145 Height=60 Loop=true>
76.What are new Media Elements in HTML5?
Following are the New Media Elements are present in HTML5:
<audio> tag: for playing audio.
<video> tag: for playing video.
<source> tag: For media resources for media elements.
<embed> tag: For embedded content,
<track> tag: For text tracks used in media players
77.Explain various HTML list tags.
In HTML we can list the element in two ways:
Ordered list: in this list item are marked with numbers.
Syntax: <ol>
<li> first item </li>
<li>second item </li> </ol>
Display as: 1. First item
2. Second item.
Unordered Lists: in this item are marked with bullets.
Syntax: <ul>
<li> first item </li>
<li>second item </li> </ul>
Display as:
-First item
-Second item.
78.Explain HTML background.
There are two types of background in HTML:
Colored Background: in this the background of the html is colored.
The Syntax is: <body bgcolor = “red”>
The value of the bgcolor can be set in three ways by hexadecimal number, an RGB value and Color name.
Example: <body bgcolor = “black”>
<body bgcolor = “rgb(0,0,0)”>
<body bgcolor = “#000000”>
Image Background: in this we set the background of the website by an image. Syntax used for this is : <body background=”study.gif”>
79.What is CSS?
CSS stands for Cascading Style Sheets. By using CSS with HTML we can change the look of the web page by changing the font size and color of the font. CSS plays an important role in building the website. Well written CSS file can be used to change the presentation of each web page. By including only one CSS file. It gives web site developer and user more control over the web pages.
What is difference between HTML and HTML5?
80.The differences between HTML and HTML5 are:
Document of HTML is very large as compare to the HTML5.
Audio and Video tags are not present in HTML whereas HTML5 contains audio and video tags.
Vector technology is not integral part of HTML whereas HTML5 Vector technology is the integral part of it.
HTML supported by all old browsers whereas HTML5 is supported by new browser.
In HTML web sockets are not available whereas in HTML5 Full duplex communication channel is present.
81.How to insert Javascript in HTML?
We can insert JavaScript in HTML using <Script tag>. JavaScript can be enclosed in <script type = text/javascript> and ending with </script>.
Example:
<html>
<body>
<script type=”text/javascript”>
…JavaScript….
</script>
</body>
</html>
82.What is the Use of SPAN in HTML and give one example?
SPAN: Used for the following things:
Highlight the any color text
For adding colored text
For adding background image to text.
Example:
<p>
<span style=”color:#000000;”>
In this page we use span.
</span>
</p>
83. What’s new HTML 5 DocType and Charset?
Since HTML 5 is now not a subset of SGML, its DocType is simplified as follows:
<!doctype html>
And HTML 5 uses UTF-8 encoding as follows:
<meta charset=”UTF-8″>
84. How can we embed Audio in HTML 5?
HTML 5 comes with a standard way of embedding audio files. Supported audio formats are MP3, Wav and Ogg.
<audio controls>
<source src=”jamshed.mp3″ type=”audio/mpeg”>
Your browser does’nt support audio embedding feature.
</audio>
85. How can we embed Video in HTML 5?
The same as for audio, HTML 5 defines a standard way to embed video files. Supported video formats are MP4, WebM and Ogg.
<video width=”450″ height=”340″ controls>
<source src=”jamshed.mp4″ type=”video/mp4″>
Your browser does’nt support video embedding feature.
</video>
86. What are the new media elements in HTML 5 other than audio and video?
HTML 5 has strong support for media. Other than audio and video tags, it comes with the following tags:
<embed> acts as a container for external applications.
<track> defines text track for media.
<source> is helpful for multiple media sources for audio and video.
87. What is the usage of a canvas element in HTML 5?
<canvas> is an element in HTML5 that we can use to draw graphics using scripting (that is most probably JavaScript).
This element behaves like a container for graphics and the rest will be done by scripting. We can draw images, graphs and a bit of animations etcetera using a <canvas> element.
<canvas id=”canvas1″ width=”300″ height=”100″>
</canvas>
88. What are the various types of storage in HTML 5?
HTML 5 has the capability to store data locally. Previously it was done using cookies.
The exciting thing about this storage is that it’s fast as well as secure. There are two different objects that can be used to store data.
localStorage object stores data for a longer period of time even if the browser is closed.sessionStorage object stores data for a specific session.
89.How a HEAD is defined in HTML?
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.
90. How a body is defined in HTML?
In HTML, body specifies all the contents in the document and it contains colors, images, text, graphics, etc.
91. How to keep sound for older version internet explorer?
is the technique used for older versions of internet explorers.
92. Can HTML is used in box?
Yes. Any HTML tag that is supported by the browser works in the box.
93. Define polymorphism?
In object oriented programming polymorphism is nothing but objects ability to take form objects of different classes.
94. Differentiate component and container?
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.
95. Differentiate constructor and method?
The member function of a class which is used for creating objects of that particular class is known as a constructor. It has the same name of a class without any return type. New operator is used to invoke it.
An ordinary member function of a class is known as a method. It has a return type with its own name. Dot operator is used to invoke it.
96. What are the different graphic types?
In general, there are two different types of graphics, they are:
• Raster Graphics – pixels
• Vector Graphics – lines and curves
97. Define Gradient and how to apply it?
Mixing two or more colors are known as Gradient.
98.What is image map?
Image map lets you link to many different web pages using a single image. You can define shapes in images that you want to make part of an image mapping.
99. What is the advantage of collapsing white space?
White spaces are blank sequence of space characters, which is actually treated as a single space character in html. Because the browser collapses multiple space into a single space, you can indent lines of text without worrying about multiple spaces. This enables you to organize the html code into a much more readable format.
100.Can attribute values be set to anything or are there specific values that they accept?
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.
101.How do you insert a copyright symbol on a browser page?
To insert the copyright symbol, you need to type © or & #169; in an HTML file.
102.If you see a web address on a magazine, to which web page does it point?
Every web page on the web can have a separate web address. Most of these addresses are relative to the top-most web page. The published web address that appears within magazines typically points this top-most page. From this top level page, you can access all other pages within the web site.
103.What is the use of using alternative text in image mapping?
When you use image maps, it can easily become confusing and difficult to determine which hotspots corresponds with which links. Using alternative text lets you put a descriptive text on each hotspot link.
The new standard for HTML, HTML DOM and XHTML is HTML5.HTML5 is work in progress and the modern browsers have support to HTML5.
2. Does HTML is case sensitive?
No, it is not case sensitive.
3. What are the advantages of HTML?
The main advantages of HTML are as follows:
• HTML is the widely used language.
• Almost all the browsers support HTML.
• HTML is very simple and usage, learning is easy.
• You need not purchase additional software as it is in windows by default.
• The syntax of HTML and XML is similar and XML is widely used for storing data.
• Even the beginners feel easy to code the program.
4. What are the disadvantages of HTML?
• HTML is used to develop plain and static pages. HTML suits perfectly when dynamic pages are required.
• A lengthy code is written to create a simple HTML page.
• The security features are not good in HTML.
• If you write a length code to develop web pages then the code may result in complexity.
5. Define HTML?
The language which is used for describing web pages is known as HTML.
• The abbreviation of HTML is Hyper Text Markup Language.
• HTML is a markup language but not a programming language.
• A set of mark up tags is known as markup language.
• To describe web pages, markup tags are used by HTML.
6. Differentiate HTML and HTML Extension?
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.
7. Define tag?
Browser is told what to do by the tags in the HTML language. While writing an HTML page, the tags are entered for many reasons such as to show graphic, to change the text appearance or to link to other page.
8. Define HTML tag?
In the HTML language, HTML tag is a syntactical construct that abbreviates particular instruction to be executed when the web browser loads HTML script. It is like a function in C++, method in Java, routine in FORTRAN or a procedure in Pascal.
9. Define Hypertext link?
The special tag linking one page to other resource or a page is known as hypertext link. If you click the link then the browser jumps to the destination link.
10. Differentiate HTML form methods GET and POST?
Which method is used by the client to send information to web server is specified by the method parameter.
• POST – post_args
• GET – httpargs
11. How an index document is defined?
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.
12. How a HEAD is defined in HTML?
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.
13. How a body is defined in HTML?
In HTML, body specifies all the contents in the document and it contains colors, images, text, graphics, etc.
14. How to keep sound for older version internet explorer?
is the technique used for older versions of internet explorers
15. Can HTML is used in box?
Yes. Any HTML tag that is supported by the browser works in the box.
16. Define polymorphism?
In object oriented programming polymorphism is nothing but objects ability to take form objects of different classes.
17. Differentiate component and container?
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.
18. Differentiate constructor and method?
The member function of a class which is used for creating objects of that particular class is known as a constructor. It has the same name of a class without any return type. New operator is used to invoke it.
An ordinary member function of a class is known as a method. It has a return type with its own name. Dot operator is used to invoke it.
19. What are the different graphic types?
In general, there are two different types of graphics, they are:
• Raster Graphics – pixels
• Vector Graphics – lines and curves
20. Define Gradient and how to apply it?
Mixing two or more colors are known as Gradient.
21. Define DHTML?
The combination of HTML, JavaScript, XHTML, CSS and Jquery is known as DHTML.
It is used for creating interactive and dynamic web pages.
22. What is the difference between HTML and DHTML?
HTML:
• The full form of HTML is hyper text markup language.
• HTML is a markup language but not programming.
• It does not allow any features.
• HTML documents describe web pages which include HTML tags and plain text.
DHTML:
• The full form of DHTML is dynamic hyper text markup language.
• Few extra features are permitted by DHTML.
• DHTML sites are going fast on the client based technologies.
• The art of combining HTML, HTML DOM and JavaScript is known as DHTML.
23. Define XML?
• The abbreviation of XML is extensible markup language.
• To store and transport data, XML is used.
24. Define CSS?
The abbreviation of CSS is Cascading Style Sheets. To solve problem, styles are added to HTML 4.0 and these styles define how the HTML elements are showed. Lot of work is saved by External Style Sheets and is stored in CSS files.
25.Do all HTML tags come in pair?
No, there are single HTML tags that does not need a closing tag. Examples are the <img> tag and <br> tags.
26.What are some of the common lists that can be used when designing a page?
You can insert any or a combination of the following list types:
- ordered list
- unordered list
- definition list
- menu list
- directory list
Each of this list types makes use of a different tag set to compose
27.How do you insert a comment in html?
Comments in html begins with “<!–”nd ends with “–>”.
28.Do all character entities display properly on all systems?
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.
29.What is image map?
Image map lets you link to many different web pages using a single image. You can define shapes in images that you want to make part of an image mapping.
30.What is the advantage of collapsing white space?
White spaces are blank sequence of space characters, which is actually treated as a single space character in html. Because the browser collapses multiple space into a single space, you can indent lines of text without worrying about multiple spaces. This enables you to organize the html code into a much more readable format.
31.Can attribute values be set to anything or are there specific values that they accept?
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.
32.How do you insert a copyright symbol on a browser page?
To insert the copyright symbol, you need to type © or & #169; in an HTML file.
33.How do you create links to sections within the same page?
Links can be created using the <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”.
34.Is there any way to keep list elements straight in an html file?
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.
35.If you see a web address on a magazine, to which web page does it point?
Every web page on the web can have a separate web address. Most of these addresses are relative to the top-most web page. The published web address that appears within magazines typically points this top-most page. From this top level page, you can access all other pages within the web site.
36.What is the use of using alternative text in image mapping?
When you use image maps, it can easily become confusing and difficult to determine which hotspots corresponds with which links. Using alternative text lets you put a descriptive text on each hotspot link.
37.Do older html files work on newer browsers?
Yes, older html files are compliant to the HTML standard. Most older files work on the newer browsers, though some features may not work.
38.Does a hyperlink apply to text only?
No, hyperlinks can be used on text as well as images. That means you can convert an image into a link that will allow user to link to another page when clicked. Just surround the image within the <a href=” “>…</a> tag combinations.
39.If the user’s operating system does not support the needed character, how can the symbol be represented?
In cases wherein their operating system does not support a particular character, it is still possible to display that character by showing it as an image instead.
40.How do you change the number type in the middle of a list?
The <li> tag includes two attributes – type and value. The type attribute can be used to change the numbering type for any list item. The value attribute can change the number index.
41.What are style sheets?
Style sheets enable you to build consistent, transportable, and well-defined style templates. These templates can be linked to several different web pages, making it easy to maintain and change the look and feel of all the web pages within a site.
42.What bullet types are available?
With ordered lists, you can select to use a number of different list types including alphabetical and Roman numerals. The type attribute for unordered lists can be set to disc, square, or circle.
43.How do you create multicolored text in a webpage?
To create text with different colors, use the <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 an entire word.
44. Why are there both numerical and named character entity values?
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.
45.What is the advantage of grouping several checkboxes together?
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.
46.What will happen if you overlap sets of tags?
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.
47.What are applets?
Applets are small programs that can be embedded within web pages to perform some specific functionality, such as computations, animations, and information processing. Applets are written using the Java language.
48.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?
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.
49.Is it possible to set specific colors for table borders?
You can specify a border color using style sheets, but the colors for a table that does not use style sheets will be the same as the text color.
50.How do you create a link that will connect to another web page when clicked?
To create hyperlinks, or links that connect to another web page, use the href tag. The general format for this is: <a href=”site”>text</a>
Replace “site” with the actual page url that is supposed to be linked to when the text is clicked.
51.What other ways can be used to align images and wrap text?
Tables can be used to position text and images. Another useful way to wrap text around an image is to use style sheets.
52.Can a single text link point to two different web pages?
No. The <a> tag can accept only a single href attribute, and it can point to only a single web page.
53. What is the difference between the directory and menu lists and the unordered list?
The key differences is that the directory and menu lists do not include attributes for changing the bullet style.
54.Can you change the color of bullets?
The bullet color is always the same as that of the first character in the list litem. If you 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 the text.
55.What are the limits of the text field size?
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.Do <th> tags always need to come at the start of a row or column?
Any <tr> tag can be changed to a <th> tag. This causes the text contained within the <th> tag to be displayed as bold in the browser. Although <th> tags are mainly used for headings, they do not need to be used exclusively for headings.
57.What is the relationship between the border and rule attributes?
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.
58.What is a marquee?
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.
59.Are <br> tags the only way to separate sections of text?
No. The <br> tag is only one way to separate lines of text. Other tags, like the <p> tag and <blockquote> tag, also separate sections of text.
60.Are there instances where text will appear outside of the browser?
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.
61.How are active links different from normal links?
The default color for normal and active links is blue. Some browsers recognize an active link when the mouse cursor is placed over that link; others recognize active links when the link has the focus. Those that don’t have a mouse cursor over that link is considered a normal link.
62.Do style sheets limit the number of new style definitions that can be included within the brackets?
Style sheets do not limit the number of style definitions that can be included within the brackets for a given selector. Every new style definition, however, must be separated from the others by a semicolon symbol.
63.Can I specify fractional weight values such as 670 or 973 for font weight?
Implementation largely depends on the browser, but the standard does not support fractional weight values. Acceptable values must end with two zeroes.
64.What is the hierarchy that is being followed when it comes to style sheets?
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.
65.Can several selectors with class names be grouped together?
You can define several selectors with the same style definition by separating them with commas. This same technique also works for selectors with class names.
66.What happens if you open the external CSS file in a browser?
If you try to open the external CSS file in a browser, the browser cannot 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.
67.What happens if the list-style-type property is used on a non-list element like a paragraph?
If the list-style-type property is used on a non-list element like a paragraph, the property will be ignored and have no effect on the paragraph.
68.When is it appropriate to use frames?
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.
69.What happens if the number of values in the rows or cols attribute doesn’t add up to 100 percent?
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.
70.What is difference between HTML and XHTML?
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 information
71.How many types CSS can be include in HTML?
There are three ways to include the CSS with HTML:
Inline CSS: it is used when only small context is to be styled.
To use inline styles add the style attribute in the relevant tag.
External Style Sheet: is used when the style is applied to many pages.
Each page must link to the style sheet using the <link> tag. The <link> tag goes inside the head section:
<head>
<link rel=”stylesheet” type=”text/css” href=”mystyle.css” />
</head>
Internal Style Sheet: is used when a single document has a unique style.
Internal styles sheet needs to put in the head section of an HTML page, by using the <style> tag, like this:
<head>
<style type=”text/css”>
hr {color:sienna}
p {margin-left:20px}
body {background-image:url(“images/back40.gif”)}
</style>
</head>
72.What are logical and physical tags in HTML?
Logical tags are used to tell the meaning of the enclosed text. The example of the logical tag is <strong> </strong> tag. When we enclosed text in strong tag then it tell the browser that enclosed text is more important than other text.
Physical text are used to tell the browser that how to display the text enclosed in the physical tag.
Some example of the physical tags are: <b> , <big> , <i>
73.Does HTML support Javascripts?
Yes, HTML supports JavaScripts. We can use JavaScript anywhere in the HTML Coding. Mainly there are four sections where we can add JavaScript in HTML.
Head Section: we can add JavaScript in Head section of HTML.
<head>…..Javascript…. </head>
Body Section: <body>….. Javascript…</body>
Head and Body both: we can add Javascript in both head and body section.
<body….Javascript…</body> and <head>…..Javascript…. </head>
External File: script in and external file and then include in <head> ….. </head> section.
74.Explain marquee tag.
Marquee tag: Marquee tag is used when we want that some text or content move in the web page whether horizontally or vertically.
Syntax of Marquee tag: <marquee>move text</marquee>
Attribute of Marquee tag are: bgcolor, direction, height, width, vspace etc.
75.How do I add midi music to my web page?
We can add midi Music in our HTML web page using following tag:
<bgsound src=”music.mid” loop=”1″>
Attribute LOOP= 1: shows that music.mid is played only for one time. We can also set the value of loop to infinite. This tag is supported by Netscape and Internet Explorer.
Example: <embed src=”canyon.mid” Autostart=TRUE Width=145 Height=60 Loop=true>
76.What are new Media Elements in HTML5?
Following are the New Media Elements are present in HTML5:
<audio> tag: for playing audio.
<video> tag: for playing video.
<source> tag: For media resources for media elements.
<embed> tag: For embedded content,
<track> tag: For text tracks used in media players
77.Explain various HTML list tags.
In HTML we can list the element in two ways:
Ordered list: in this list item are marked with numbers.
Syntax: <ol>
<li> first item </li>
<li>second item </li> </ol>
Display as: 1. First item
2. Second item.
Unordered Lists: in this item are marked with bullets.
Syntax: <ul>
<li> first item </li>
<li>second item </li> </ul>
Display as:
-First item
-Second item.
78.Explain HTML background.
There are two types of background in HTML:
Colored Background: in this the background of the html is colored.
The Syntax is: <body bgcolor = “red”>
The value of the bgcolor can be set in three ways by hexadecimal number, an RGB value and Color name.
Example: <body bgcolor = “black”>
<body bgcolor = “rgb(0,0,0)”>
<body bgcolor = “#000000”>
Image Background: in this we set the background of the website by an image. Syntax used for this is : <body background=”study.gif”>
79.What is CSS?
CSS stands for Cascading Style Sheets. By using CSS with HTML we can change the look of the web page by changing the font size and color of the font. CSS plays an important role in building the website. Well written CSS file can be used to change the presentation of each web page. By including only one CSS file. It gives web site developer and user more control over the web pages.
What is difference between HTML and HTML5?
80.The differences between HTML and HTML5 are:
Document of HTML is very large as compare to the HTML5.
Audio and Video tags are not present in HTML whereas HTML5 contains audio and video tags.
Vector technology is not integral part of HTML whereas HTML5 Vector technology is the integral part of it.
HTML supported by all old browsers whereas HTML5 is supported by new browser.
In HTML web sockets are not available whereas in HTML5 Full duplex communication channel is present.
81.How to insert Javascript in HTML?
We can insert JavaScript in HTML using <Script tag>. JavaScript can be enclosed in <script type = text/javascript> and ending with </script>.
Example:
<html>
<body>
<script type=”text/javascript”>
…JavaScript….
</script>
</body>
</html>
82.What is the Use of SPAN in HTML and give one example?
SPAN: Used for the following things:
Highlight the any color text
For adding colored text
For adding background image to text.
Example:
<p>
<span style=”color:#000000;”>
In this page we use span.
</span>
</p>
83. What’s new HTML 5 DocType and Charset?
Since HTML 5 is now not a subset of SGML, its DocType is simplified as follows:
<!doctype html>
And HTML 5 uses UTF-8 encoding as follows:
<meta charset=”UTF-8″>
84. How can we embed Audio in HTML 5?
HTML 5 comes with a standard way of embedding audio files. Supported audio formats are MP3, Wav and Ogg.
<audio controls>
<source src=”jamshed.mp3″ type=”audio/mpeg”>
Your browser does’nt support audio embedding feature.
</audio>
85. How can we embed Video in HTML 5?
The same as for audio, HTML 5 defines a standard way to embed video files. Supported video formats are MP4, WebM and Ogg.
<video width=”450″ height=”340″ controls>
<source src=”jamshed.mp4″ type=”video/mp4″>
Your browser does’nt support video embedding feature.
</video>
86. What are the new media elements in HTML 5 other than audio and video?
HTML 5 has strong support for media. Other than audio and video tags, it comes with the following tags:
<embed> acts as a container for external applications.
<track> defines text track for media.
<source> is helpful for multiple media sources for audio and video.
87. What is the usage of a canvas element in HTML 5?
<canvas> is an element in HTML5 that we can use to draw graphics using scripting (that is most probably JavaScript).
This element behaves like a container for graphics and the rest will be done by scripting. We can draw images, graphs and a bit of animations etcetera using a <canvas> element.
<canvas id=”canvas1″ width=”300″ height=”100″>
</canvas>
88. What are the various types of storage in HTML 5?
HTML 5 has the capability to store data locally. Previously it was done using cookies.
The exciting thing about this storage is that it’s fast as well as secure. There are two different objects that can be used to store data.
localStorage object stores data for a longer period of time even if the browser is closed.sessionStorage object stores data for a specific session.
89.How a HEAD is defined in HTML?
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.
90. How a body is defined in HTML?
In HTML, body specifies all the contents in the document and it contains colors, images, text, graphics, etc.
91. How to keep sound for older version internet explorer?
is the technique used for older versions of internet explorers.
92. Can HTML is used in box?
Yes. Any HTML tag that is supported by the browser works in the box.
93. Define polymorphism?
In object oriented programming polymorphism is nothing but objects ability to take form objects of different classes.
94. Differentiate component and container?
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.
95. Differentiate constructor and method?
The member function of a class which is used for creating objects of that particular class is known as a constructor. It has the same name of a class without any return type. New operator is used to invoke it.
An ordinary member function of a class is known as a method. It has a return type with its own name. Dot operator is used to invoke it.
96. What are the different graphic types?
In general, there are two different types of graphics, they are:
• Raster Graphics – pixels
• Vector Graphics – lines and curves
97. Define Gradient and how to apply it?
Mixing two or more colors are known as Gradient.
98.What is image map?
Image map lets you link to many different web pages using a single image. You can define shapes in images that you want to make part of an image mapping.
99. What is the advantage of collapsing white space?
White spaces are blank sequence of space characters, which is actually treated as a single space character in html. Because the browser collapses multiple space into a single space, you can indent lines of text without worrying about multiple spaces. This enables you to organize the html code into a much more readable format.
100.Can attribute values be set to anything or are there specific values that they accept?
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.
101.How do you insert a copyright symbol on a browser page?
To insert the copyright symbol, you need to type © or & #169; in an HTML file.
102.If you see a web address on a magazine, to which web page does it point?
Every web page on the web can have a separate web address. Most of these addresses are relative to the top-most web page. The published web address that appears within magazines typically points this top-most page. From this top level page, you can access all other pages within the web site.
103.What is the use of using alternative text in image mapping?
When you use image maps, it can easily become confusing and difficult to determine which hotspots corresponds with which links. Using alternative text lets you put a descriptive text on each hotspot link.
No comments:
Post a Comment