Live Cristle
AUTOMATION ENGINEERS A.B. (P) Interview Questions and Answers
Q1. What is the Difference between Block and inline elements.Can you give some example of inline Elements.
Block elements take up the full width available, while inline elements only take up as much width as necessary.
Block elements start on a new line and take up the full width available (e.g. <div>, <p>, <h1>).
Inline elements do not start on a new line and only take up as much width as necessary (e.g. <span>, <a>, <strong>).
Q2. What are the Semantic tags in html.
Semantic tags in HTML are specific tags that provide meaning to the content they enclose.
Semantic tags help search engines and screen readers understand the structure of a webpage.
Examples of semantic tags include <header>, <footer>, <nav>, <article>, <section>, <aside>, <main>, <figure>, <figcaption>.
Using semantic tags improves SEO and accessibility of a website.
Q3. What are the Features of Javascript.
Javascript features include dynamic typing, event-driven programming, and object-oriented programming.
Dynamic typing allows for flexibility in variable types
Event-driven programming allows for interactive web applications
Object-oriented programming allows for modular and reusable code
Supports functional programming
Can manipulate HTML and CSS
Can handle asynchronous programming with callbacks and promises
Q4. How can we add Javascript file to Html.
You can add a Javascript file to HTML by using the <script> tag with the src attribute pointing to the file's location.
Use the <script> tag in the HTML file.
Add the src attribute to the <script> tag with the path to the Javascript file.
Place the <script> tag in the <head> or <body> section of the HTML file.
Q5. What is the work of the Html.
HTML is a markup language used to create the structure of web pages.
HTML stands for HyperText Markup Language.
It is used to create the structure of web pages by using tags.
Tags are enclosed in angle brackets, like <tag>.
HTML elements are used to define the different parts of a webpage, such as headings, paragraphs, images, links, etc.
Attributes can be added to HTML elements to provide additional information or functionality.
Example: <h1>This is a heading</h1>
Q6. How to center a div element.
To center a div element, use CSS properties like display: flex, text-align: center, margin: 0 auto, etc.
Use display: flex and justify-content: center for horizontal centering
Use text-align: center for centering inline elements inside the div
Use margin: 0 auto for centering block elements with a specific width
Q7. What is a element in Html
An element in HTML is a building block of a webpage, defined by tags and used to structure content.
Elements are defined by tags such as <p> for paragraphs or <img> for images
Elements can have attributes that provide additional information or functionality
Elements can be nested within each other to create a hierarchy of content
Q8. Difference between Var,let and const.
Var is function scoped, let and const are block scoped. Var can be redeclared and updated, let can be updated but not redeclared, const cannot be updated or redeclared.
Var is hoisted to the top of its scope, let and const are not.
Var can be declared without being initialized, let and const cannot.
Var can be used before it is declared, let and const cannot.
Example: var x = 5; let y = 10; const z = 15;
Example: function example() { var x = 5; let y = 10; const z = 15; }
Example: ...read more
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month