Icancerhelp India
10+ Synergy Maritime Interview Questions and Answers
Q1. How to check , uncheck checkbox by clicking on lebel ?
Use 'for' attribute in label tag to associate with checkbox id
Add 'for' attribute in label tag with value as the id of the checkbox input element
Clicking on the label will toggle the checkbox state
Q2. Can we make a page responsive without media queries ?
No, media queries are necessary for responsive design.
Media queries are used to apply different styles based on screen size
Without media queries, the design would not adapt to different devices
Responsive design is essential for a good user experience
Q3. How to work on light and dark theme in same project.
Use CSS variables to define colors and switch between themes based on user preference.
Define CSS variables for light and dark theme colors
Use JavaScript to detect user preference for light or dark theme
Switch between themes by updating CSS variables with JavaScript
Consider using a toggle button or system preference to allow users to switch themes manually
Q4. Position relative and absolute how both are works ?
Position relative and absolute are CSS properties used for positioning elements on a webpage.
Position relative: element is positioned relative to its normal position in the document flow.
Position absolute: element is positioned relative to its nearest positioned ancestor.
Position absolute takes the element out of the normal document flow.
Position relative can be used to create subtle adjustments to an element's position.
Position absolute is often used for creating overlays or...read more
Q5. What is the use on meta tags in html ?
Meta tags in HTML are used to provide metadata about the HTML document.
Meta tags are placed in the head section of an HTML document.
They provide information such as character set, viewport settings, keywords, and description.
Meta tags can also be used for search engine optimization (SEO) purposes.
Example: <meta charset='UTF-8'>
Q6. How to make a webpage responsive ?
A webpage can be made responsive by using media queries, flexible grids, and images, and by optimizing the layout for different devices.
Use CSS media queries to adjust the layout based on screen size
Use flexible grids and images that can scale to fit different screen sizes
Optimize the layout for touch devices by using larger buttons and spacing
Test the responsiveness on different devices and adjust as needed
Q7. Difference between tags and elements in html ?
Tags are used to define the structure of an element in HTML, while elements are the actual components that make up a webpage.
Tags are enclosed in angle brackets (<>) and define the beginning and end of an element.
Elements consist of the opening tag, content, and closing tag.
Example: <p> is a tag that defines a paragraph element, while <p>This is a paragraph</p> is the complete paragraph element.
Q8. What is Mixin in SCSS ?
Mixin is a reusable block of code in SCSS that can be included in other stylesheets.
Mixin allows developers to define a set of CSS declarations that can be reused throughout the stylesheet.
It helps in reducing code duplication and makes the code more maintainable.
Mixin can take arguments and can be used to generate different styles based on the arguments passed.
Mixin can be defined using the @mixin directive and included using the @include directive.
Q9. Difference between flexbox and grid ?
Flexbox is one-dimensional layout while Grid is two-dimensional layout.
Flexbox is best suited for arranging items in a single row or column.
Grid is best suited for arranging items in rows and columns.
Flexbox has a main axis and a cross axis.
Grid has rows and columns that intersect to form grid cells.
Flexbox is great for responsive design and centering items.
Grid is great for complex layouts and aligning items precisely.
Flexbox is supported by all modern browsers.
Grid is suppo...read more
Q10. Why we use SCSS ?
SCSS is used to write more maintainable and scalable CSS code.
SCSS allows for nesting of CSS rules, making it easier to read and organize code.
Variables and mixins in SCSS can be reused throughout the codebase, reducing redundancy.
SCSS also supports inheritance, allowing for more efficient and modular code.
It compiles to regular CSS, so it can be used in any web project.
SCSS is widely used in modern web development frameworks like React and Angular.
Q11. What Viewport is ?
Viewport is the visible area of a web page displayed on a device's screen.
Viewport determines how much content can be seen without scrolling
It can be adjusted using meta tags in HTML or CSS media queries
Viewport size varies depending on the device and orientation
Viewport can affect the layout and responsiveness of a website
Q12. Benefits of using SCSS ?
SCSS provides benefits like variables, nesting, mixins, and inheritance to make CSS more efficient and maintainable.
SCSS allows for the use of variables, which can be reused throughout the stylesheet.
Nesting in SCSS makes it easier to read and organize code.
Mixins allow for the reuse of code snippets, reducing the amount of code needed.
Inheritance in SCSS allows for the creation of base styles that can be extended and modified as needed.
SCSS also provides functions and operat...read more
Q13. Box model in CSS ?
Box model is a fundamental concept in CSS that defines how elements are rendered on a web page.
Box model consists of content, padding, border, and margin.
Content is the actual content of the element.
Padding is the space between the content and the border.
Border is the line that surrounds the element.
Margin is the space between the border and the adjacent elements.
Box-sizing property can be used to change the box model behavior.
Default box-sizing value is content-box.
border-bo...read more
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month