Which option indicates that text in a document is aligned to both the left and right margins?
Contents Show
This section of the specification discusses some HTML elements and attributes that may be used for visual formatting of elements. Many of them are deprecated. 15.1 Formatting15.1.1 Background colorAttribute definitions bgcolor = color [CI]Deprecated. This attribute sets the background color for the document body or table cells.This attribute sets the background color of the canvas for the document body (the BODY element) or for tables (the TABLE, TR, TH, and TD elements). Additional attributes for specifying text color can be used with the BODY element. This attribute has been deprecated in favor of style sheets for specifying background color information. 15.1.2 AlignmentIt is possible to align block elements (tables, images, objects, paragraphs, etc.) on the canvas with the align attribute. Although this attribute may be set for many HTML elements, its range of possible values sometimes differs from element to element. Here we only discuss the meaning of the align attribute for text. Attribute definitions align = left|center|right|justify [CI]Deprecated. This attribute specifies the horizontal alignment of its element with respect to the surrounding context. Possible values:
The default depends on the base text direction. For left to right text, the default is align=left, while for right to left text, the default is align=right. DEPRECATED EXAMPLE:
Using CSS, for example, you could achieve the same effect as follows:
Note that this would center all H1 declarations. You could reduce the scope of the style by setting the class attribute on the element:
DEPRECATED
EXAMPLE:
which, with CSS, would be:
DEPRECATED EXAMPLE:
With CSS, the text-align property is inherited from the parent element, you can therefore use:
To center the entire document with CSS:
The CENTER element is exactly equivalent to specifying the DIV element with the align attribute set to "center". The CENTER element is deprecated. 15.1.3 Floating objectsImages and objects may appear directly "in-line" or may be floated to one side of the page, temporarily altering the margins of text that may flow on either side of the object. Float an objectThe align attribute for objects, images, tables, frames, etc., causes the object to float to the left or right margin. Floating objects generally begin a new line. This attribute takes the following values:
DEPRECATED EXAMPLE: Some alignment attributes also permit the "center" value, which does not cause floating, but centers the object within the current margins. However, for P and DIV, the value "center" causes the contents of the element to be centered. Float text around an objectAnother attribute, defined for the BR element, controls text flow around floating objects. Attribute definitions clear = none|left|right|all [CI]Deprecated. Specifies where the next line should appear in a visual browser after the line break caused by this element. This attribute takes into account floating objects (images, tables, etc.). Possible values:
Consider the following visual scenario, where text flows to the right of an image until a line is broken by a BR: ********* ------- | | ------- | image | -- If the clear attribute is set to none, the line following BR will begin immediately below it at the right margin of the image: ********* ------- | | ------- | image | -- DEPRECATED EXAMPLE: ********* ------- | | ------- | image | -- Using style sheets, you could specify that all line breaks should behave this way for objects (images, tables, etc.) floating against the left margin. With CSS, you could achieve this as follows: To specify this behavior for a specific instance of the BR element, you could combine style information and the id attribute: ... 15.2 FontsThe following HTML elements specify font information. Although they are not all deprecated, their use is discouraged in favor of style sheets. 15.2.1 Font style elements: the TT, I, B, BIG, SMALL, STRIKE, S, and U elementsStart tag: required, End tag: required Attributes defined elsewhere
Rendering of font style elements depends on the user agent. The following is an informative description only. TT: Renders as teletype or monospaced text.I: Renders as italic text style.B: Renders as bold text style.BIG: Renders text in a "large" font.SMALL: Renders text in a "small" font.STRIKE and S: Deprecated. Render strike-through style text.U: Deprecated. Renders underlined text.The following sentence shows several types of text:
These words might be rendered as follows: It is possible to achieve a much richer variety of font effects using style sheets. To specify blue, italic text in a paragraph with CSS:
Font style elements must be properly nested. Rendering of nested font style elements depends on the user agent. 15.2.2 Font modifier elements: FONT and BASEFONTFONT and BASEFONT are deprecated. See the Transitional DTD for the formal definition. Attribute definitions size = cdata [CN]Deprecated. This attribute sets the size of the font. Possible values:
The FONT element changes the font size and color for text in its contents. The BASEFONT element sets the base font size (using the size attribute). Font size changes achieved with FONT are relative to the base font size set by BASEFONT. If BASEFONT is not used, the default base font size is 3. DEPRECATED EXAMPLE:
This might be rendered as: The following shows an example of the effect of relative font sizes using a base font size of 3: The base font size does not apply to headings, except where these are modified using the FONT element with a relative font size change. 15.3 Rules: the HR elementStart tag: required, End tag: forbidden Attribute definitions align = left|center|right [CI]Deprecated. This attribute specifies the horizontal alignment of the rule with respect to the surrounding context. Possible values:
The default is align=center. noshade [CI]Deprecated. When set, this boolean attribute requests that the user agent render the rule in a solid color rather than as the traditional two-color "groove".size = pixels [CI]Deprecated. This attribute specifies the height of the rule. The default value for this attribute depends on the user agent.width = length [CI]Deprecated. This attribute specifies the width of the rule. The default width is 100%, i.e., the rule extends across the entire canvas.Attributes defined elsewhere
The HR element causes a horizontal rule to be rendered by visual user agents. The amount of vertical space inserted between a rule and the content that surrounds it depends on the user agent. DEPRECATED EXAMPLE: These rules might be rendered as follows: Which text is aligned to both left and right margins?In a paragraph that is justified, text is aligned with both margins.
Which option is used to align the text to the left side of the document?To align the text left, press Ctrl+L. To align the text right, press Ctrl+R. To center the text, press Ctrl+E.
How do I align both left and right in Word?How to Adjust Paragraph Alignment in Word. Click anywhere in a paragraph you want to align, or select multiple paragraphs.. Click an alignment option in the Paragraph group. Shortcuts: To align left, press Ctrl + L. To align right, press Ctrl + R. To align center, press Ctrl + C. To justify, Ctrl + J.. What is the alignment called when the text is aligned at the left margin?justified—text is aligned along the left margin, with letter-spacing and word-spacing adjusted so that the text falls flush with both margins, also known as fully justified or full justification; centered—text is aligned to neither the left nor right margin; there is an even gap on each side of each line.
|