11. What is head in HTML document?
The head of an HTML document is an unordered collection of information about the document. The HEAD contains general information, or meta-information, about the document. The head appears first in a document above the BODY.
12.What does DOCTYPE mean?
The term DOCTYPE tells the browser which type of HTML is used on a webpage. In turn, the browsers use DOCTYPE to determine how to render a page. Failing to use DOCTYPE or using a wrong DOCTYPE may load your page in Quirks Mode.
13. 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.
14. 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.
15. What is SVG?
SVG stands for scalable vector graphics. It’s a text based graphic language which draws images using text, lines, dots etc. This makes it lightweight and renders faster.
16. How can I include comments in HTML?
Technically, since HTML is an SGML application, HTML uses SGML comment syntax. However, the full syntax is complex, and browsers don’t support it in its entirety anyway. Therefore, use the following simplified rule to create HTML comments that both have valid syntax and work in browsers:
An HTML comment begins with “<!–“, ends with “–>”, and does not contain “–” or “>” anywhere in the comment.
The following are examples of HTML comments:
* <!– This is a comment. –>
* <!– This is another comment,
and it continues onto a second line. –>
Do not put comments inside tags (i.e., between “<” and “>”) in HTML markup.
17. Can I have two or more actions in the same form?
No. A form must have exactly one action. However, the server-side (e.g., Java) 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.
18. How do I create a link that opens a new window?
<a target=”_blank” href=…> opens a new, unnamed window.
<a target=”example” href=…> opens a new window named “example”, provided that a window or frame by that name does not already exist.
19. How to transferring user to new web page automatically?
You will need to use the below meta tag.
<META HTTP-EQUIV=”Refresh” CONTENT=”2″; URL=”https://www.kpblogs.com”>
Placing the above tag in your <HEAD></HEAD> will load kpblogs.com in 2 seconds.
Changing the 2 value on CONTENT=”2″ to another value will increase or decrease the delay until loading the new page.
20. How can I display an image on my page?
Use an IMG element. The SRC attribute specifies the location of the image. The ALT attribute provides alternate text for those not loading images. For example:
<img src=”logo.gif” alt=”KP Blogs”>
1,652 total views, 1 views today