Home >> Interviews Q & A >> HTML and CSS Interview Questions

HTML and CSS Interview Questions

HTML and CSS Interview Questions: HTML (Hypertext Markup Language) and CSS (Cascading Style Sheets) are two of the core technologies for building an interactive web page.
Q:- What is HTML?

Hypertext Markup Language is the standard markup language for creating web pages and web applications

HTML5 is the latest version of Hypertext Markup Language

Q:- What is CSS?
  • CSS short form of Cascading Style Sheet
  • CSS is basically used to describe the style of an HTML document.
You can use CSS in a webpage using following Methods:
  1. Inline:
    Inline, used to style only a small piece of code
  2. HTML and CSS Interview Questions

  3. Internal:
    Internal css are Embedded in HTML Pages.
  5. External:
    it is used from external sources
Q:- Compare RGB with Hexadecimal color code?

In CSS, a color can be specified in two ways:

  1. Hexadecimal color code:
    A color is represented by 6 characters is hexadecimal color coding. It is a combination of numbers and letters and is preceded by #.
  2. .my-breadcrumb a {
        color: #f44a56;
        font-weight: bold;
  3. RGB color code:
    A mixture of red, green and blue represents a RGB color. The value of a color can also be specified.
  4. rgb(r,g,b):
Full Stack Tutorials

Author | Blogger @FullStackTutorials | View all articles