Including CSS with the HTML Tag

Explain how to include the CSS within the HTML Tag?




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


   Related Questions in Programming Languages

  • Q : Use of XMLHttpRequest object in AJAX

    What is the use of XMLHttpRequest object in AJAX?

  • Q : Database management information system

    How much would it cost to create a simple database management information system by utilizing MySQL and PHP?

    The proposal of the system should include the following:

    1. Background
      • narrative of setting and background of problem m

  • Q : What is File Transfer Protocol or FTP

    File Transfer Protocol: The File Transfer Protocol (abbreviated as FTP) states a standard set of rules which make it probable to transfer a file from one file system to the other.

  • Q : What is sticky bit Explain the sticky

    Explain the sticky bit?

  • Q : Explain This This : It is a Java

    This: It is a Java reserved word with numerous different uses:

    A) Within a constructor, it might be employed as the first statement to call the other constructor in similar class. For illustration:

    Q : Long lock in the tibco iProcess

    Describe the term Long lock in the tibco iProcess in brief.

  • Q : What is an Unchecked exception

    Unchecked exception: An exception for which it is not needed to give a local try statement or to propagate through a throws clause stated in the method header. An exception which is not handled will cause program annihilation when it is thrown.

  • Q : State Null character State Null

    State Null character: The \u0000 character. The care must be taken not to confuse this with null reference.

  • Q : Write a program that initializes an

    Write a program that initializes an integer array a[20] with values {0, 1, 2, 3, ...18, 19 - once each} then scrambles them up and prints the values in random order.

    For example: 19 2 3 8 11 1 4 17 7 15 9 0 16 12 18 13 5 6 10 14



  • Q : Pointer in C What is pointer? What

    What is pointer? What significance of pointer in C programming languages?

2015 ©TutorsGlobe All rights reserved. TutorsGlobe Rated 4.8/5 based on 34139 reviews.