Coding Tag

Start Learning the Technical and non-technical skill online with Coding tag . Coding tag is Successful online preparation with HTML,CSS JAVA,SQL and more.

HTML Image Tag || Coding Tag — June 8, 2020

HTML Image Tag || Coding Tag

Images are very important to make a page beautiful and more informative . This tutorial will take you through simple steps to use images in your web pages.

This tag is an empty tag that includes attributes only, There is no need for any closing tag for html image tag.

Insert Image

You can insert any image in your web page by using <img> tag. Following is the simple syntax to use.

Example:

<!DOCTYPE html>
<html>
   <head>
      <title>Using Image in Webpage</title>
   </head>
   <body>
      <p>Simple Image Insert</p>
      <img src = "/images/codingtag.png" alt = "Image text" />
   </body>
</html>

Image Width/Height

The heights and the widths are custom ,means you can change them how we can be. You can specify width and height of the image in terms of either pixels or percentage of its actual size,

<!DOCTYPE html>
<html>
   <head>
      <title>Set Image Width and Height</title>
   </head>
   <body>
      <p>Setting image width and height</p>
      <img src = "/images/codingtag.png" alt = "Image text" width = "150" height = "100"/>
   </body>
</html>

Set Image Border

Hey By default, image have a border, and the left work you have is only to specify thickness in terms of pixels using border attribute.

NOTE,

If the thickness is “zero” , no border around the picture

<!DOCTYPE html>
<html>
   <head>
      <title>Set Image Border</title>
   </head>
   <body>
      <p>Setting image Border</p>
      <img src = "/images/codingtag.png" alt = "Image text" border = "3"/>
   </body>
</html>

Set Image Alignment

Image is aligned at the left side of the page by default, but to align the image to another side of the page like right left and center, it needs to use align attribute to set it

Example

<!DOCTYPE html>
<html>
   <head>
      <title>Set Image Alignment</title>
   </head>
   <body>
      <p>Setting image Alignment</p>
      <img src = "/images/codingtag.png" alt = "Image text" border = "3" align = "right"/>
   </body>
</html>

Well done you have done great, Learning small can give you high returns So keep doing your Showcasing practice and learning layout from now. Being a intermediate type all the code above in any editor like notepad and save with an extension (.html), and after the saving part your unique work will be shown by any browser.

You can easily prepare html interview questions and answers from coding tag for by implementing all examples.

Top 10 CSS Interview Questions — March 23, 2020

Top 10 CSS Interview Questions

Are you preparing for CSS and don’t know where to start? Well, then you are in the right place! In this blog, we have prepared a list of CSS Interview Questions that are most likely to be asked by the interviewers. This helps the students prepare thoroughly for the technical interview.

1. What is the use of Opacity in CSS?

The CSS opacity property is used to specifies the clarity of the image. In technical terms, Opacity is defined as the degree to which background element is allowed to show through an object. For example:

<style>

img.transparent {

opacity: 0.5;

filter: alpha(opacity=32); /* For IE8 and earlier */

}

</style>

2. Name some CSS style components.

Some CSS Style components are:

    • Selector
    • Property
    • Value

 

3. Explain the universal selector.

The universal selector works by matching the names of any of the element type instead of selecting any particular elements of a specific type.

<style>

* {

color: green;

font-size: 20px;

}

</style>

 

4. Name the property for avoiding image repetition in the background?   

The “background-repeat” property repeats the background image horizontally and vertically. Some images are repeated only horizontally or vertically.

<style>    

body {

background-image: url(“water1.png”);

margin-left:100px;

}

</style>

 

5. Name the property for avoiding scrolling of image in the background. 

The background-attachment property is used to specify if the background image is fixed or scroll with the rest of the page in the browser window. if you set the background image to fix, then the image will not move during scrolling in the browser. Let’s take an example with the fixed background image.

background: white url(‘water.png’);  

background-repeat: no-repeat;

background-attachment: fixed;

 

6. What is the RGB stream?

RGB is a system of representing a certain colour in CSS. There are three streams in this nomenclature of representing a colour, namely the Red, Green and Blue stream. The intensity of the three colours is represented in numbers ranging from 0 to 256. This allows CSS to have a wide range of colours spreading across the entire spectrum of visible colours.

7. What are CSS Sprites? 

CSS sprites combine multiple images into one single larger image. It is a commonly-used technique for icons (Gmail uses it). This is how you could implement it:

  1. Use a sprite generator that packs multiple images into one and generates the appropriate CSS for it.
  2. Each image would have a corresponding CSS class with background-imagebackground-position and background-size properties defined.
  3. To use that image, add the corresponding class to your element.

 

