Ans. HTML stands for Hyper Text Markup Language. It allows us to organize text, graphics, audio, and video on a web page.
Ans. HTMl is a formatting language used to define the appearearance and contents of a web page.
Ans. 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).
Ans. A Web browser is a program that displays Web pages and other documents on the Web. Example: Internet explorer, Firefox, Google Chrome etc.
Ans. XHTMLHttpRequest (XHR) is used by scripting languages to exchange data between a client and a Web server.
Ans. A rich Internet application (RIA) is a Web application designed to deliver the same features and functions normally associated with desktop applications.
Ans. 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.
Ans. The basic structure of the HTML template is:
<html> <head> <title></title> </head> <body> </body> </html>
Ans. Semantic elements are HTML elements which represent its meaning to the browser and developer about its contents.
Ans. 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.
Ans. <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.
Ans. 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.
Ans. 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">
Ans. To insert the copyright symbol, you need to type © or & #169; in an HTML file.
Ans. 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 <a href=" ">…</a> tag combinations.
Ans. 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.
Ans. 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.
Ans. 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.
Ans. 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.
Ans. 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.
Ans. 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.
Ans. 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.
Ans. 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.