13/09/2014

What is CSS ?

| |
0 comments

CSS


A CSS (cascading style sheet) file allows you to separate your web sites (X)HTML content from it’s style. As always you use your (X)HTML file to arrange the content, but all of the presentation (fonts, colors, background, borders, text formatting, link effects & so on…) are accomplished within a CSS.

At this point you have some choices of how to use the CSS, either internally or externally.

Advantages of CSS:

  • CSS saves time: You can write CSS once and then reuse same sheet in multiple HTML pages. You can define a style for each HTML element and apply it to as many Web pages as you want.
  • Pages load faster: If you are using CSS, you do not need to write HTML tag attributes every time. Just write one CSS rule of a tag and apply to all the occurrences of that tag. So less code means faster download times.
  • Easy maintenance: To make a global change, simply change the style, and all elements in all the web pages will be updated automatically.
  • Superior styles to HTML: CSS has a much wider array of attributes than HTML so you can give far better look to your HTML page in comparison of HTML attributes.
  • Multiple Device Compatibility: Style sheets allow content to be optimized for more than one type of device. By using the same HTML document, different versions of a website can be presented for handheld devices such as PDAs and cell phones or for printing.
  • Global web standards: Now HTML attributes are being deprecated and it is being recommended to use CSS. So its a good idea to start using CSS in all the HTML pages to make them compatible to future browsers.

Read More

12/09/2014

What is HTML ?

| |
0 comments

HTML

HTML stands for HyperText Markup Language. HTML is the main markup language for describing the structure of Web pages.

Description:

                Hypertext is text displayed on a computer or other electronic device with references to other text that the reader can immediately access, usually by a mouse click or key press sequence.

                Apart from text, hypertext may contain tables, images and other presentational elements. It is an easy-to-use and flexible format to share information over the Internet.

                 Markup Languages use sets of markup tags to characterize text elements within a document, which gives instructions to the Web browser on how the document should appear.

 

HTML Gives You Ability To:

  • Publish documents online with text, headings, images, lists, tables, etc.
  • Accessing online information or other web resources such as images, videos or other HTML document via hyperlinks.
  • Create forms to collect user input like login information, feedback, comments or conducting transactions with remote servers, etc.
  • Include videos, sound clips, flash movies, applications and other HTML document directly inside an HTML document.
Note:HyperText Markup Language (HTML), as described earlier is a markup language not a programming language.

 

HTML Tags:

                 HTML is written in the form of HTML elements consisting of markup tags. These markup tags are the fundamental characteristic of HTML. Every markup tag is composed of a keyword, surrounded by angle brackets (like <html>).

                 HTML tags normally come in pairs like <html> and </html>. The first tag in a pair is the opening tags the second tag is the closing tags. An opening tag and a closing tag are identical, except a "slash" (/) after the opening angle bracket of a closing tag, to tell the browser that the command has been completed. In between these tags web designers can add text, tables, images, etc.

                 For example, a paragraph, which is represented by the p element, would be written as:

<p>In the HTML syntax, most elements are written ...</p>

 

Document Overview:

                 All HTML document seem to be plain text files. They contain no images,sounds, videos etc. but just plain text. However, they may contain links to images, sounds, videos and animations.

Note:The browser does not display the HTML tags, but uses the tags to interpret the content of the page. 
Read More

10/09/2014

Button With Line Breaks

| |
0 comments
You can use carriage return characters to break the line: &#x00A;

<input type="button" value="Really&#x00A;Tall&#x00A; Button">

Live Demo
Read More

06/09/2014

Hide url in address bar

| |
0 comments
Qus: How to hide url in address bar ?

Ans:

The HTML script above works on both Internet Explorer and Netscape/Firefox, etc.


This is First Method:

<html>
<iframe src=http://google.com width=100% noborder height=100% no scroll>
 </html>

This is Second Method:

<html>
<FRAMESET border=0 rows="100%,*" frameborder="no" marginleft=0 margintop=0 marginright=0 marginbottom=0>
<frame src="http://www.WEBSITE.com" scrolling=auto frameborder="no" border=0 noresize>
<frame topmargin="0" marginwidth=0 scrolling=no marginheight=0 frameborder="no" border=0 noresize>
</FRAMESET>
</html>

Demo
Read More

Check Your Codes

Check the result of your (sample) HTML,CSS,JavaScript code.