8. Mention a few benefits of using CSS Sprites.

CSS sprites come with their own advantages. Here are a few of them –

  • Reduce the number of HTTP requests for multiple images (only one single request is required per sprite sheet). But with HTTP2, loading multiple images is no longer much of an issue.
  • Advance downloading of assets that won’t be downloaded until needed, such as images that only appear upon pseudo-states{:hover}. Blinking wouldn’t be seen.

 

9. What is the float property used for in CSS?

The float CSS property places an element on the left or right side of its container, allowing text and inline elements to wrap around it. The element is removed from the normal flow of the page, though it still remains a part of the flow (in contrast to absolute positioning). Below is the usage of float

float: none;

float: left;

float: right;

 

10. Name a few prominent CSS frameworks.

Below are the prominent CSS frameworks in the web development industry today:

  • Bootstrap
    Bootstrap is the most popular CSS framework for developing responsive and mobile-first websites. The newest version of Bootstrap is Bootstrap (4.4.x) .
  • Foundation
    Foundation is a responsive front-end framework. Foundation provides a responsive grid and HTML and CSS UI components, templates, and code snippets, including typography, forms, buttons, navigation, and other interface elements, as well as optional functionality provided by JavaScript extensions.
  • Semantic UI
    Semantic UI is a modern front-end development framework, powered by LESS(CSS-preprocessor) and jQuery. It has a sleek, subtle, and flat design look that provides a lightweight user experience.
  • Ulkit
    UIkit is a lightweight and modular front-end framework for developing fast and powerful web interfaces.

 

css interview questions answers

We have a blog of  Top 30 CSS Interview Questions that are most likely to be asked by the interviewers. If you want to prepare deeply well for your interviews, you can also visit Technical Interview Questions to learn more. For more updated interview questions you can visit our website www.codingtag.com.

Top Answers to CSS Interview Questions — March 12, 2020

Top Answers to CSS Interview Questions

  1. What is External Style Sheet? How would you hyperlink it?

External Style Sheet is the sheet which comprises fashion statistics and can be related with one or greater HTML files. With the help of External Style Sheet, the entire website can be formatted and styles simply through enhancing one single document. The report is hooked up with HTML documents with the help of the LINK element which resides inside the HEAD element.

css interview questions answers

  1. What are the advantages and downsides of using External Style Sheets?

The benefits of External Style Sheets are as follows :

  • With the assistance of External Style Sheets, the kinds of numerous documents may be organized from one single document.
    • In External Style Sheets, Classes can be made to be used on severa HTML details in many kinds of the site.
    • In complex contexts, Methods like selector and grouping can be carried out to apply styles.
    The disadvantages of External Style Sheets are as follows :
    • A greater download is important to import style records for each report.
    • The execution of the record can be deferred till the external style sheet is loaded.
    • While implementing fashion sheets, we want to check Web pages with more than one browsers in order to check compatibility issues.
  1.  What are the benefits and disadvantages of Embedded Style Sheets?

The blessings of Embedded Style Sheets are as follows :

  • In Embedded Style Sheets, it’s far feasible to generate training to be used on a couple of tag types in the record.
    • In Embedded Style Sheets, In comparison to In External Style Sheets, no greater download is compulsory to import the statistics.
    The hazards of Embedded Style Sheets are as follows :
    • In Embedded Style Sheets, Controlling the styles for more than one file from one report isn’t always viable.
  1.  What is CSS selector?

A CSS selector is the part of a CSS set that chooses the content material that calls for style. It is also referred to as a connection between the stylesheet and HTML files. CSS selectors allow you to desire and perform HTML elements. CSS selectors are used to “select” (or “find) HTML elements created on their id, class, type, etc.

  1.  What is Tweening?

Also Known as in-betweening, it’s far the method of making intermediary frames among two pictures to provide the arrival that the first picture develops correctly into the second image. It is a key process which is used in all types of animations. Refined animation software allows you to discover particular gadgets in an photo and describe how they may be able to flow and change in the course of the tweening procedure.

coding-tag (2)

  1.  What is Responsive Web design?

Responsive Web layout is the technique that recommends that layout and development have to respond to the user’s sports and situation primarily based on numerous additives including length of the screen, the platform and the orientation. The instruction contains a combination of bendy layouts and grids, snap shots and highbrow use of CSS media queries.

  1. What is the usage of CSS Image sprites?

