HTML | Tags | Pharse Tags

html pharse_tags

 

 

 

 

 

The following elements are not just for presentational purposes; they also describe something about their content.

<em>:

The content of an <em> element is intended to be a point of emphasis in your document, and it is usually displayed in italicized text.

<!DOCTYPE HTML—

<p>This is the <em>Emphasis Text</em> </p>

</html>

<strong>:

The <strong> element is intended to show strong emphasis for its content  stronger emphasis than the <em> element.

<!DOCTYPE HTML—

<p> This is the <strong> Strong Text </strong> </p>

</html>

<address>:

Many documents need to contain a snail – mail address, and there is a special <address> element that is used to contain addresses.

<!DOCTYPE HTML—

<address>18/25 QA,TamilNadu,India-606601</address>

</html>

<abbr>:

It indicate when you are using an abbreviated form by placing the abbreviation between opening <abbr> and closing < /abbr> tags. When possible, consider using a   title  attribute whose value is the full version of the abbreviations.

<!DOCTYPE HTML—

<p> This is <abbr title=”Padmanaban”> Padthu </abbr> Abbreviation Text</p>

</html>

<acronym>:

The <acronym> element allows you to indicate that the text between opening <acronym> and closing   </acronym> tags is an acronym.When possible, use a title attribute on opening <acronym> tags whose value is the full version of the acronym.

<!DOCTYPE HTML—

<p> This is <acronym title=”Cascadind Style Sheet”> CSS </acronym> Acronyms Text</p>

</html>

<dfn>:

The <dfn> element allows you to specify that you are introducing a special term. Its use is similar to the italicized notes in this book used to introduce important new concepts.

<!DOCTYPE HTML—

<p>PHP is embedded into <dfn> HTML </dfn> </p>

</html>

<blockquote>:

When you want to quote a passage from another source, you should use the <blockquote> element.

<!DOCTYPE HTML—

<p> PHP is a <blockquote>HyperText Preprocessor</blockquote></p>

</html>

<q>:

The <q> element is intended to be used when you want to add a quote within a sentence, rather than as an indented block on its own.

<!DOCTYPE HTML—

<p> This is a <q>Simple Text</q> </p>

</html>

<cite>:

If you are quoting a text,you can indicate the source by placing it between an opening <cite> tag and closing </cite> tag. As you would expect in a print publication,the content of the <cite> element is rendered in italicized text by default.

<!DOCTYPE HTML—

<p> This is a <cite> Cite description</cite> text</p>

</html>

<code>:

If your pages include any programming code (which is not uncommon on the Web),elements will be of particular use to you. Any code to appear on a web page should be placed inside a  <code> element.

<!DOCTYPE HTML—

<p> This is the <code> &lt;h1&gt;code element&lt;h1&gt;</code> Text</p>

</html>

<kbd>:

If, when talking about computers, you want to tell a reader to enter some text, you can use the <kbd> element to indicate what should be typed in.

<!DOCTYPE HTML—

<p> This is the kbd element<kbd> CTRL </kbd><kbd> ALT</kbd></p>

</html>

<var>:

The <var> element is another of the elements added to help programmers. It is usually used in conjunction with the < pre > and < code > elements to indicate that the content of that element is a variable that can be supplied by a user.

<!DOCTYPE HTML—

<p> <code>document.write(“<var>Text</var>”)  </code></p>

</html>

<samp>:

The <samp> element indicates sample output from a program, script, or the like. Again, it is mainly used when documenting programming concepts.

<!DOCTYPE HTML—

<p><samp> This is the Sample Text </samp></p>

</html>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s