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

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...({});   Hi, You can use the following code to define CSS in HTML page: <
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
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 - 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
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
ModuleNotFoundError: No module named 'css-html-js-minify'
ModuleNotFoundError: No module named 'css-html-js-minify'  Hi, My... named 'css-html-js-minify' How to remove the ModuleNotFoundError: No module named 'css-html-js-minify' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'css-html-js-minify'
ModuleNotFoundError: No module named 'css-html-js-minify'  Hi, My... named 'css-html-js-minify' How to remove the ModuleNotFoundError: No module named 'css-html-js-minify' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'css-html-js-minify'
ModuleNotFoundError: No module named 'css-html-js-minify'  Hi, My... named 'css-html-js-minify' How to remove the ModuleNotFoundError: No module named 'css-html-js-minify' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'css-html-prettify'
ModuleNotFoundError: No module named 'css-html-prettify'  Hi, My... named 'css-html-prettify' How to remove the ModuleNotFoundError: No module named 'css-html-prettify' error? Thanks   Hi, In your
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
HTML frameset example
HTML frameset example  Hi, How to use html frameset for creating frames in HTML? Thanks (adsbygoogle = window.adsbygoogle || []).push({});   Hi, Please check the Vertical Frameset in HTML example code
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 code? I have to one a web page say http://www.roseindia.net in Frame? Thanks...="frame1.html"> tags for creating frames in HTML. Read at Frames example
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 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... client when user clicks on the email link. Here is the example code
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 - 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 - 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
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
HTML form example
HTML form example In this section we will develop HTML form example and show... input from the user. In this example code we will show you to make HTML form...; <title> HTML Form Example </title> <script type="text
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
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 code example
input filed: HTML code example of input tag: <input type="text"...HTML code examples In this section we are giving many html code examples which will be very useful for developers. The examples of HTML code given here
HTML
This Example describes the way to display images using JavaScript and css... in HTML The Tutorial illustrates an example from Alignment... an example, how to post image in HTML page. In this Tutorial, the code describe
CSS
style sheet validates at Note that some warnings may be unavoidable, but your CSS
HTML file upload example
HTML file upload example Here is an example of File Upload in html. In this program we have displayed three "text field" and one "Browse... of a text field and a value set by a script In this example we have shown three
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
HTML  What is Semantic HTML? What are the reasons for validating a HTML
HTML
HTML  What is Semantic HTML? What are the reasons for validating a HTML
HTML
HTML  What is SPAN in HTML
HTML
HTML  What is HTML? What is a Hypertext link
HTML
HTML  What is HTML? What is a Hypertext link
HTML
HTML  What is BODY in HTML document
html
html  diffrence between html and xml
html
html  How to add the calendar in html code
Html
Html  What is HTML? What is a Hypertext link
html
add a header in the html page  what we can do to add a header in the html page
HTML
HTML  How do we specify page breaks in HTML
HTML
HTML  What is a tag? How can we use MARQUEE in HTML
html
html  how to convert html page into jsp page
html
html  i want a registration page in html with good background
HTML
HTML  how can we give the unlimited size in the html

Ads