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



Home Answers Viewqa HTML HTML CSS example
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Deepak Kumar
HTML CSS example
1 Answer(s)      3 years and 9 months ago
Posted in : HTML


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


Advertisement
View Answers

April 1, 2011 at 11:43 PM


Hi,

You can use the following code to define CSS in HTML page:

<style type="text/css">
body {
  color: purple; 
  background-color: lightgrey;
 }

p {
  color:red;
  }
</style>

To include css file in HTML you can use following code:

<link href="/styles/styles.css" rel="stylesheet" type="text/css" />

Thanks



Related Tutorials/Questions & Answers:
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... in HTML page: <style type="text/css"> body { color: purple; background
HTML CSS
HTML CSS  Explain in brief about the term CSS
Advertisements
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   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
html+css - Java Beginners
html+css   Davgan Financial Services //initialise plugins jQuery(function(){ jQuery('ul.sf-menu').superfish... by css body { margin: 0; padding: 0; background-color
How to use css in simple HTML application
How to use css in simple HTML application   Please give simple example for understanding purpose
What is HTML 5 and CSS 3
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... supports animations along with 2D/3D Transformations features. Using CSS 3 and HTML
CSS
style sheet validates at Note that some warnings may be unavoidable, but your CSS
css
example: p { property:value; } one or more grouped selectors example: h1, h2, h3, h4, h5, h6 { property:value; } a class selector example: .duh { property:value; } 3.Use the rules written in Question (2), when
css
example: p { property:value; } one or more grouped selectors example: h1, h2, h3, h4, h5, h6 { property:value; } a class selector example: .duh { property:value; } 3.Use the rules written in Question (2), when
css
example: p { property:value; } * one or more grouped selectors example: h1, h2, h3, h4, h5, h6 { property:value; } * a class selector example: .duh { property:value; } 3.Use the rules written in Question (2), when
HTML frameset example
HTML frameset example  Hi, How to use html frameset for creating frames in HTML? Thanks   Hi, Please check the Vertical Frameset in HTML example code. Thanks
HTML Example
HTML Example In this page we have given the links of many very useful HTML tutorials. These HTML examples will help you in learning HTML4 and HTML5... with example code. You can try these code and learn HTML deeply. HTML is used to create
Pagination example with html code
Pagination example with html code  Hi, could u please provide pagination code with clear cut explanation. Thanks in advance
HTML - base tag example.
HTML - base tag example. Description : The base tag is a HTML tag...;title>HTML is a markup language</title> </head> <body> <h1>HTML -- base tag. </h1> &nbsp;<a href="
HTML Frames Example
HTML Frames Example  Hi, Can anyone provide me HTML Frames Example...;frame src="frame1.html"> tags for creating frames in HTML. Read at Frames example. Thanks
HTML - Email example
HTML - Email example Description : There is not any specific tag for email in HTML. But with the help of HTML, we can easily add mail facility in our HTML page. HTML has a anchor tag with href attributes. The href attributes has
HTML - menu tag example
HTML - menu tag example Description : The <menu> is a tag of HTML... html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns
HTML - I tag example.
HTML - I tag example. Description : It is a text formatting tag. It display...>HTML -- I tag Example. </h1> <p> Roseindia Technology Pvt...;head> <base href="http://roseindia.net"> <title>HTML
HTML - textarea tag example.
HTML - textarea tag example. Description : It is a input tag. You can enter...; <head> <title>HTML is a markup language</title> </head> <body> <h1>HTML -- textarea tag Example. </h1>
HTML email example
HTML email example  Hi, I am looking for an email to open email composer when user clicks on the email link. Give me code for html email example... for opening the email client when user clicks on the email link. Here is the example
HTML - lists example.
HTML - lists example. Description : HTML has three type of  list.1- Unordered list2- Ordered list3-Defination list Code : <!DOCTYPE html...; <h1>Example of HTML List.</h1> <h3>Unordered List</h3
HTML Form Validation example
HTML Form Validation example  Can anyone guide me how to validate the user name and password field in HTML using simple or JavaScript Validation. Thanks in advance!   <form method="post" onsubmit="return
Working with CSS(CSS Manipulation)
Working with CSS(CSS Manipulation)       Working with CSS(CSS Manipulation) These methods are used to manipulate CSS specially by getting and setting
CSS in flex
CSS in flex  Hi....... Please tell me How can I load CSS style sheets dynamically at runtime? please give me the answer with example ASAP so... dynamically loading of CSS file is not supported in flex. you can compile
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... pages. Creating Simple HTML page Here is simple example of HTML page that displays
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 by this example. Rounded rectangle shape: Draw a rounded rectangle
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
HTML table example
HTML Table example In this page we will learn how to use HTML table tag with the help of examples. HTML table tag is used to display the data into tabular form on the web page. Here is an example of HTML Table
HTML form example
HTML form example In this section we will develop HTML form example and show you how to performance form validation using JavaScript. The HTML <form>...; HTML Form Example </title> <script type="text/javascript">
Advertisements
 

 

 

DMCA.com