Type of Style Sheets

December 29, 2006 at 6:50 am | Posted in CSS, Tech | 3 Comments

Style sheet can be included in HTML document in 3 ways,namely

1.External Style Sheets.
2.Internal Style Sheets.
3.Inline Styles.

External Style sheets

In External Style Sheets , the styles are stored in a separate file and then that file is included in the HTML Page. You might be wondering what are styles(will be seen later), but for now just assume that each tag comes with styles. The external file(in which styles are stored) should be saved with the extension .css. Then that CSS file should be included in the HTML page using the <LINK> tag.

Example :

<head>
<link rel=”stylesheet” type=”text/css”
href=”mystyle.css” />
</head>

Explanation for the example :

rel = “stylesheet” tells that the relation of the link is stylesheet.rel can also be assigned to copyright,content,chapters etc.

type tells the type of link . text/css says stylesheet. type can also be assigned to text/javascript,text/vbscript etc.

href tells the path of the css file.If its in the same folder as that of HTML page then it is enough t0 give the name of the CSS file along

with the extension.If its in different folder other than the folder in which the HTML page is , then the relative path should be given . For example href =”../[stylesheet folder name]/[filename].css”

Note :

1.The LINK tag should be used in the <HEAD> tag.

Internal Style Sheets

In Internal Stylesheets , the styles for the tags are specified in the head section itself using the style tag. styles are not stored in a separate file.

Example :

<head>
<style type=”text/css”>
hr {color: sienna}
p {margin-left: 20px}
body {background-image: url(“images/back40.gif”)}
</style>
</head>

Explanation for the example :

type tells the type of link . text/css says stylesheet. type can also be assigned to text/javascript,text/vbscript etc.

hr {color: sienna} tells that any hr tag used should have the color sienna. Similarly we can set the syles for the other tags.

Note :

1.The STYLE tag should be used in the <HEAD> tag.

Inline Styles

In case of Inline Style Sheets the styles for the specific tags are given in the tag itself using the style attribute.

Example :

<p style=”color: sienna; margin-left: 20px”>
This is a paragraph
</p>

Explanation for the example :

style=”color: sienna; margin-left: 20px” specifies that this <p> tag should use color as sienna and left margin should be 20 px.

Priority of the Styles :

1.Inline styles.
2.Internal Style Sheets.
3.External Style Sheets.
4.Browser Default Styles.

In order to avoid conflict of styles used the above priority is followed.

Note:
1. We see that the fourth priority if for the Browser defaults. Thats why we see that different browsers render differently(Each Browser uses its own default style)

Standards :

Its better to use External Style Sheets that Internal and Inline because to use common styles across multiple pages the same Style Sheet can be used . But thats not always the case . When you want to apply a particular style specific for a portion of the page Inline or Internal will be preferred.

Advertisements

How to Use On-Screen KeyBoard

December 29, 2006 at 6:01 am | Posted in Education, Tech, Tips and Tricks in XP | 14 Comments

Want to use an on screen keyboard? Well it is this simple – Click on the start button and select run. Then type in osk in the box and click OK.A KeyBoard appears which you can use with mouse.

How to turn CD Autorun off

December 29, 2006 at 5:19 am | Posted in Tips and Tricks in XP | 1 Comment

1) Click Start, Run and enter GPEDIT.MSC

2) Go to Computer Configuration, Administrative Templates, System.

3) Locate the entry for Turn autoplay off and modify it as you desire.

How to make folder private

December 29, 2006 at 4:58 am | Posted in Education, Tech | 4 Comments

•Open My Computer
•Double-click the drive where Windows is installed (usually drive (C:), unless you have more than one drive on your computer).
•If the contents of the drive are hidden, under System Tasks, click Show the contents of this drive.
•Double-click the Documents and Settings folder.
•Double-click your user folder.
•Right-click any folder in your user profile, and then click Properties.
•On the Sharing tab, select the Make this folder private so that only I have access to it check box.

Note:

