Type of Style Sheets
December 29, 2006 at 6:50 am | Posted in CSS, Tech | 3 CommentsStyle 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.
How to Use On-Screen KeyBoard
December 29, 2006 at 6:01 am | Posted in Education, Tech, Tips and Tricks in XP | 11 CommentsWant 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 | Leave a comment1) 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 | 1 Comment•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 | 1 CommentThe 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 | 28 CommentsRun 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
- Accessibility Controls – access.cpl
- Accessibility Wizard – accwiz
- Add Hardware Wizard – hdwwiz.cpl
- Add/Remove Programs - appwiz.cpl
- Administrative Tools – control admintools
- Automatic Updates – wuaucpl.cpl
- Bluetooth Transfer Wizard – fsquirt
- Calculator – calc
- Certificate Manager – certmgr.msc
- Character Map – charmap
- Check Disk Utility – chkdsk
- Clipboard Viewer – clipbrd
- Command Prompt – cmd
- Component Services – dcomcnfg
- Computer Management – compmgmt.msc
- Control Panel – control
- Date and Time Properties – timedate.cpl
- DDE Shares – ddeshare
- Device Manager – devmgmt.msc
- Direct X Troubleshooter – dxdiag
- Disk Cleanup Utility – cleanmgr
- Disk Defragment – dfrg.msc
- Disk Management – diskmgmt.msc
- Disk Partition Manager – diskpart
- Display Properties – control desktop
- Display Properties – desk.cpl
- Dr. Watson System Troubleshooting Utility – drwtsn32
- Driver Verifier Utility – verifier
- Event Viewer – eventvwr.msc
- Files and Settings Transfer Tool – migwiz
- File Signature Verification Tool – sigverif
- Findfast – findfast.cpl
- Firefox – firefox
- Folders Properties – control folders
- Fonts – control fonts
- Fonts Folder – fonts
- Free Cell Card Game – freecell
- Game Controllers – joy.cpl
- Group Policy Editor (for xp professional) – gpedit.msc
- Hearts Card Game – mshearts
- Help and Support – helpctr
- HyperTerminal – hypertrm
- Iexpress Wizard – iexpress
- Indexing Service – ciadv.msc
- Internet Connection Wizard – icwconn1
- Internet Explorer – iexplore
- Internet Properties – inetcpl.cpl
- Keyboard Properties – control keyboard
- Local Security Settings – secpol.msc
- Local Users and Groups – lusrmgr.msc
- Logs You Out Of Windows – logoff
- Malicious Software Removal Tool – mrt
- Microsoft Chat – winchat
- Microsoft Movie Maker – moviemk
- Microsoft Paint – mspaint
- Microsoft Syncronization Tool – mobsync
- Minesweeper Game – winmine
- Mouse Properties – control mouse
- Mouse Properties – main.cpl
- Netmeeting – conf
- Network Connections – control netconnections
- Network Connections – ncpa.cpl
- Network Setup Wizard – netsetup.cpl
- Notepad notepad
- Object Packager – packager
- ODBC Data Source Administrator – odbccp32.cpl
- On Screen Keyboard – osk
- Outlook Express – msimn
- Paint – pbrush
- Password Properties – password.cpl
- Performance Monitor – perfmon.msc
- Performance Monitor – perfmon
- Phone and Modem Options – telephon.cpl
- Phone Dialer – dialer
- Pinball Game – pinball
- Power Configuration – powercfg.cpl
- Printers and Faxes – control printers
- Printers Folder – printers
- Regional Settings - intl.cpl
- Registry Editor – regedit
- Registry Editor – regedit32
- Remote Access Phonebook – rasphone
- Remote Desktop – mstsc
- Removable Storage – ntmsmgr.msc
- Removable Storage Operator Requests – ntmsoprq.msc
- Resultant Set of Policy (for xp professional) – rsop.msc
- Scanners and Cameras – sticpl.cpl
- Scheduled Tasks – control schedtasks
- Security Center – wscui.cpl
- Services – services.msc
- Shared Folders – fsmgmt.msc
- Shuts Down Windows – shutdown
- Sounds and Audio – mmsys.cpl
- Spider Solitare Card Game – spider
- SQL Client Configuration – cliconfg
- System Configuration Editor – sysedit
- System Configuration Utility – msconfig
- System Information – msinfo32
- System Properties – sysdm.cpl
- Task Manager – taskmgr
- TCP Tester – tcptest
- Telnet Client – telnet
- User Account Management – nusrmgr.cpl
- Utility Manager – utilman
- Windows Address Book – wab
- Windows Address Book Import Utility – wabmig
- Windows Explorer – explorer
- Windows Firewall – firewall.cpl
- Windows Magnifier – magnify
- Windows Management Infrastructure – wmimgmt.msc
- Windows Media Player – wmplayer
- Windows Messenger – msmsgs
- Windows System Security Tool – syskey
- Windows Update Launches – wupdmgr
- Windows Version – winver
- Windows XP Tour Wizard – tourstart
- Wordpad – write
Corporate Lesson
December 27, 2006 at 5:58 am | Posted in Joke | Leave a commentA 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 | Leave a commentOne 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.”
Blog at WordPress.com. | Theme: Pool by Borja Fernandez.
Entries and comments feeds.