HTML is a markup language for describing web documents (web pages).
- HTML stands for Hyper Text Markup Language
- A markup language is a set of markup tags
- HTML documents are described by HTML tags
- Each HTML tag describes different document content
Top 50 HTML Interview Questions and Answers for freshers and experienced are below are below :
1. HTML Stand for?
HyperText Markup Language
2. What is use of HTML?
HTML is the standard markup language used to create web pages.
tells the browser which type of HTML is used on a webpage.
4. What is a tag in HTML?
a tag tells the browser what to do.
5. HTML tags are keywords (tag names) surrounded by angle brackets:
<tagname>content</tagname>
HTML tags normally come in pairs like <p> and </p>
The end tag is written like the start tag, but with a slash before the tag name
6. Tags to open and close an HTML document
All HTML documents should begin with the following set of tags:
<HTML>
<HEAD>
<TITLE>
Write your title here.
</TITLE>
</HEAD>
<BODY>
Begin your main body of text here.
All HTML documents should end with the following set of tags:
</BODY>
</HTML>
7. What is hyperlink or How to create link in HTML?
A hyperlink is an element, a text, or an image that you can click on, and jump to another document.
Syntax: <a href="url">link text</a>
Example: <a href="http://www.example.com/html/">Visit our HTML tutorial</a>
The href attribute specifies the destination address(http://www.example.com/html)
The link text is the visible part (Visit our HTML tutorial).
Clicking on the link text, will send you to the specified address.
8. What is Attributes in HTML ?
Attributes provide additional information about an element
Attributes are always specified in the start tag
Attributes come in name/value pairs like: name="value"
Example: <html lang="en-US">
9. Comments in HTML?
Comment tags <!-- and --> are used to insert comments in HTML.
Example: <!-- Write your comments here -->
10. CSS stand for?
Cascading Style Sheets
11. How many way for Styling HTML with CSS?
Styling can be added to HTML elements in 3 ways:
Internal - using a <style> element in the HTML <head> section
External - using one or more external CSS files
The most common way to add styling, is to keep CSS syntax in separate CSS files.
12. Useful HTML Tags?
<P> : Use to create paragraphs. You must use this between each paragraph or else all of them will run together.
<BR> : Use to make a line break.
<HR> : Use to make a line across the page.
13. Image tag in html?
The <img> tag is empty, it contains attributes only, and does not have a closing tag.
The src attribute defines the url (web address) of the image:
<img src="url" alt="some_text">
You can use the style attribute to specify the width and height of an image.
The values are specified in pixels (use px after the value):
Example: <img src="url" alt="HTML5 Tuts" style="width:120px; height:120px">
14. What is marquees?
An HTML marquee is a scrolling piece of text displayed either horizontally across or vertically down your webpage depending on the settings. This is created by using HTML <marquees> tag.
15. Tables in HTML?
The HTML tables allow web authors to arrange data like text, images, links, other tables, etc. into rows and columns of cells.
The HTML tables are created using the <table> tag in which the <tr> tag is used to create table rows and <td> tag is used to create data cells.
Example
<!DOCTYPE html>
<html>
<head><title>HTML Tables</title></head>
<body>
<table border="1">
<tr><td>Row 1, Column 1</td>
<td>Row 1, Column 2</td>
</tr>
<tr>
<td>Row 2, Column 1</td>
<td>Row 2, Column 2</td>
</tr>
</table>
</body>
</html>
16. HTML Lists?
HTML can have Unordered Lists, Ordered Lists, or Description Lists
Unordered HTML List
- first item
- second item
- third item
- fourth item
- first item
- second item
- third item
- fourth item
Post a Comment
Click to see the code!
To insert emoticon you must added at least one space before the code.