•To open My Computer, click Start, and then click My Computer.
•This option is only available for folders included in your user profile. Folders in your user profile include My Documents and its subfolders, Desktop, Start Menu, Cookies, and Favorites. If you do not make these folders private, they are available to everyone who uses your computer.
•When you make a folder private, all of its subfolders are private as well. For example, when you make My Documents private, you also make My Music and My Pictures private. When you share a folder, you also share all of its subfolders unless you make them private.
*You cannot make your folders private if your drive is not formatted as NTFS.

Evolution of Cascading Style Sheets(CSS)

December 28, 2006 at 10:54 am | Posted in CSS, Education, Tech | 2 Comments

The Web has come a long way from the all-Text beginning.In the beginning stage, Web used Images and wrapped the text around them and then,as the importance for the presentation increased new HTML tags and attributes were introduced for the presentation purpose.Also the popular browsers of that time namely Internet Explorer and Netscape Navigator(due to mere competition) provided various ways to support the new tags.

Although all this were appreciated it did came with a problem. HTML was basically invented to display the content to the user but now it was used for presentation purpose. And also it became difficult to maintain larger Websites. So World Wide Web Consortium(W3C) came with Cascading Style Sheets(CSS) as a solution.

CSS separated the content from the presentation and it simplified the way of developing websites. W3C released its first specification of CSS in 1996. The version 4 browsers of Navigator and Internet Explorer started supporting CSS. And at present it is widely adopted for the presentation.

Tips & Tricks : Windows XP run commands

December 27, 2006 at 10:06 am | Posted in Education, Tech | 56 Comments

