Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Which of the following is the main advantage of the independent class selector?

ID: 3848809 • Letter: W

Question

Which of the following is the main advantage of the independent class selector? 1. it can be applied to to any element of the text on your Web page 2. it is similar to the dependent class selector 3. its complexity 4. there are no any advantages Which of the following is an example of the padding shorthand property? 1. padding-short: 5px: 2. padding: 5px: 3. padding-left: 10px: 4. padding-top: 10px: Max asks James which of the following properties does not require the measurement to be stated for the value? 1. text-indent 2. word-spacing 3. line-height 4. letter-spacing How many columns can a layout contain? 1. not more than three 2. only one 3. as many as needed 4. not more than two

Explanation / Answer

QUESTIONS 12: Answer 1

Class selectors let you assign styles in a way that is independent of document elements. These selectors can be used on their own or in conjunction with type selector. You use class selectors in your web pages by giving the class attribute for the appropriate html elements the name of the class selector. You can define style rules based on the class attribute of the elements. All the elements having that class will be formatted according to the defined rule.

The universal selector set a value for all elements in the HTML document. The universal selector is an asterisk (*) and it acts like a wildcard and matches all element types in an HTML page. In some situations you want to apply a rule to all elements in an HTML page then you can use this selector.

QUESTIONS 13: Answer 2

Padding - Shorthand Property: To shorten the code, it is possible to specify all the padding properties in one property. The padding property is a shorthand property for the following individual padding properties:

padding-top

padding-right

padding-bottom

padding-left

example:

padding: 50px 30px 50px 80px;

If the padding property has one value:

padding: 25px;

Then all four paddings are 25px

QUESTIONS 14: Answer 1

Text Properties:

The frequently used text properties are:

text-align: left|right|center|justify

line-height: normal|n|n%|factor

Set the height of the line. The factor gives the factor to be multiplied by the current font-size. E.g., factor of 1.5 means 1.5 times of the current font.

text-decoration: none|underline|overline|line-through|blink

Graphic designer dislikes "underline" and considers it as a legacy of typewriter. "blink" is even worse!

text-transform: none|uppercase|lowercase|capitalize

The capitalize transforms the first letter to uppercase.

text-indent: n|n%

Indent the first-line of the paragraph. To indent all the lines of a paragraph (i.e., the whole block), use padding or margin.

letter-spacing: normal|n

word-spacing: normal|n

Additional spacing to be applied to letters or words.

white-space: normal|pre|nowrap

Specify how white spaces inside the element is to be handled. For "pre" (pre-formatted), preserve the white-spaces.

QUESTIONS 15: Answer 3

Design and organize your page. Decide on the look and feel of your website. How many columns? What are the major sections (e.g., header, navigation menu, main content, sidebar, table of content, footer)? Do you need a navigation menu or panel? What is your theme (colors, fonts)? And so on.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote