130 likes | 144 Views
HTML and CSS developers are very high is demand, so it is very important to know about the common questions that are being asked at the time of interview.<br>
E N D
10 Most Common Interview Questions and Answers of HTML5 and CSS3
Question – 1 Answer -1 • When writing an HTML code, if you want to display something in the next line then that content is placed inside a div tag. It has display type block. • Whereas, when we want a content in same line then it is written in span tag instead of div tag. It has display type inline. Now content will be beside the previous content. Next slide for example... Enlist the difference between span and div?
Question - 2 Answer -2 • CSS selectors are used to select the element in HTML code which you want to modify. It is done with the help of selecting id, class, attribute, universal selector etc. • Following are the syntax : • universal selector : * • class selector: .nameofclass • id selector : #nameofid • type selector: There are various input types such as - input, body, p, h1-h8, button etc. What is the meaning of CSS selector?
Question - 3 Answer -3 • CSS Box model is responsible for providing dimensions to each and every element that is there in a webpage whether it is inline and block. • There are 4 elements that consider this rule: • First one is Content - It contains the text, image, video and various content. • Second one is Padding - It is used to add spacing between the border of the box and the content that is inside the box. • Then third one is Border - It is the line between the padding and margin of the box. • Then the last one is Margin - It is used to adjust the space between the main box and the boxes that are surrounding that box. What are the different elements of CSS box model?
Question - 4 Answer -4 • The selector :active shows that a content is active that is currently in use. The default color of this link is the color of the link. • The selector :link denotes the unvisited link. The link that has not been visited even once. The default color of these kinds of link is blue (#0066cc). • The selector :visited denotes the link that has been visited. The default color of these kinds of link is purple (#cc33cc). What is the difference between active, visited and normal or unvisited links?
Question – 4 (contd...) - Unvisited Link - Visited Link
Question - 5 Answer -5 • There are mainly three types of lists that are used: • First, Unordered List: • The items which can be placed in any order, these kinds of elements are placed in ul list format. • Then second one is Ordered List: • When it is mandatory to keep items or particular steps in order then ol list format is used. It can be decimal number, roman numbers, upper-case alphabets, lower class alphabets etc. • For Examples: Steps of explaining a recipe need to listed in an order manner. What are the different types of lists that are used while designing a webpage?
Question – 5 (contd...) Last one is Description List: Before the introduction of HTML5 these used to be called as definition lists. It consists of name and value. One name can be associated with more than one value and vice-versa is also true.
Thanks! For More Questions, read the following blog :10 Most Common Interview Questions and Answers of HTML5 and CSS3 Visit our website - www.admecindia.co.in ADMEC MULTIMEDIA INSTITUTE