Run command is very useful, but sometimes it is forgotten. Use it sometimes and you will find how powerful is run command.Here’s the list of 117 run commands

  1. Accessibility Controls – access.cpl
  2. Accessibility Wizard – accwiz
  3. Add Hardware Wizard – hdwwiz.cpl
  4. Add/Remove Programs  – appwiz.cpl
  5. Administrative Tools – control admintools
  6. Automatic Updates – wuaucpl.cpl
  7. Bluetooth Transfer Wizard – fsquirt
  8. Calculator – calc
  9. Certificate Manager – certmgr.msc
  10. Character Map – charmap
  11. Check Disk Utility – chkdsk
  12. Clipboard Viewer – clipbrd
  13. Command Prompt – cmd
  14. Component Services – dcomcnfg
  15. Computer Management – compmgmt.msc
  16. Control Panel – control
  17. Date and Time Properties – timedate.cpl
  18. DDE Shares – ddeshare
  19. Device Manager – devmgmt.msc
  20. Direct X Troubleshooter – dxdiag
  21. Disk Cleanup Utility – cleanmgr
  22. Disk Defragment – dfrg.msc
  23. Disk Management – diskmgmt.msc
  24. Disk Partition Manager – diskpart
  25. Display Properties – control desktop
  26. Display Properties – desk.cpl
  27. Dr. Watson System Troubleshooting Utility – drwtsn32
  28. Driver Verifier Utility – verifier
  29. Event Viewer – eventvwr.msc
  30. Files and Settings Transfer Tool – migwiz
  31. File Signature Verification Tool – sigverif
  32. Findfast – findfast.cpl
  33. Firefox – firefox
  34. Folders Properties – control folders
  35. Fonts – control fonts
  36. Fonts Folder – fonts
  37. Free Cell Card Game – freecell
  38. Game Controllers – joy.cpl
  39. Group Policy Editor (for xp professional) – gpedit.msc
  40. Hearts Card Game – mshearts
  41. Help and Support – helpctr
  42. HyperTerminal – hypertrm
  43. Iexpress Wizard – iexpress
  44. Indexing Service – ciadv.msc
  45. Internet Connection Wizard – icwconn1
  46. Internet Explorer – iexplore
  47. Internet Properties – inetcpl.cpl
  48. Keyboard Properties – control keyboard
  49. Local Security Settings – secpol.msc
  50. Local Users and Groups – lusrmgr.msc
  51. Logs You Out Of Windows – logoff
  52. Malicious Software Removal Tool – mrt
  53. Microsoft Chat – winchat
  54. Microsoft Movie Maker – moviemk
  55. Microsoft Paint – mspaint
  56. Microsoft Syncronization Tool – mobsync
  57. Minesweeper Game – winmine
  58. Mouse Properties – control mouse
  59. Mouse Properties – main.cpl
  60. Netmeeting – conf
  61. Network Connections – control netconnections
  62. Network Connections – ncpa.cpl
  63. Network Setup Wizard – netsetup.cpl
  64. Notepad notepad
  65. Object Packager – packager
  66. ODBC Data Source Administrator – odbccp32.cpl
  67. On Screen Keyboard – osk
  68. Outlook Express – msimn
  69. Paint – pbrush
  70. Password Properties – password.cpl
  71. Performance Monitor – perfmon.msc
  72. Performance Monitor – perfmon
  73. Phone and Modem Options – telephon.cpl
  74. Phone Dialer – dialer
  75. Pinball Game – pinball
  76. Power Configuration – powercfg.cpl
  77. Printers and Faxes – control printers
  78. Printers Folder – printers
  79. Regional Settings  – intl.cpl
  80. Registry Editor – regedit
  81. Registry Editor – regedit32
  82. Remote Access Phonebook – rasphone
  83. Remote Desktop – mstsc
  84. Removable Storage – ntmsmgr.msc
  85. Removable Storage Operator Requests – ntmsoprq.msc
  86. Resultant Set of Policy (for xp professional) – rsop.msc
  87. Scanners and Cameras – sticpl.cpl
  88. Scheduled Tasks – control schedtasks
  89. Security Center – wscui.cpl
  90. Services – services.msc
  91. Shared Folders – fsmgmt.msc
  92. Shuts Down Windows – shutdown
  93. Sounds and Audio – mmsys.cpl
  94. Spider Solitare Card Game – spider
  95. SQL Client Configuration – cliconfg
  96. System Configuration Editor – sysedit
  97. System Configuration Utility – msconfig
  98. System Information – msinfo32
  99. System Properties – sysdm.cpl
  100. Task Manager – taskmgr
  101. TCP Tester – tcptest
  102. Telnet Client – telnet
  103. User Account Management – nusrmgr.cpl
  104. Utility Manager – utilman
  105. Windows Address Book – wab
  106. Windows Address Book Import Utility – wabmig
  107. Windows Explorer – explorer
  108. Windows Firewall – firewall.cpl
  109. Windows Magnifier – magnify
  110. Windows Management Infrastructure – wmimgmt.msc
  111. Windows Media Player – wmplayer
  112. Windows Messenger – msmsgs
  113. Windows System Security Tool – syskey
  114. Windows Update Launches – wupdmgr
  115. Windows Version – winver
  116. Windows XP Tour Wizard – tourstart
  117. Wordpad – write

Corporate Lesson

December 27, 2006 at 5:58 am | Posted in Joke | 8 Comments

A crow was sitting on a tree, doing nothing all day. A small rabbit saw the crow, and asked him, “Can I also sit like you and do nothing all day long?” The crow answered: “Sure, why not.” So, the rabbit sat on the ground below the crow, and rested. All of a sudden, a fox appeared, jumped on the rabbit and ate it.

Moral of the story is:

To be sitting and doing nothing, you must be sitting very, very high up.

Jesus and Devil

December 27, 2006 at 5:55 am | Posted in Joke | 1 Comment

One day, Jesus and the Devil were both working on their computers. Jesus was typing away. The Devil was typing away.

Suddenly a huge blackout filled heaven and hell. When the lights came back on, Jesus picked up right where he left off, but the Devil’s screen was black. Satan says, “How could this happen? I did everything Jesus did!”

Then one person in Hell says, “No, Jesus Saves.”

Create a free website or blog at WordPress.com.
Entries and comments feeds.