Live Cristle
Zentech Innovations 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 of the page while inline elements only take up the space they need.
Block elements start on a new line and can have margins, padding, and borders
Inline elements can be nested inside block elements
Examples of inline elements include , , and
Q2. What are the Semantic tags in html.
Semantic tags in HTML are used to give meaning to the content of a web page.
Semantic tags are used to structure content and provide context for search engines and assistive technologies.
Examples of semantic tags include
, Using semantic tags can improve accessibility, SEO, and maintainability 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.
To add a Javascript file to HTML, use the script tag with the src attribute.
Create a script tag in the HTML file
Add the src attribute to the script tag and set it to the path of the Javascript file
Place the script tag in the head or body section of the HTML file
Example:
Q5. What is the work of the Html.
HTML is a markup language used for creating the structure and content of web pages.
HTML stands for HyperText Markup Language.
It is the standard language for creating web pages and web applications.
HTML uses tags to define the structure and content of a web page.
It allows the inclusion of text, images, videos, links, and other media.
HTML provides a way to create headings, paragraphs, lists, tables, forms, and more.
It is the backbone of every web page and is essential for web d...read more
Q6. How to center a div element.
To center a div element, set its margin property to auto and specify a width.
Set the div element's margin property to auto
Specify a width for the div element
Example: div { margin: auto; width: 50%; }
Q7. What is a element in Html
An element in HTML is a building block of a webpage, defined by tags and containing content and attributes.
HTML elements are defined by tags, such as
for paragraphs or for images.
Elements can contain content, such as text or other elements.
Elements can also have attributes, such as the src attribute for images or the href attribute for links.
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
Reviews
Interviews
Salaries
Users/Month