Including CSS with the HEAD Tag

Describe how to include the CSS within the HEAD Tag?

E

Expert

Verified

If you wish to involve a CSS within the HEAD tag and apply to whole HMTL docuemnt, you may use STYLE tag as <STYLE TYPE="text/css">css_definition</STYLE>. The following code will set the body background to black and paragraph text to yellow:

<html><head>
<title>CSS Included</title>
<style type="text/css">
BODY {background-color: black}
P {color: yellow}
</style>
</head><body>
<p> Welcome to questions-interviews.com.
You should see this text in yellow on black background.</p>
</body></html>

   Related Questions in Programming Languages

  • Q : Difference between JavaScript and AJAX

    Write basic difference between JavaScript and AJAX ?

  • Q : Calculate the summation of 1 to some

    Write two programs to calculate the summation of 1 to some integer n using a function called

    int summation(int n)

    a) Using a non recursive solution, with a for(i=1, i<=n; i++) loop and b) using a recursive solution, based on the following conditions summation(n) = summation(n-1

  • Q : Define the term Top level class Define

    Define the term Top level class: It is a class defined either at outermost level of a package or the static nested class.

  • Q : Grep command Specify the usage of the

    Specify the usage of the “grep” command?

  • Q : Define the term Garbage collector

    Garbage collector: It is a daemon thread which recycles objects to which there are no extant references in a program.

  • Q : Write a program using simple loop

    Objective:  The purpose of this problem is to gain experience with the principles necessary to write a program using simple loop, decision processing, counters and accumulators

    Save the Barns, a bi-partisan po

  • Q : What is High level programming language

    High level programming language: Languages like Ada, Java, C++, and so on which give programmers with features like control structures, classes, methods, packages, and so forth. Such features are mostly independent of any specific instruction set, and

  • Q : Explain the benefits of using MTS

    Explain the benefits of using MTS?

  • Q : What is First in-first out First in,

    First in, first out: It is FIFO semantics of the queue data structure. Items are eliminated in the order in which they arrived in the queue; therefore older items are always eliminated before newer ones.

  • Q : Reducing state space of code What is

    What is the way to reduce the state space of the code during model checking?

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