.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Interview Question >> ASP.Net >> Post New Question Subscribe to Interview Questions

What is embedded style? How to link?

Posted By :Prasanti Prusty     Posted Date :January 22, 2010    Points :10   Category :ASP.Net 
The HEAD area, where the TITLE and META tags are found, is also used to store CSS commands.
These are called embedded CSS. Any embedded CSS command will over-ride an external CSS command of the same tag. Embedded commands are more specific to the page.

Embedded CSS codes are placed within the HEAD area of the page code. That is anywhere after the <HEAD> tag and before the </HEAD> tag. NOT in the HEAD tag itself.

<style type="text/css" media=screen>
<!--
p {font-family: georgia, serif; font-size: x-small;}
hr {color: #ff9900; height: 1px }
a:hover {color: #ff0000; text-decoration: none}
-->
</style>

Now, whenever any of those elements are used within the body of the document, they will be formatted as instructed in the above style sheet.

You can also find related Interview Question to What is embedded style? How to link?  below: 

Explain inline, embedded and external style sheets .

  
There are three ways of inserting a style sheet:

1. External style sheet
2. Internal style sheet
3. Inline style

External Style Sheet :
An external style sheet is ideal when the style is applied to many pages.
With an external style sheet, you can change the look of an entire Web site by changing one file.
Each page must link to the style sheet using the tag. The tag goes inside the head section:




Internal Style Sheet :
An internal style sheet should be used when a single document has a unique style. Internal styles sheet needs to put in the head section of an HTML page, by using the


Inline Styles :
If only a small piece of code has to be styled then inline style sheets can be used.
An inline style loses many of the advantages of style sheets by mixing content with presentation.
To use inline styles you use the style attribute in the relevant tag.
The style attribute can contain any CSS property.
The example shows how to change the color and the left margin of a paragraph:

This is a paragraph.

(More...)

Is Ajax a technology platform or is it an architectural style?

  
Its both. Ajax is a set of technologies being used together in a particular way. (More...)

What is logical link control?

  
It one of two sublayers of the data link layer of OSI reference model, as defined by the IEEE 802 standard.

This sublayer is responsible for maintaining the link between
computers when they are sending data across the physical network connection. (More...)

How do we link different servers using Tsql?

  
using sp_addlinkedserver, sp_addlinkedsrvlogin (More...)

How to change style on an element?

  
Between CSS and javascript is a weird symmetry. CSS style rules are layed on top of the DOM. The CSS property names like "font-weight" are transliterated into "myElement.style.fontWeight". The class of an element can be swapped out. For example:
document.getElementById("myText").style.color = "green";
document.getElementById("myText").style.fontSize = "20";
-or-
document.getElementById("myText").className = "regular"; (More...)

Can SQL linked server can be use to link oracle?

  
Yes, Oracle has oledb provider for oracle provided by Microsoft that can be used to link it to SQL server group (More...)

Why to dynamically link library instead statically linking the library

  
Using dynamic linking instead of static linking offers several advantages. DLLs save memory, reduce swapping, save disk space, upgrade easier (More...)

Which is the style sheet language for XML document?

  
XSL is the stylesheet language for XML documents (More...)

What are Style Sheets?

  
Style Sheets are templates, very similar to templates in desktop publishing applications, containing a collection of rules declared to various selectors (elements). (More...)

How would you add a link in the Ribbon?

  
You can add any link or Custom Action under any of the existing tabs of the ribbon or can create a new a new tab and place your links under it. (More...)

How to hide "All site content" Link in SharePoint

  
.s4-specialNavLinkList {
Display: none;
} (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.


Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend