HTML INTERVIEW PREPARATION
PART-1
Content Of This Post ?
In this article, we covered eleven HTML questions with answers.
- What is HTML?
- What is a Web Browser?
- What are the differences between HTML and HTML5?
- What are input elements in HTML5?
- Explain formatting tags in HTML?
- Which are the new tags for multimedia in HTML5?
- What is a tag in HTML?
- What is the difference between <strong>tag, <b> tag, <em> tag and <i> tag?
- Explain the significance of <head>tag and <body> tag in HTML?
- Explain the difference between HTML elements and tags?
- Explain the role of DOCTYPE in HTML5?
1. What is HTML?
- HTML is short from for Hypertext Markup Language.
- It is a typical document markup language for developing web pages to display on the web browser.
- The extension used to save HTML pages are .html or .htm.
2. What is a Web Browser?
- The "Web Browser" is a software application for retrieving, presenting, and traversing the information resources and World Wide Web.
3. What are the differences between HTML and HTML5?
The HTML5 has made several steps forward compared to its previous versions.
The changes include:-
- HTML5 supports video, graphics, and audio, whereas HTML only supports them through third-party extensions.
- HTML5 is mobile-friendly, whereas HTML is not.The HTML5 is compatible with all major web browsers, whereas HTML is not.
4. What are input elements in HTML5?
The input elements are used to create interactive controls that receive and process information from the user.
Example:- inputs could be used to process login details, collect user feedback, or
display a form.
5. Explain formatting tags in HTML?
The formatting tags allow text to be stylized in HTML5 without the need for CSS.
There is n number of HTML5 formatting tags, a few of them are
- <b>:- Used for bold text.
- <i>:- It is used to italicize text.
- <u>:- It is used to underline text.
- <mark>:- It is used to highlight text.
- <strong>:- It is used to mark text as important.
6. Which are the new tags for multimedia in HTML5?
HTML5 allows developers to create multimedia without the need for additional plugins.
The new tags are:
- <audio>:-Used for embedding audio content
- <video>:-Used to embedding video content.
- <embed>:- It is used to embed content from an external source.
- <source>:- It is used to embed multiple media resources.
- <track>:- It is used to specify text tracks for audio and video content
7. What is a tag in HTML?
In the HTML page, tags used are to place the content and format the pages. They always defined between (<) and (>) symbols or angle brackets. Example,<h1>Hello</h1>.The opening tag always must be preceded by a closing tag and indicated with a (/) symbol.
8. What is the difference between <strong>tag, <b> tag, <em> tag and <i> tag?
The effect on a normal webpage of the <strong>tag, <b> tag, <em> tag and <i> tag is the same.
The <b> and <i> and tags stand for bold and italic. These two tags only apply font
styling and Bold tag <b>, just add more ink to the text, these tags don't say
anything about the text.
Whereas <strong> and <em> tags represent that the span of text is of strong
importance or more importance and emphatic stress respectively than the rest of
the text. These tags have semantic meaning.
9. Explain the significance of <head>tag and <body> tag in HTML?
The <head></head>tag provides the information about the document. It should
always be enclosed within the <html></html>tag.
This tag contains the metadata about the web page and its associated tags
by head tag like <link>, <style>, etc. are not displayed on the web page. Also, there can be only one <head> tag in the entire Html document, and it will always be before the <body> tag.
The <body></body> tag defines the body of the HTML document. It should always
be enclosed within the <html></html>tag.
All the contents which need to be displayed on the web page like images, text,
audio, video, and contents, using elements like the <p>,<heading>,<video>,<div>, etc.
will always be enclosed by the <body> tag.
Also, there can be only one body element in an HTML document, and will always
be after the <head> tag.
10. Explain the difference between HTML elements and tags?
HTML Elements:-
Sections of the web page, such as the paragraph, image, or link is an element, and element has a certain way of execution. For example, the link is used to be clicked, and the text boxes can be used for input text.
HTML tags:-
The HTML elements communicate with the browser how to represent the text and
become HTML tags when enclosed within angle brackets <>.
11. Explain the role of DOCTYPE in HTML5?
All HTML pages need to have their document type declared in the first line of code.
DOCTYPE instructs the browser on how to interpret the document by indicating
what type and version of HTML are being used.
For HTML5 documents, the following DOCTYPE declaration is used:
<!DOCTYPE html>
Important ! :-
- free Html & CSS Courses with certification : click here
- CSS Interview Preparation : click here
- Html Interview Preparation Part-2 : Click Here
- JavaScript Interview Preparation : Click Here
Thanks For Visiting
0 Comments