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



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

Have Programming Question? Ask it here!
 
 
 


Bhausaheb Sangale
How to use css in simple HTML application
1 Answer(s)      2 years and 4 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
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
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
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
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
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 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
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
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
how to make use of jerry's java image processing filter in java application?is there anyway to do this?
how to make use of jerry's java image processing filter in java application?is there anyway to do this?   how to make use of jerry's java image processing filter in java application?is there anyway to do
Simple Bank Application in JSP
Simple Bank Application in JSP       In this section, we have developed a simple bank application in jsp . In this application user can Update the User Profile, Cash
Hibernate Simple Program Using Java Application with Eclipse
Hibernate Simple Program Using Java Application with Eclipse  How to write Hibernate Simple Program Using Java Application with Eclipse? I wish to learn Hibernate using very popular Eclipse IDE. Share me the best tutorial link
Use an application and applet together
Use an application and applet together  i have a project in my school in which i am making a game. i have a problem that i have an applet in that game and i want to work it in an application or to run that application
Use an application and applet together
Use an application and applet together  i have a project in my school in which i am making a game. i have a problem that i have an applet in that game and i want to work it in an application or to run that application
Simple Web Application using Servlet
Simple Web Application using Servlet       In this section, we have developed a simple web application in Servlet . In this application user can add, update and delete all
CSS Apply
CSS Apply  How can I apply different CSS to my application for background by taking CSS list in Select tag i.e. Combo box. for e.g As in Orkut we select theme & by clicking to apply it changes background theme & color
Use Of Id attribute in Html - Development process
Use Of Id attribute in Html    Hi, I am new to web page development.Could u plz explain what is use of id attribute in html. For example..., The id attribute specifies a unique id for an HTML element that assigns
ZF Decorate With CSS
Now Decorate it with CSS: It is obvious that we need some CSS to change the regular look of a web page, nonetheless, we will create and use in our current tutorial. First of all create a folder called css in public folder and create
pls provide steps to write ejb3.0 simple application in eclipse - EJB
pls provide steps to write ejb3.0 simple application in eclipse   hi, pls provide steps to create simple ejb3.0 application in eclipse .And also how to create entity bean ,session bean in ejb3.0
How to disable an HTML object?
How to disable an HTML object?  How to disable an HTML object
Building a Simple EJB Application Tutorial
Building a Simple EJB Application - A Tutorial   ... in and XDoclet. This application,    while simple, provides a good.... This application, while simple, provides a good introduction to EJB development and some
CSS in Flex
CSS in Flex  Hi...... Please tell me How do you use css styles in flex? Thanks  Ans: @namespace s "library://ns.adobe.com/flex/spark"; @namespace mx "library://ns.adobe.com/flex/mx"; .button{ font
Use macro to wrap HTML tags in velocity
Use macro to wrap HTML tags in velocity       This Example shows you how to use macro to wrap HTML tag in velocity  template. The method used in this example are described
div align left css
div align left css  Hi, How to align the div to left using the css in HTML page. Thanks
CSS Designer
authoring while editing CSS, HTML and JSP files. Key features Integrates..., HTML and JSP files The CSS Styles view allows you to view, create and delete... CSS Designer      
how to load pdf on html
how to load pdf on html  how to load pdf on html
How to write a simple java applet
How to write a simple java applet   Hi, how can i write a simple java applet, displaying text in specific colors and font style. For example, the output will be something like : Name in red color Age in blue color Nationality
CSS ScrollBar Properties
CSS ScrollBar Properties  How can i set ScrollBar properties in CSS? I am using HTML, CSS and Div in my code. Thanks!!   overflow: scroll; overflow-y: scroll; overflow-x: scroll; overflow:-moz-scrollbars-vertical
Advertisements
 

 

 

DMCA.com