Covid-19 Update!!    We have enabled all courses through virtual classroom facility using Skype or Zoom.    Don't stop learning.    Enjoy Learning from Home.

30% Discount Python        30% Discount Webdesign        30% Discount SEO        30% Discount Angular8        Free SQL Class        Free Agile Workshop       Free HTML Sessions        Free Python Basics

Important HTML Interview Questions and Answers

HTML Interview Questions and answer

1. What is HTML?

HTML is the short form of Hyper Text Markup Language, and is the language of the World Wide Web. It is the standard text formatting language used for creating and displaying pages on the Web. HTML documents are built with two things:
  The content
  The tags (which formats it for proper display on pages)


2. What are tags?

The invisible keywords inside a web page that define how your web browser must format and display the content are tags. Usually the tags must have two parts, an opening and a closing part.
For example: < strong > sample< / strong >


3. Do all HTML tags come in pair?

No, There are HTML tags which does not need a closing tag.
For example:< img > tag and < br > tags.


4. What are the common lists that can be used when designing a page?

While designing a page, the below list can be used:
  ordered list
  unordered list
  definition list
  menu list
  directory list

Each of this list types makes use of a different tag set to compose


5. What is the advantage of collapsing white space?

White spaces are blank sequence of space characters, which is normally mentioned as a single space character in html. Because the browser fails 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 clearer format.


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

To get copyright symbol on browser page, we need to type "& copy;"or & #169; in an HTML file.


7. How do you create links to sections within the same page?

We can create the link by 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” arise on the webpage and links to a bookmark called topmost.
Then create an individual 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”.


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

Yes, we can keep the list elements straight by using indents. If you indent each sub nested 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.


9. What is the use of using alternative text in image mapping?

While using image maps, it can easily become complicating and difficult to decide which hotspots corresponds with which links. Using alternative text we can put a descriptive text on each hotspot link.


10. Does a hyperlink apply to text only?

Hyperlinks can be used for both the text and the 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=”#topmost “>… tag combinations.


11. How do you create multicolored text in a webpage?

To create multicolored text, use the < font color = ” color ” >…< / font > tags for every character that you want to apply a color. You can use this tag collaboration as many times as needed, surrounding a single character or an entire word.


12. What are the web standards?

Web standards are specified for the internet or World Wide Web aspects for developing internet usability by all major OS and browsers.


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

When we overlap the tags, only the first tag will be recognized and the text will not display properly on the browser screen.


14. What are applets?

Applets are small programs that can be submerged within web pages to complete certain functionality like, computations, animations and information processing. Applets are written using the Java language.


15. How do you create a link that will connect to another web page when clicked?

To create links that connect to another web page by using the href tag. The general format for this is: < a href = ” site ” >text Replace “site” with the actual page url that is supposed to be linked to when the text is clicked.


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

The default size for a text field is around 13 characters, but if we combine the size attribute, we 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, then the size will be default size of 13 characters.


17. 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.


18. What is a marquee?

A marquee permit 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.Ex: < marquee > TIBAcademy < / marquee >


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

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


20. When is it appropriate to use frames?

The appropriate use of frames are:
Frames can make navigating a site more comfortable
If the main links to the site are located in a frame that arise at the top or along the edge of the browser, the content for those links can be popped in the remainder of the browser window.

-->