• +91 9723535972
  • info@interviewmaterial.com

CSS Interview Questions and Answers

Related Subjects

Question - What is shorthand property?

Answer - Shorthand property is a property made up of individual properties that have a common "addressee". For example properties: font-weight, font-style, font-variant, font-size, font-family, refer to the font. To reduce the size of style sheets and also save some keystrokes as well as bandwidth they can all be specified as one shorthand property font, e.g.: H1 {font-weight: bold; font-style: italic; font-variant: small-caps; font-size: 160%; font-family: serif} can be all shorthanded to a space separated list: H1 {font: bold italic small-caps 160% serif} Note: To make things even simpler the line-height property can be specified together with the font-size property: H1 {font: bold italic small-caps 160%/170% serif} How to use CSS building a standards based HTML template? It should: 1. Contain: header, navigation, content, footer 2. Use well-structured HTML 3. Be error-free and encourage good coding Let’s start with number one there: HTML document split up in four parts all with different meaning, use the -tag. Div is short for “division” and isn’t header, navigation and so on ... !DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> Your own page title

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners