Html Interview Important Questions

aimtocode

HTML Interview Questions

Q 1) What is HTML?

HTML stands for Hyper Text Markup Language. It allows us to organize text, graphics, audio, and video on a web page.

HTMl is a formatting language used to define the appearearance and contents of a web page.


Q 2) What is www?

The World Wide Web - or Web consists of a vast assortment of files and documents that are stored on the computers and written in some form of HyperText Markup Language (HTML).


Q 3) What is hypertext

A Web browser is a program that displays Web pages and other documents on the Web. Example: Internet explorer, Firefox, Google Chrome etc.


Q 4) What is XHR?

XHTMLHttpRequest (XHR) is used by scripting languages to exchange data between a client and a Web server.


Q 5) What is RIA/

A rich Internet application (RIA) is a Web application designed to deliver the same features and functions normally associated with desktop applications.


Q 6) What is sandbox?

The sandbox limits visibility and access to the file and operating system on the client to the application server on the other side of the connection.


Q 7) Write the basic structure of the HTML template?

The basic structure of the HTML template is:

<html>
  <head>
      <title></title>
  </head>
      <body>

      </body>
</html>

Q 8) Define Semantic elements in HTML.

Semantic elements are HTML elements which represent its meaning to the browser and developer about its contents.

For example: p tag represents a paragraph, a tag represents anchor tag, form tag, table tag, article tag and many more are semantic elements in HTML. Whereas div tag, span tag, bold tag are not semantic elements.


Q 9) What are tags in HTML?

<br> tags are used to enter a new line into the HTML contents. These tags are generally used to separate two different lines of text between each other.


Q 10) Why Meta tags are used in HTML?

Meta tags in html are used by the developer to tell the browser about the page description, author of the template, character set, keywords and many more.

Meta tags are used for search engine optimization to tell the search engine about the page contents.

 <meta charset="UTF-8">
 <meta name="viewport" content="width=device-width, initial-scale = 1.0">
 <meta name="description" content="HTML interview questions">
 <meta name="author" content="Author Name">
 <meta name="copyright" content="All Rights Reserved">

Q 11) 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.


Q 12) Does a hyperlink apply to text only?

No, hyperlinks can be used in the text as well as images. That means you can convert an image into a link that will allow users to link to another page when clicked. Surround the image within the tag combinations.


Q 13) 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.


Q 14) State bullet types available in HTML.

With ordered lists, you can select to use some different list types including alphabetical and Roman numerals. The type attribute for unordered lists can be set to disc, square, or circle.


Q 15) How do you create multicolored text in a webpage?

To create text with different colors, use the tags for every character that you want to apply color. You can use this tag combination as many times as needed, surrounding a single character or an entire word.


Q 16) 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 find this problem when the text does not display properly on the browser screen.


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


Q 18) Can you change the color of bullets?

The bullet color is always the same as that of the first character in the list item. 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.


Q 19) 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.

AIMTOCODE.COM An Engineering online portal for Programming Languages. It contains well written, easy explained, C, C++, Python, Java, JavaScript, Web Development, HTML, CSS, PHP, MySQL, eBooks, online practices, online quizzes, Free certification, interview Questions and many more. 

Q 20) What would happen if the HTML Document does not contain <!DOCTYPE>?

It instructs the Web Browser about the version of HTML used for creating the Web page. If the developer misses declaring the DOCTYPE information in the code, then new features and tags provided by HTML5, like <article>, <footer>, and <header> will not be supported. Additionally, the Browser may automatically go into Quirks or Strict Mode.

aimtocode