THE TEXT ELEMENTS. THE HEADING ELEMENTS,,,, and - introduce new section of content as a title or a...
-
Upload
alexandrina-price -
Category
Documents
-
view
213 -
download
0
description
Transcript of THE TEXT ELEMENTS. THE HEADING ELEMENTS,,,, and - introduce new section of content as a title or a...
THE TEXT ELEMENTS
THE BLOCKQUOTE ELEMENT• The <blockquote> element offsets a
paragraph from the regular body text, it indents a block of text. Tag - <blockquote></blockquote>
Blockquote Element Sample <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>The Blockquote Element</title></head><body><h1> The BLOCKQUOTE Element</h1>An article from the Oracle Magazine says:<blockquote>
<p>Architect finds that security is a key business enabler, making better-informed decisions
possible.</p><p>For Ho, a great security architect needs to understand a company's business and its
challenges. "Without that basic understanding, you run the risk of having a mismatch between your knowledge of security strategy and the needs of the business." she says.
</p></blockquote></body>
</html>
THE CENTER ELEMENT• The <center> element sets its
content centered horizontally inside the web browser.• It can be any content, including text,
images, tables and so on.• Tags: <center></center>
THE PARAGRAPH ELEMENT• The <p> element creates a paragraph and it
indicates the start and end of a paragraph.• Normally, web browsers adds a blank line
before a new paragraph starts.• Tags: <p></p>• Attribute: – Align - sets the horizontal alignment of the
element inside the web browser such as left, right, center and justify.
THE HORIZONTAL RULE ELEMENT• The <hr> element inserts a horizontal line that
divides contents. The <hr> element has no ending tag.
• Attributes:– Align – sets the horizontal alignment of the element
inside the web browser, such as left, right, center and justify.
– Color – set a color value or a predefined color name of the element.
– Size – sets the size of the horizontal rule in pixels– Width – sets the width in pixels of the element
EXAMPLE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>The Blockquote Element</title></head><body><h1> The blockquote Element</h1>An article from the Oracle Magazine says:<blockquote>
<p>Architect finds that security is a key business enabler, making better-informed decisions possible.</p><hr size="12" color="red"><p>For Ho, a great security architect needs to understand a company's business and its challenges. "Without that basic
understanding, you run the risk of having a mismatch between your knowledge of security strategy and the needs of the business." she says.
</p></blockquote>
<center><p>For Ho, a great security architect needs to understand a company's business and its challenges. "Without that basic
understanding, you run the risk of having a mismatch between your knowledge of security strategy and the needs of the business." she says.
</p></center></body>
</html>
Exercise #1• Create an HTML document using the five (5)
text elements, Heading, paragraph, center, blockquoute and horizontal rule. Refer to the image.