--%>

Including CSS with the HTML Tag

Explain how to include the CSS within the HTML Tag?

E

Expert

Verified

If you wish to include the CSS within the HTML tag, you may use STYLE attribute as <TAG STYLE="css_definition" ...>. Of course, CSS definition will only applied to this instance of this tag. The following code will set background to gray on a <PRE> tag:

<p>Map of commonly used colors:</p>

<pre style="background-color: gray">

black #000000

white #ffffff

gray #7f7f7f

red #ff0000

green #00ff00

blue #0000ff

</pre>

   Related Questions in Programming Languages

  • Q : Security Manager on Applets Write down

    Write down some of the restrictions imposed by using a Security Manager on Applets?

  • Q : Explain Branch instruction Branch

    Branch instruction: It stores a new instruction address into the program counter. The consequence of this is the next instruction to be fetched will not generally be the one instantly following the branch instruction. Therefore the normal chronologica

  • Q : Explai phases of software development

    Define the difference between phases of software development or software life cycle?

  • Q : What is Abstract method Abstract method

    Abstract method: This is a method with the abstract reserved word in its header. The abstract method has no method body. Methods stated in an interface are for all time abstract. The body of an abstract method should be stated in a su

  • Q : Explain Aggregation Aggregation : It is

    Aggregation: It is a relationship in which an object has one or more other subordinate objects as portion of its state. The subordinate objects usually have no self-governing existence separate from their containing object. Whenever the containing obj

  • Q : Ways in which Java program is less

    Give two ways in which a Java program is less likely to be compromised than the same program written in C++.

  • Q : What is Disk drive Disk drive : It is a

    Disk drive: It is a hardware device employed to store the data. They come in numerous forms, like floppy disks, compact disks, and hard disks.

  • Q : Define the term Blank final variable

    Blank final variable: A final variable which is not initialized as portion of its declaration. This variable should be initialized in either an instance initialization block or every of the constructors for its class before it is employed. A static bl

  • Q : What are the applications of testing

    What are the applications of testing life cycle?

  • Q : Explain Relative filename Relative

    Relative filename: It is a filename whose full path is associative to some point within a file system tree-frequently the present working folder (that is, directory). For example: