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



Home Answers Viewqa HTML HTML CSS example

Have Programming Question? Ask it here!
 
 
 


Deepak Kumar
HTML CSS example
1 Answer(s)      3 years and 4 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">
div align left css
div align left css  Hi, How to align the div to left using the css in HTML page. Thanks
Create Button in CSS
Create Button in CSS  Can anyone help me to create a button in CSS HTML
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
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      
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
example of 1700 bir form using html
example of 1700 bir form using html   example of 1700 bir form using html i don't know how to start it... i'm confused on what would i do first and what would i use... :( please help me on this.... thank you in advance
mouse over effects in css
mouse over effects in css  I have written a mouse over effect in CSS. But it is not working in HTML. Can any one suggest me? Thanks
link border 0 css
link border 0 css  Hi, What will the css for making links border 0 in image? I am looking for example code for link border 0 css. Thanks
background images in css not working
background images in css not working  In the application i'm passing a background image from CSS in the given format ... background-image: url("Image\backgroundImage.GIF"); which is not working. So, please give me an example
Resize Header in CSS
Resize Header in CSS  Hi all, Please let me know if we can resize the Header tags in HTML for example H1,H2 and so on... Actually, it looks very...;We can resize header tags in CSS .. and further call that class into you HTML
css click box
css click box  I wanted to create a click box in CSS with a hyperlink that should appears flat.   Find the below given code.. In your HTML file .. click box Text CSS a { display:inline-block; width:30px
Implementing CSS and JavaScript in JSP File
Implementing CSS and JavaScript in JSP File       This example shows how to implement css..." content="text/html; charset=iso-8859-1"> <title>Implementing css
jQuery CSS Selector
input. The CSS Selectors are used to find the element within html page that'... example uses CSS selector to count the number of element within 'body'... jQuery CSS Selector      
CSS Editor
for languages like HTML and XHTML, which allow embedded CSS rules. It is not the goal... CSS Editor         This project aims to contribute sophisticated CSS authoring
What are the advantages and disadvantages of CSS?
What are the advantages and disadvantages of CSS?  What are the advantages and disadvantages of CSS
parser jquery css
parser jquery css  How to parser jquery in css
regarding css file in my eclipse
regarding css file in my eclipse  hai frns i want a small help frm u.when ever i use css file in html or normal web browsers the output is coming means css file is effecting the output but wen i use the same code in myeclipse
indent div css
it in another div. For example, make the outer div margin: 0 auto; and the inner div.... Indent div in css <html> <head> <title>Indent div
paragraph height css
paragraph height css  How can i specify height of a paragraph in CSS?   This is how you can set the Height of Paragraph in CSS .pclass { height:200px; } <p class="pclass"> some text </p>
Advertisements
 

 

 

DMCA.com