What are inline, block, parent, children, replaced and floating elements?


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’s properties.

Replaced elements
which content is replaced. For example content of the IMG element is replaced with an image, content of the INPUT element is replace with a field.

Floating elements which follow the flow of a parent - inline elements.



Explore posts in the same categories: CSS Interview Questions


BOOKMARK THIS : del.icio.us | Digg it | Furl | reddit |


Related Questions :

  • Will the inline function be compiled as the inline function always? Justify.
  • An inline function is a request and not a command. Hence it won't be compiled as an inline function always. Explanation:Inline-expansion...
  • What is inline function?
  • The inline keyword tells the compiler to substitute the code within the function definition for every instance of a function...
  • What is inline schema, how does it works?
  • Schemas can be included inside of XML file is called Inline Schemas.This is usefulĀ when it is inconvenient to...
  • A table is classified as a parent table and you want to drop and re-create it. How would you do this without affecting the children tables?
  • Disable the foreign key constraint to the parent, drop the table, re-create the table, enable the foreign key constraint....
  • Explain what a DiffGram is, and a good use for one?
  • A DiffGram is an XML format that is used to identify current and original versions of data elements. When sending...
  • What do you mean by Correlated subquery?
  • Subqueries, or nested queries, are used to bring back a set of rows to be used by the parent query....
  • What is a zombie?
  • When a program forks and the child finishes before the parent, the kernel still keeps some of its information about...
  • How can a parent and child process communicate?
  • A parent and child can communicate through any of the normal inter-process communication schemes (pipes, sockets, message queues, shared memory),...
  • Is it necessary that each try block must be followed by a catch block?
  • It is not necessary that each try block must be followed by a catch block. It should be followed by...
  • Can we get the remainder of a floating point division ?
  • Yes. Although the % operator fails to work on float numbers we can still get the remainder of floating point...

    Comment:

    You must be logged in to post a comment.