HTML and CSS Interview Questions
Why do we use html?
What is the extension for any html page?
What is the difference between html4 and html5?
What are block level elements?
Provide some examples for block level elements?
What are inline elements?
Provide some examples for inline level elements.
What is comment in html?
How can we connect different or same documents in html?
What is required attribute?
Give structure to write html table?
What is rowspan and colspan in table?
What is tag and attribute in html?
Explain html lists with examples
Write html code to make a form with two text fields, one checkbox and a submit button?
What is ‘audio’ element? How do we define the audio in html?
What is ‘video element? How do we define the video in html?
Which tag is used to define quotations in html?
What is <pre> tag in html?
Which is the purpose of <del> tag?
Which html element is used to draw graphic on a webpage?
Is there any tag in html, with which we can make a progress bar?
What is marquee tag?
Write html code to make a navigation?
Why do we use css?
What are css frameworks?
Name any two css frameworks.
What is concept of responsiveness in css?
How can we make a website responsive without using any css library?
How can we integrate css file in html document?
Which css property is used to change the transparency?
What is z-index?
What is similarity between “display:none” and “visibility:hidden”?
What is difference between “display:none” and “visibility:hidden”?
Why we use “!important”
What is css flexbox?
Write some of the font attributes
What is the difference between ‘class’ and ‘Id’?
Which property is used to manage the scrolling of background image?
Why we use @font-face?
What is the difference in ‘capitalize, uppercase’ and ‘lowercase’ in text-transform property?
How can we hide the bullets of <ul>?
How universal selector is written in css?
What does “margin: 0 auto” means?
How can we put shadow to elements?
What is purpose of using ‘postion:fixed’?
What are the basic components of css box model?
Provide some different ways to define a color?
Which css property is used to move, rotate, scale elements?
About The Author