shlok.mobi
General Knowledge Questions and Answers - 1591
CSS
Questions and Answers
Prepare for Interview
Question:
What are inline, block, parent, children, replaced and floating elements?
Answer:
Inline
elements which do not have line breaks. Can occur in block elements or other inline elements, cannot contain block elements.
Inline elements in HTML 3.2; EM, STRONG, DFN, CODE, SAMP, KBD, VAR, CITE, TT, I, B, U, STRIKE, BIG, SMALL, SUB, SUP, A, IMG, APPLET, FONT, BASEFONT, BR, SCRIPT, MAP, INPUT, SELECT, TEXTAREA.
Inline elements in HTML 4.0; EM, STRONG, DFN, CODE, SAMP, KBD, VAR, CITE, ABBR, ACRONYM, TT, I, B, BIG, SMALL, SUB, SUP, A, IMG, OBJECT, BR, SCRIPT, MAP, Q, SPAN, BDO, INPUT, SELECT, TEXTAREA, LABEL, BUTTON, (INS, DEL).
Inline elements in HTML 4.0 Transitional; EM, STRONG, DFN, CODE, SAMP, KBD, VAR, CITE, ABBR, ACRONYM, TT, I, B, U, S, STRIKE, BIG, SMALL, SUB, SUP, A, IMG, APPLET, OBJECT, FONT, BASEFONT, BR, SCRIPT, MAP, Q, SPAN, BDO, IFRAME, INPUT, SELECT, TEXTAREA, LABEL, BUTTON, (INS, DEL).
Block
elements which do have line breaks. May occur in other block elements, cannot occur in inline elements, may contain both block and inline elements.
Block elements in HTML 3.2; H1, H2, H3, H4, H5, H6, ADDRESS, P, DL, DT, DD, UL, OL, DIR, MENU, LI, DIV, CENTER, BLOCKQUOTE, PRE, HR, ISINDEX, TABLE, FORM.
Block elements in HTML 4.0; P, H1, H2, H3, H4, H5, H6, UL, OL, PRE, DL, DIV, NOSCRIPT, BLOCKQUOTE, FORM, HR, TABLE, FIELDSET, ADDRESS, (INS, DEL).
Block elements in HTML 4.0 Transitional; P, H1, H2, H3, H4, H5, H6, UL, OL, DIR, MENU, PRE, DL, DIV, CENTER, NOSCRIPT, NOFRAMES, BLOCKQUOTE, FORM, ISINDEX, HR, TABLE, FIELDSET, ADDRESS, (INS, DEL).
Parents and children
elements which either contain (parents) or are in the content of (children) other elements, e.g.

texttexttext

. P is a parent of STRONG. STRONG is a child of P. If not specified otherwise, children will inherit parent


More Questions :
  • What is two auto margins?
  • How do you override the underlining of hyperlinks?
  • How do I move the list bullet to the left and right?
  • What are the various style sheets?
  • What is attribute selector?
  • How do I combine multiple sheets into one?
  • Why do style sheets exist?
  • How do I have a background image that isnt tiled?
  • How do I eliminate the blue border around linked images?
  • Why was the decision made to make padding apply outside of the width of a box, rather than inside, which would seem to make more sense?
  • Can Style Sheets and HTML stylistic elements be used in the same document?
  • Why does Netscape lose my styles ?
  • What is Extensible Stylesheet Language "XSL"?
  • How can I specify two different sets of link colors?
  • When is auto different from 0 in margin properties?
  • What does the Cascading in Cascading Style Sheets mean?
  • What is cascade?
  • Are Style Sheets case sensitive?
  • How do I write my style sheet so that it gracefully cascades with users personal sheet ?
  • What is latest version, CSS4 or CSS3?
  • Test your English Language
  • Comics of the Day
  • Goa
  • Precautions while using Electrical Equipment
  • Celebration of Nag Panchami
  • Tips to get ready for Start a Hobby
  • 101 Ideas for Cooking
  • Watches You Cant Stop Watching
  • Class 9 - Matter in our Surroundings
  • Amritsar
  • 101Baby Friendly Decorations Ideas
  • Accessories for Girls
  • Things Psychology Tells You About Yourself
  • Suryakant Tripathi Nirala
  • Ekadashi
  • Myth about Alien
  • New Year Party Game Ideas
  • Funny Things To Do This Winter
  • Class 9 - Linear Equations In Two Variables
  • Valentines Day Party Idea
  • Popular Men Deodorant Brands
  • Crazy Things You Will Only Find In Japan
  • loading...

    Did you Know :

    Loudness :
    Thunder storm : 110 db
    More ...

    Shlok Consultants