Firefox Extension Development | By JIIT OSDC


Published on

Published in: Technology
1 Like
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Firefox Extension Development | By JIIT OSDC

  1. 1. Extension Development Starter<br />
  2. 2. JIIT OSDC<br />OSDC – Open Source Developers Club<br />OSDC, formerly known as Linux User Group (LUG), is a students initiated and maintained body which promotes and encourages the use of Free and Open Source Software (FOSS) amongst students in JIIT.<br />Open for anyone to join.<br />Links:<br />Wiki -<br />IRC - #jiit-lug on<br />Google Groups (Mailing List) -<br />
  3. 3. Knowledge Requirement<br />Minimum requirement is basic knowledge and understanding of the following:<br />HTML (not necessary, but knowledge of HTML really helps with understanding other languages used).<br />Markup Languages<br />XML<br />CSS (basic)<br />Javascript (basic)<br />
  4. 4. HTML<br />Brief on HTML:<br />Stands for HyperText Markup Language.<br />The predominant markup language that is used for web pages.<br />You can use any text editor to write HTML code (example: notepad in Windows, gedit and vim in Linux).<br />
  5. 5. HTML (Example)<br /><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ""> <br /><html lang="en" dir="ltr" xmlns=""> <br /> <head> <br /> <title>HTML - Wikipedia, the free encyclopedia</title> <br /> </head><br /> <body><br /> <h1>Sample HTML Page</h1><br /> <hr size=1 /><br /> <p>Loremipsum...</p><br /> <p>Donecdapibus...</p><br /> </body><br /></html><br />File name: sample.html<br />
  6. 6. Markup Languages<br />A markup language is a modern a way that is synsystem for annotating a text in tactically distinguishable from that text.<br />So, a piece of text enclosed within some kind of markup has some meaning and the meaning is related to the markup.<br />Examples of markup languages: HTML, XML<br />
  7. 7. Markup Languages<br />Example:<br /><html lang="en" dir="ltr" xmlns=""> <br /> <head><title>HTML - Wikipedia, the free encyclopedia</title></head><br /> <body><br /> <h1>Sample HTML Page</h1><br /> <hr size=1 /><br /> <p>Loremipsum...</p><br /> <p>Donecdapibus...</p><br /> </body><br /></html><br /><title> tag defines the title of the webpage that is shown in the browser window’s title bar.<br /><h1> stands for Heading 1, which basically means heading of a particular size.<br />Similarly, <p> stands for paragraph.<br />All these tags surround a piece of text and each tag has a meaning. And that’s how browsers interpret web pages.<br />
  8. 8. XML<br />Stands for Extensible Markup Language.<br />XML is designed to store and transport data.<br />XML code itself is stored in simple text files with a .xml extension.<br />HTML (and XHTML) is a type (or form) of XML.<br />Just like HTML, you can use any editor you want to code XML.<br />XML is important to know and is very easy to learn.<br />
  9. 9. XML<br />So, an XML file without any context has no meaning.<br />For example, if we treat HTML files as XML code, then they make sense as the information stored in HTML files is used to render web pages in web browsers.<br />This makes XML very powerful as any developer can define a standard form of XML code which can be used for a particular application.<br />Other famous forms of XML – XUL, SVG, etc.<br />
  10. 10. XML (Example)<br /><?xml version="1.0"?><br /><name>Message</name><br /><note><br /> <to>Tove</to><br /> <from>Jani</from><br /> <heading>Reminder</heading><br /> <body>Don't forget me this weekend!</body><br /></note><br /><note><br /> <to>JIIT</to><br /> <from>JUIT</from><br /> <heading>Fest Invitation</heading><br /> <body>Invitation for sports fest!</body><br /> <file location="" /><br /></note><br />Isn’t this very similar to HTML? As I mentioned before, HTML is a form of XML or we can say that it has evolved from HTML.<br />File name: sample.xml<br />
  11. 11. CSS<br />Stands for Cascading Style Sheets.<br />CSS is a style sheet language used to describe the look and formatting of a document written in a markup language.<br />Its most common application is to style web pages written in HTML and XHTML.<br />But, the language can also be applied to any kind of XML document, including plain XML, SVG and XUL.<br />
  12. 12. CSS (Example)<br /><html lang="en" dir="ltr" xmlns=""> <br /> <head> <br /> <title>HTML - Wikipedia, the free encyclopedia</title> <br /><link rel="stylesheet" type="text/css" href="css.css" /><br /> </head><br /> ...<br /> ...<br /></html><br /><link> tag is used to create links (not hyperlinks) between HTML pages and other types of files like CSS files. It is also used for a lot of other purposes. The type attribute specifies the type of file that is being linked to the HTML file. The href attribute specifies the path of file that is going to be linked.<br />File name: css.html, css.css<br />
  13. 13. Further Reading<br />Refer to the following links:<br />Don’t study HTML right now.<br />Study XML, CSS and Javascript from<br />