A CSS or cascading style sheets style that is written directly on the element or tag it affects.
How to align total webpage center?
body{margin: 0 auto;}
What is a DTD? What DTD do you generally use?
A DTD is a Document Type Definition, also know as DOCTYPE. In a document served as text/html, the DOCTYPE informs the browser how to interpret the content of the page. If the the doctype is not declared, the browser assumes you don’t know how to code, and goes into “quirks mode”. If you know what you are doing and include a correct XHTML DOCTYPE, your page will be rendered in “standards mode”.
What are the possible values for the display attribute that are supported by all browsers?
Display : Block;
What is the default value for the display attribute for the image element?
what is the difference between inline and block level elements ?
A block-level element is an element that creates large blocks of content like paragraphs or page divisions. They start new lines of text when you use them, and can contain other blocks as well as inline elements and text or data.An inline element is an element that define text or data in the document like STRONG makes the enclosed text strongly emphasized and Q says the enclosed text is a quotation. They don’t start new lines when you use them, and they generally only contain other inline tags and text or data. Or they include nothing at all, like the BR tag.
What does display: run-in do?
Creates either block or inline boxes, depending on context. Properties apply to run-in boxes based on their final status (inline-level or block-level).
Difference between “visibility:hidden” and “display:none”? These two style properties do two different things.
visibility: hidden hides the element, but it still takes up space in the layout and display: none removes the element completely from the document. It does not take up any space, even though the HTML for it is still in the source code.
What are the pros and cons of using display:none?
Pros
Makes fonts look smoother
Rounded edges look round
Type is easier to read (for some) because it looks more like what printed type looks like
Some people feel it’s prettier
Cons
Small fonts become too fuzzy to read
Sharp edges may be fuzzy and not precise
You can’t print anti-aliased text as it comes out blurred
Images are generally larger
Type is easier to read (for some) because the blurring is reduced and the fonts are clear
When to Use Anti-aliasing or Font Smoothing
Anti-aliasing is a good choice for web images with flat colors and curves and text that is intended for web pages. With text, you should try to let the browser display the fonts with CSS, rather than putting them in a graphic.
What are the five possible values for “position”?
Values for position: static, relative, absolute, fixed, inherit