Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa HTML How to use css in simple HTML application
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Bhausaheb Sangale
How to use css in simple HTML application
1 Answer(s)      2 years and 9 months ago
Posted in : HTML


Please give simple example for understanding purpose


Advertisement
View Answers

March 16, 2012 at 8:22 PM


<html>
<head>
<style type="text/css">
p { color:red;}
</style>
</head>
<body>
<p>
This is normal paragraph text 
</p>
</body>
</html>

CSS is usually used when you want to separate the webpage's content and all the formatting stuff.

To use CSS in you're webpage, you must set the style type as " text/css" within the 'head' tag.

<head>
<style type="text/css">

</style>
</head>


while all the CSS code should be typed within the style tag.

Now the syntax goes something like this :
element { property : value;}

In the above example, I used the 'color' property to change the font color of contents under the 'p' tag a.k.a element to red.

p { color:red;}


Related Tutorials/Questions & Answers:
How to use css in simple HTML application
How to use css in simple HTML application   Please give simple example for understanding purpose
HTML CSS
HTML CSS  Explain in brief about the term CSS
Advertisements
HTML CSS example
HTML CSS example  Hi, Can anyone share the HTML CSS example code. I my HTML web page I have to embed the CSS style. Share some HTML CSS example with me. Thanks   Hi, You can use the following code to define CSS
Include CSS in HTML
Include CSS in HTML  Can any one tell me how to include a CSS file into my HTML page. A code format to include the CSS will work. Thanks in Advance.   Include CSS in HTML To include a CSS or Style Sheet into you HTML
html+css - Java Beginners
html+css   Davgan Financial Services... clients. We act efficiently, honestly and fairly. Why use... by css body { margin: 0; padding: 0; background-color
how to use ajax in html file
how to use ajax in html file  <!DOCTYPE html PUBLIC "-//W3C//DTD...; <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <..." /> <meta http-equiv="Content-Type" content="text/html; charset
html+css - Java Beginners
html+css   Cunningham Location Siteplan Lots News Contact us... development by | Website by   css body
html+css - Java Beginners
html+css   Akido NEXT EVENT: Radio InterviewMore Information Home Blog Music... reserved Worldwide css /* Theme Name: akido Theme URI
What is HTML 5 and CSS 3
and mobile application at present time. As we have already learned that HTML 5 and CSS...What is HTML 5 and CSS 3 HTML 5 and CSS 3 are the standard versions of the basic HTML and CSS language, which is used to create more interactive web pages
how to use a image in background in your application form?
how to use a image in background in your application form?  how to use a image in background in your application form
Simple HTML example
Simple HTML example In this section we will give you very simple example of a HTML page. After reading this page you should be able to create simple HTML... can use HTML with JavaScript to create more dynamic WebPages. These days HTML
How could I use Socket in my application?
How could I use Socket in my application?  I created an application dealing with the management of a supermarket using Hibernate and Swing. I found out today that I have to use also Socket and I don't know exactly what I could do
Simple application using hibernate
Simple application using hibernate  Hi, How to write a simple application using hibernate in Eclipse IDE? I would like to to learn: Process... of the tutorial you will like to learn for creating the simple application using
how to extract css properties using java?
how to extract css properties using java?  how to extract css properties using java
CSS
hovers the mouse over the button. Use an external style sheet. Make sure your style sheet validates at Note that some warnings may be unavoidable, but your CSS
css
2.In this style sheet, define the following. Use a different element, and different properties and/or values, for each rule: one or more simple selectors... constructing XHTML page for the subsequent questions. (a) Create a simple XHTML
css
2.In this style sheet, define the following. Use a different element, and different properties and/or values, for each rule: one or more simple selectors... constructing XHTML page for the subsequent questions. (a) Create a simple XHTML
css
2.In this style sheet, define the following. Use a different element, and different properties and/or values, for each rule: * one or more simple selectors... constructing XHTML page for the subsequent questions. (a) Create a simple XHTML
java spring simple application
java spring simple application  hai I have design a simple application in this I always found class not found exception. I am sendig code as follows please resolve this and send me.my directory structure is as follows Project
How to use web service in J2ME application(MIDP) - MobileApplications
How to use web service in J2ME application(MIDP)  I have created two separate application, one that has J2ME Midlet application and another has web service. Now i want to call that web service in my Midlet application so how
How to use request.getparameter?
will show you how can you use the getParameter() method in your JSP application with the help of a simple example. Moreover, you can use the JSP codes...How to use request.getparameter? In this section of tutorial we will explain
Developing Simple Struts Tiles Application
will show you how to develop simple Struts Tiles Application. You will learn... Developing Simple Struts Tiles Application  ... file before you can use the tiles tags in your application
How to align div side by side?
Example of aligning DIV side by side in HTML page In this tutorial I will explain you how you can align the div side by side using CSS. The CSS...; margin:5px; } </style> In the above CSS we have use the float:left
how can i use toggle button in my application
how can i use toggle button in my application  i want a on/off toggle button by dragging left-right..not by pressing on button
Java HTML Client Application
Java HTML Client Application  Java HTML Client Application
Simple IO Application - Java Beginners
Simple IO Application  Hi, please help me Write a simple Java application that prompts the user for their first name and then their last name. The application should then respond with 'Hello first & last name, what
How to make an animated navigation bar with css
How to make an animated navigation bar with css In this example you will see how to make a CSS navigation bar in the photoshop...; Layer style > Stroke, Gradient Overlay and use same settings. You will get
Simple Java Desktop Upload application
Simple Java Desktop Upload application  I try do simple example for upload applicationtake file from c:\ put to d:\ :) PLEASE HELP
simple bank application - JSP-Servlet
simple bank application  hi i got ur codings...But if we register a new user it is not updating in the database...so plz snd me the database also.... Thank you
Simple Calculator Application In Java Script
. that is extremely simple JavaScript calculator, the HTML below shows you how... Simple Calculator Application In Java Script  ... Calculator The objective of this project is  learn how to write a simple
CSS in flex
the CSS file in swf and use it dynamically in your application. Loading style sheets at run time is a three-step process: 1. Write a CSS file for your application...CSS in flex  Hi....... Please tell me How can I load CSS style
 

 

 

DMCA.com