Home Answers Viewqa HTML HTML CSS example

 
 


Deepak Kumar
HTML CSS example
1 Answer(s)      2 years and 2 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

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 Pages:
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
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
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
How to use css in simple HTML application
How to use css in simple HTML application   Please give simple example for understanding purpose
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
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
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      
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   Cunningham Location Siteplan Lots News Contact us... development by | Website by   css body
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
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
HTML
This Example describes the way to make Tab using JavaScript and css. For this we... illustrates an example from Alignment of image in HTML. In this Tutorial... The Tutorial illustrates an example, how to post image in HTML page
Cascading Style Sheet(CSS)
it to a HTML page. For this, we  create a short CSS style sheet stored in a file... Cascading Style Sheet(CSS)       Cascading Style Sheet (CSS) is known as style sheet language
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
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      
Create Button in CSS
Create Button in CSS  Can anyone help me to create a button in CSS HTML
div align left css
div align left css  Hi, How to align the div to left using the css in HTML page. Thanks
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
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
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
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
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
CSS
style sheet validates at Note that some warnings may be unavoidable, but your 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
html
html  How to develope a web page with Audio and vidios? give One example
CSS hack for Opera9.63 - Java Beginners
for which I tried css hacks like *html:first-child *body:last-child...CSS hack for Opera9.63  Hi All, I am terribly stuck with a serious Opera 9.63 related issue .Actually I need my application to be tested in IE
Html Parsing Extracting Content
Html Parsing Extracting Content  Hello i need to parse html and search for a string and get its attributes.For example 'xxx' is my search string. i search html page and find xxx css attributes.Java,php,javascript is okey thank
Dynamic html examples
Dynamic html examples  Hi, What is Dynamic HTML? Explain with dynamic html examples. Thanks   Hi, DHTML stands for Dynamic HTML and is uses the HTML, JavaScript, DOM, & CSS in a program. Following is very simple
ZF Decorate With CSS
Now Decorate it with CSS: It is obvious that we need some CSS to change... tutorial. First of all create a folder called css in public folder and create a file called site.css inside the css folder (public->css->site.css), now
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
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
Working with JavaScript & CSS
Working with JavaScript & CSS   ..., onselect etc. For using CSS, JSF provides style and styleClass attributes for the components. You can use this as in the example below
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
Button Size HTML
HTML Button Size can be changed according to programmer use. HTML button submits HTML page. In the following example we will learn how to change the size of a HTML button. First we create a HTML page. Then we display a HTML Button
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

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.