Chapter 2

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

You want to apply an inline style to a single element that will override the style applied to that element by the external style sheet to which the HTML document is attached. How do you apply an inline style?

directly to element

Remy Sharp has created a script that has become the de facto standard for many Web developers around the world. The script enables Web developers to:

support HTML5 in older IE browsers.

How do you embed CSS in a single Web page as an internal style sheet?

Add the <style> element to the <head> section of your HTML file.

What is a CSS selector?

An element to which styles are applied

What page layout should you use if you want to create Web pages whose text, images and layout will not vary from browser to browser?

Fixed width

body {background-color: #008080; color: #FFFFFF;} This code is an example of what?

Rule A rule in a style sheet is a format instruction that consists of a specified selector and the properties and values applied to it. The following rule will change the color of the body background to teal, then set the font color to white:

Question 1 : What position property values does CSS provide to position block-level elements?

Static, relative, absolute, fixed and inherit

If you use CSS to specify a particular font, what occurs when you try to view a Web page on a system in which the font is not available?

The browser will display the content to which the font is applied in a default font face.

You can link an HTML file to an external style sheet using the HTML element. Which of the following attributes specifies the location of the linked document?

The href attribute

Why would you use an id selector with your CSS styles?

The id selector specifies CSS styles for one unique element, such as one paragraph that requires red text. You define your id selectors in your CSS file, then apply them as inline styles to HTML elements in the HTML file. The class selector specifies a CSS style that you can apply to a group of elements. The <link> element's type attribute specifies an external CSS file's MIME type. The <link> element's rel attribute defines the relationship between an HTML document and the external CSS file to which it is linked.

What is the default value for aligning images relative to text using CSS?

bottom

Question 30 : If you want a particular block-level element to always appear at the upper-right corner of the browser window, no matter how far down a user scrolls on the page, which type of CSS positioning should you apply?

Fixed- The element remains in the same position when the page is scrolled

Why would you use a class selector with your CSS styles?

To apply a specific CSS style to multiple elements

If your company standard is to use Windows XP and IE8, what can you do to create a company intranet using HTML5 and CSS elements?

You must add JavaScript code to your HTML documents to create HTML5 structural elements, and add a new rule to CSS to define the HTML5 structural elements as block-level elements. Ie8 doesn't support HTML5


संबंधित स्टडी सेट्स

physics chapter 2 vocabulary & conversions

View Set

CISC 192 - MyProgrammingLab - Chapter 14

View Set

End of Life, Palliative Care, Spirituality, and Pain

View Set

Vascular Disorders Ch 37 Evolve, NTB

View Set