WEll, this time I am talking about the < pre > tag. It is used when you donot want to insert all the whitespaces individually.
Simply speaking, this tag is used when you want to have a preset text in your web-page.
Generally, the white spaces in your script are neglected by the browser. And they can be added using ' ' ( meaning new blank space).Instead if you are using the 'pre' tag, it will display the text as it is written.
Despite the advantage, this tag is rarely seen in the web-pages.
This is the w3schools article on the tag.
PS: Being busy with my other work, am not able to blog regularly
Tweet
Wednesday, October 13, 2010
Thursday, October 7, 2010
# in html!
All the C programmers tend to think of #include as soon as they see '#' symbol. But not all the people know that there is # used in html also!
Well we all have seen the wiikipedia page on one or the other thing,right? Now, there is a table of contents in every page. The elements of this table point to links in the same page. This is where a # symbol comes in handy. It is basically used to maintain an index within the web-page.
while giving the address give href="#link" instead of the entire address of the page.
and to give the target location give name="link" as a part of the 'a' attribute of the location
Here the difference from a normal href is that here we are starting the URL with # indicating that the target is in the same page. Also we have given an attribute 'name' with value=link. This is the address of the target.
(How else would the browser know where to point next?)
Hope you will find it helpfull.
Tweet
Well we all have seen the wiikipedia page on one or the other thing,right? Now, there is a table of contents in every page. The elements of this table point to links in the same page. This is where a # symbol comes in handy. It is basically used to maintain an index within the web-page.
while giving the address give href="#link" instead of the entire address of the page.
and to give the target location give name="link" as a part of the 'a' attribute of the location
Here the difference from a normal href is that here we are starting the URL with # indicating that the target is in the same page. Also we have given an attribute 'name' with value=link. This is the address of the target.
(How else would the browser know where to point next?)
Hope you will find it helpfull.
Tweet
Sunday, October 3, 2010
Time for some shortcuts!!
Usage of mouse all the time to navigate is not so ergonomic, is it? Today I and my friend had nothing else to do so tried out many combinations of key strokes to see what happened. Here are some that might be interesting!
For navigation purpose:
-> Well some of you may be knowing that to go to the previous directory in
your Explorer, be it your internet explorer or the file one, you can use
backspace key.
But do you know that to navigate forward you can use shift + backspace?
for e.g search anything in google and go to the first webpage. now press
backspace
and you will reach back to the search result and now press shift + backspace.
-> You may use windows + D for navigating to the desktop. And press it again to go
back to return to your application.
Notepad:
-> The function keys do have some use in notepad.
-> First is F1: for help
-> Next is F5: for date and time. (Who needs it?)
-> Next is F10: To go to the menubar. If you dont want to use the function keys you
may also use atl button followed by the underlined letter in the respective
field e.g alt + f for file menu.
More will be coming soon!
For navigation purpose:
-> Well some of you may be knowing that to go to the previous directory in
your Explorer, be it your internet explorer or the file one, you can use
backspace key.
But do you know that to navigate forward you can use shift + backspace?
for e.g search anything in google and go to the first webpage. now press
backspace
and you will reach back to the search result and now press shift + backspace.
-> You may use windows + D for navigating to the desktop. And press it again to go
back to return to your application.
Notepad:
-> The function keys do have some use in notepad.
-> First is F1: for help
-> Next is F5: for date and time. (Who needs it?)
-> Next is F10: To go to the menubar. If you dont want to use the function keys you
may also use atl button followed by the underlined letter in the respective
field e.g alt + f for file menu.
More will be coming soon!
Subscribe to:
Posts (Atom)