×
Flat 15% Off on All Courses | Ends in: GRAB NOW

Html Interview Questions And Answers For Freshers

web design and development

Html Interview Questions And Answers For Freshers

HTML Interview Questions and Answers for Freshers: Ace Your Next Interview

HTML is the foundation of web development, and being familiar with its concepts is crucial for any aspiring web developer. Freshers are often asked about their knowledge and understanding of HTML during job interviews. Some common HTML interview questions for freshers include topics such as basic syntax, the difference between HTML and XHTML, and the purpose of different HTML tags. Candidates may also be asked to explain their knowledge of HTML5 and how it differs from previous versions of the language. It is important for freshers to have a strong grasp on HTML concepts and be able to demonstrate their ability to write clean and well-structured code to ace these interview questions.

To Download Our Brochure: https://www.justacademy.co/download-brochure-for-free

Message us for more information: +91 9987184296

1   Can you explain the difference between HTML and HTML5?

HTML is the standard markup language used for creating web pages. HTML5, on the other hand, is the latest version of HTML with new features and improved functionality. The major differences between the two versions include support for multimedia elements, enhanced form validation, and improved APIs for creating dynamic web applications.

2) What are the new features in HTML5?

HTML5 introduces a number of new elements, such as <canvas>, <video>, and <audio>, that allow developers to easily add multimedia content to web pages without the need for third party plugins. It also includes new form elements, such as <input type="date"> and <input type="range">, and new APIs like Geolocation, WebStorage, and Drag and Drop.

3) What is the purpose of the “alt” attribute in <img> tags?

The “alt” attribute in <img> tags provides an alternative text description for an image. It is used to improve the accessibility of the webpage for users who may have visual impairments and for search engine optimization purposes.

4) What is the difference between block level elements and inline elements?

Block level elements take up the entire width of the page and create a new block of content, such as <div> and <p> tags. Inline elements, like <span> and <a>, are displayed within a block level element and do not create a new line.

5) How do you link to an external style sheet?

To link to an external style sheet in HTML, you need to use the <link> tag with the “rel” attribute set to “stylesheet” and the “href” attribute pointing to the URL of the external style sheet.

6) What is the purpose of the <meta> tag in HTML?

The <meta> tag is used to provide additional information about a webpage, such as the character set being used, keywords for search engine optimization, and a page description for social media sharing.

7) How do you create a hyperlink in HTML?

To create a hyperlink in HTML, you need to use the <a> tag with the “href” attribute pointing to the URL of the page you want to link to. You can also use the “target” attribute to specify whether the link should open in the same window or in a new one.

8) What is the difference between margin and padding?

“Margin” refers to the space outside an element, while “padding” refers to the space inside it. Margin is used to create space between elements, while padding is used to create space within an element's content.

9) How can you make a div element center aligned on a page?

To center align a div element, you need to set a width for the div element and then set the “margin” property to “auto”. This will automatically center the element within its parent container.

10) How do you add comments in HTML?

Comments in HTML are added using the <!   comment   > syntax. They are not rendered on the webpage but can be seen in the source code and used to add notes or explanations for the code.

11) What is the purpose of the <table> tag in HTML?

The <table> tag is used to create a data table on a webpage. It is made up of rows and columns and can be used to display information in an organized and structured manner.

12) How do you specify multiple font styles in CSS3?

To specify multiple font styles in CSS3, you can use the “font family” property and list the font names in order of preference. For example, font family: Arial, Helvetica, sans serif; This will apply Arial font if available, if not then use Helvetica, and if neither are available, use a generic sans serif font.

To Download Our Brochure: Click Here

Message us for more information: +91 9987184296

13) What is the use of the “float” property in CSS?

The “float” property is used to position an element to the left or right of its container. When applied, the element is positioned in the normal flow of the page, with other content flowing around it.

14) How do you set a fixed background image in CSS?

To set a fixed background image, you can use the “background attachment” property and set it to “fixed”. This will keep the image in a fixed position, even when the user scrolls the page.

15) What is the purpose of the <form> tag in HTML?

The <form> tag is used to create a form on a webpage that allows users to input and submit data, which can be processed by a server side script. It contains various form elements like input fields, checkboxes, and dropdowns.

 

Browse our course links : https://www.justacademy.co/all-courses 

To Join our FREE DEMO Session: Click Here 

Contact Us for more info:

Java Tough Interview Questions

Interview Questions On Concurrency In Java

Bootstrap Interview Questions Github

Java Interview Questions For Testers

Capgemini Sap Sd Interview Questions And Answers

Connect With Us
Where To Find Us
Testimonials
whttp://www.w3.org/2000/svghatsapp