Full width home advertisement

How To

Science

Post Page Advertisement [Top]


The style Attribute

The style attribute allows you to identify or recognize Cascading Style Sheet (CSS) rules within the element.

<pre name=”code” class=”html”>

<!DOCTYPE html>

<html>

<head>

<title>The style Attribute</title>

</head>

<body>

<p style="font-family:arial; color:#FF0000;">Some text...</p>

</body>

</html>

</pre>

This will produce the following result:

Some text...


The dir Attribute of an HTML Tag

The dir attribute allows you to indicate direction of the text whether left to right or right to left.


Example

<pre name=”code” class=”html”>

<!DOCTYPE html>

<html dir="rtl">

<head>

<title>Display Directions</title>

</head>

<body>

This is how IE renders right-to-left directed text.

</body>

</html>

</pre>

This will produce the following result:

This is how IE renders right-to-left directed text.

Reference: Tutorials Point | Wiki

No comments:

Post a Comment

Bottom Ad [Post Page]

| Designed by Colorlib