HTML Interview Questions and Answers
- What is HTML and Tags?
Answer: HTML: HTML is stands for Hyper Text Markup Language and is the language use for World Wide Web. Which is used for creating and displaying pages on the Web. Two things are made for HTML documents, i.e.: the content and the tags that format it for proper display on pages.
Tags: Tags are a fundamental part of HTML other markup languages, such as XML. It makes use of the less than symbol (<) and the greater than symbol (>). A slash symbol is also used as a closing tag. For example:
<strong>sample</strong> |
- What are applets?
Answer: Applets are small programs which are designed to run within another application to perform some specific functionality, such as computations, animations, and information processing. Applets are written using the Java language. To Dynamic and entertaining the web site are uses for applets.HTML page for an applet is embedded using the APPLETor OBJECT tag and web server on hosted.
- Explain the types of heading tag in an HTML?
Answer: The HTML contains six types of headings tag these are defined with the <h1> to <h6> tags. Heading tag are displays different text size from each another. Where <h1> is the most important heading tag and <h6> is the least important heading tag.
For example:
- <h1>Heading no. 1</h1>
- <h2>Heading no. 2</h2>
- <h3>Heading no. 3</h3>
- <h4>Heading no. 4</h4>
- <h5>Heading no. 5</h5>
- <h6>Heading no. 6</h6>
- How do you create links to sections within the same page?
Answer: Links can be created using the <a> tag, with referencing through the use of the number (#) symbol. i.e. you can have one line as <a href=”#topmost”>BACK TO TOP</a>, Show the result in the words “BACK TO TOP” appearing on the webpage and links to a bookmark named topmost. You can create a separate tag command i.e. <a name=”topmost”> somewhere same webpage on the top so that’s the customer will be linked to that spot when he clicked on result “BACK TO TOP”.
- How do you create multicolored text in a webpage?
Answer: Multicolor text to create with different colors, use the <font color=”color”>…</font> tags for every character that you want to apply color. This type of tag you can use for combination as many times as you needed, surrounding for a single character or an intact word.
- What is HTML5?
Answer: HTML5 is the updated or advance version of HTML.
- What is the use of <br> tags in HTML?
Answer: The <br> tag is use to create a new line for the markup language. This type of tag is used to separate different two lines of the content.
- Which browsers support HTML5?
Answer: Supported browsers are Google Chrome, Mozilla Firefox, Apple Safari, and Opera.
- What is a marquee?
Answer: A marquee tag is used for scrolling text or image in a web page. i.e. <marquee> and </marquee> tags.
Marquee Tag use for Scroll Up, Scroll Down and Scroll Left or Right
- Why Meta tags are used in HTML?
Answer: Meta tags are used in HTML for search engine optimization. i.e. Browsers search engines, other web services.