It is a group of photos positioned into one image. A net web page with multiple pictures can take quite a few times to load and makes use of a couple of server requests to mission the same. With the help of photo sprites, we can decrease the number of requests to the server and shop time and bandwidth as well.

  1. What is the syntax to link outside the style sheet?

External style incorporates a description that can be related with the HTML document externally. To keep style break free the structure, External fashion sheet is one in all the best and prepared manner.

The syntax for using link External style sheet is as follows :

 

<HTML>

<HEAD>

<LINK REL=STYLESHEET HREF=”Test.css” TYPE=”text/css”>

</HEAD>

</HTML>

  1. How embedded fashion can be connected with HTML files?

Embedded fashion can be applied inside HTML code. It is written using the tag and used below the structure.

The syntax of it is as follows :

<HEAD>

<STYLE TYPE=”text/css”>

style {text-indent: 15pt;}

style1{text-color: #060000;}

</STYLE>

</HEAD>

  1. Why is it imported in an easy manner to insert the report?

Imported style sheets allow you to import the documents that are external or combine one style sheet with another. There may be created many documents, different style sheets to have extraordinary functions. Import function gives the provision to mix many elements or functionality into one. The syntax to import any document is @import notation, that’s used in the tag. There is one rule that means that the final imported sheet will override the preceding ones.


The syntax is shown with the aid of coding as :

The syntax is shown by coding as :

<Link Rel=Stylesheet Href=”Main.Css” Type=”Text/Css”>

<STYLETYPE=”text=css”>

<!–

@import url(http://www.xyz.css);

…. your code

–>

</STYLE>

This is the list of top CSS interview question answers. To learn more about CSS which can help you to enhance your career, read a detailed blog at Coding Tag.

Updates on JavaScript Interview Questions for 2020 — October 22, 2019

Updates on JavaScript Interview Questions for 2020

1-     What is JavaScript?

Javascript is a scripting language, which is everywhere come installed on every modern web browser, It helps to create really beautiful and crazy fast websites, It is also considered as an object-based programming language.

2-     What are the defined Data types in Javascript?

The different types of JavaScript data types are:

  • Boolean: Two possible values (true and false)
  • Number:  Integer, float point.
  • String   :   Double, single quotes, and backticks.
  • Object  :
  • Undefined

3-     Name the company that introduced JavaScript?

A company that proposed JavaScript is “Netscape” which is a software company.

Javascript-Interview-questions
updates javascript interview questions 2020

4-     How to read and write a file in JavaScript?

We can read and write a file in JavaScript by following two methods, they are

  • We can use JavaScript extension
  • file=fopen(getScriptPath(),0); The function fread() can be used for reading file contents
  • file = fopen(“c:\examplefile.txt”, 3); opens the file for writing.
  • str = fread(file,flength(file) ; The function fwrite() can used to write the contents to the file.

Also, read an extensive list of updated top JavaScript Interview Questions for more such answers.

5-    What is negative infinity?

Negativity Infinity is a number in javascript which can be derived by dividing negative number by zero.

6-  How to add new elements dynamically?

<html>

<head>

<title>Add</title>

<script type=”text/javascript”>

function addNode() { var newP = document.createElement(“p”); var textNode = document.createTextNode(” This is a new text node”);

newP.appendChild(textNode); document.getElementById(“firstP”).appendChild(newP); }

</script> </head>

<body> <p id=”firstP”>firstP<p> </body>

</html>

7- What is this keyword in JavaScript ?

There are four rules applies to this in order to know which object is referred by this keyword:

  1. Global Scope
  2. Object Method
  3. Call() or apply() method
  4. Blind() method

Conclusion

Well, I am wrapping up with this. You can read these questions that will surely help you to crack your interview. Get top 30 JavaScript interview questions for more read

Advanced PHP Interview Question 2020 — October 18, 2019
Frequently asked CSS Interview Questions — September 23, 2019

Frequently asked CSS Interview Questions

If you are looking for the best CSS Interview Questions, then you can stop your search now. You are at the right place. The coding tag has prepared a list of interview questions that are often asked. This will help you to get your desired job as a developer.

Listed below are the most often asked CSS interview questions:

What are the modules used in the on-going version of CSS?

The modules which are used in the current version of CSS are

Box Model

Animations

2D/3D Transformations

Selectors

Text Effects

User Interface

Multiple Column Layouts

Continue reading

The Ultimate Guide For Beginners To Learn Css And Html — August 12, 2019
Design a site like this with WordPress.com
Get started