The logical styles of text are used to add a specific destination to a specific block of text.
|The center element|
|Pre-formatted text blocks|
<p> tag defines a paragraph. Using this tag, we can split long text. A blank line above and below the text of the paragraph.
<p>element can have an attribute called align, which is used to define the the alignment for the text of the paragraph. - The align attribute can have the values "left", "center", "right" or "justify". The default value is "left"
HTML allows you to add headings into a web page. Headings may look different on each browser.There are six headings tag.
<h1>..</h1> <h2>..</h2> <h3>..</h3> <h4>..</h4> <h5>..</h5> <h6>..</h6>
</blockquote> element is designed for inserting quotations into a web page.
The block-quote element adds extra white spaces before and after the element and on the left and on the right of the element.
</q> element is designed for in-line quotation. While rendering, the
element does'nt start on the new line.
<hr> tag is used for creating a horizontal line. This is also called Horizontal Rule in HTML which makes distinction between different sections of a web page.
<hr> <hr align="center" width="50%" size="5" noshade color="red">
|A positive integer (or) a positive integer between 1 and 100 followed by %; default is "100%"|
|The thickness of the rule in pixel; the default is 2|
|If present, the rule is flat rule. else a 3D rule with a shadow.|
|The default color is "black".|
<hr>does'nt require an ending tag. *A horizontal rule can have more than one attributes.
center element is used to center content (e.g. text, images, horizontal rules)
<html> <head></head> <body> Normal horizontal rule <hr width="90%"> center aligned horizontal rule <center> <hr width="50%"> </center> <body> <html>
There are two kind of elements in HTML.
|Block level elements||Rendered starting on a new line (e.g. |
|In-line elements||Rendered on same line (e.g. |
<div> element is the most generic block-level element. This tag is used for defining a section of your document and also we can group large sections of HTML elements together. This element is best to attach a CSS to a section of a web page.
<div align="center" title="This is a tooltip">
<div> element is the most generic in-line element. This element is best to attach a CSS to a section of a web page.
The difference between the
<div> tag and the
<span> tag is that the
<div> tag is used with block-level elements while the
<span> tag is used with in-line elements.
<span> tag has all the properties of the
<div> tag except the align attribute as it is an in-line element.
<span align="center" title="http://www.QuoteFellas.com> The best Quote website. </span>
<pre> Element (or HTML Preformatted Text) represents preformatted text. Text within this element is typically displayed exactly as it is laid out in the file. Whitespaces inside this element are displayed as typed.
The inserted HTML tags into a block of text will not be interpreted by the browser. Use < for the < character and > for the > character.
The phrase elements allow you to add a specific meaning to a section of the document. These phrase are rendered differently in different browsers.
|Rendered in the italic text style|
|Rendered in the bold text style.|
|To emphasize the first appearance of a concept.|
|To insert a fragment of computer program code; rendered in the monospace font style.|
|To insert the output of an application; rendered in the monospace font style.|
|To insert a computer command that the user should type; rendered in the monospace font style.|
|To insert variables of a computer program; renderd in the italic font style.|
|To insert a reference to its source document; renderd in the italic text style.|