HTML/CSS Made Easy - The Basic Basics PDF
HTML/CSSMADE EASYThe Basic BasicsHTMLCSSThe Internet The World Wide Web Web BrowsersDefinitions2Tanja PetrovaTanja Petrova3HTML: HyperTextMarkup LanguageHTML describes the function and purpose of a web document, i.e. what it meansHTML is used to build web pages from scratchHTML rules are simple, and easy to understand and useCSS: Cascading Style SheetsTanja Petrova4CSS describes how a web document should be visually presented, i.e. how it should lookCSS stylesa web documentCSS rules are simple, and easy to understand and useThe Internet and the World Wide WebTanja Petrova5The Internet is a network of computers across the world that are connected, and send and receive dataThe World Wide Web is the millions/billions of files/documents that live on computers and form a web of information around the worldThe web has evolved from plain text to include videos, images and audio, but the text is encoded in HTMLWeb BrowsersTanja Petrova6A browser’s job is to interpret, and then render/present a web documentNot all browsers are graphical, i.e. some only render plain, unstyledtext without imagesA browser is also called a clientas it requests and receives service. A computer that serves data to a client is called a serverHow it worksHTML versionsWhat is HTML?7Tanja PetrovaHow HTML works:Tanja Petrova8HTML converts plain text into text that can be displayed on the webHTML gives structureto text so it is easier for humans to read itHow HTML works:Tanja Petrova9HTML is made up of markers called tagsthat surround bits of text, to show the functionand purposeof the textTagsare distinct from the text. They give information about the text.How HTML works:Tanja Petrova10There are rules to follow when writing HTML to ensure that it works properlyThese rules are maintained by the World Wide Web Consortium, an organization that also maintains web standardsHow HTML works:Tanja Petrova11Standardization ensures that everyone follows the same rulesStandardization also ensures that websites work everywhere. Standards make the web ‘platform independent’ and ‘device independent’ HTML versions:Tanja Petrova12HTML 1.0 –1993HTML 2.0 –1995HTML 3.0 –1996HTML 4.0 –1997HTML 4.01 –1999XHTML 1.0 -2000HTML versions:Tanja Petrova13XHTML = eXtensibleHTML –follows the more rigid rules of eXtensibleMarkup Language (XML)XHTML is very similar to HTML 4.01, with just a few more rules. These sessions will be using XHTMLHTML versions:Tanja Petrova14XHTML Strict –the most rigid rules that must be followed. Deprecated features are forbiddenXHTML Transitional –some outdated features are allowedXHTML Frameset –used only for frames i.e. web pages that are split into parts, each with a different documentContent vsPresentation –a critical distinctionHTML vsCSS15Tanja PetrovaHTML vsCSS:Tanja Petrova16HTML gives structure to text by treating different blocks of words as different types of contentHTML is intended to provide structure –it is only concerned with what content means. HTML is notintended to handle the displayof contentHTML vsCSS:Tanja Petrova17CSS describes how HTML documents should be displayedCSS adds visual design and does not interfere with the meaning of the contentHTML vsCSS:Tanja Petrova18Separating content from presentation is critical. It ensures that the content of a web page can be modified without having to change the design. On the other hand, the design of a web page can be modified without having to change the content. This avoids the trap of presentational markupi.e. mixing content with presentationText EditorsWeb BrowsersFile StorageTo make a web page19Tanja PetrovaText Editors:Tanja Petrova20Windows –Notepad++ , PSPad, KomodoLinux –Vim, gEdit, EmacsMac –TextEdit, Smultron, TextWranglerWeb Browsers:Tanja Petrova21ChromeFirefoxExplorerSafariOperaNetscapeFile Storage:Tanja Petrova22To be visible on the web, your files must live on a web server. Your ISP may provide you with web space, you may use free web space online, or you may pay for web space.URL ComponentsAbsolute vsRelative URLsThe URL23Tanja PetrovaURL: Uniform Resource LocatorTanja Petrova24Every document on the web lives at a unique address called a URL. This address allows a web-connected device to locate a specific file on a specific server to download and display it to the user or to use it for another purpose.URL: Uniform Resource LocatorTanja Petrova25Each of these addresses points to a specific file:www.wiziq.comwww.wiziq.com/classeswww.wiziq.com/classes/myclassesEach of these is a unique address.URL ComponentsTanja Petrova26Each URL is made up of distinct parts that communicate specific information:Protocol Hostname Path Filehttp://www.wiziq.com/content/upload.htmlPrefix Domain Name ExtensionURLComponentsTanja Petrova27Protocol –indicates a set of rules that dictate the movement of data over the internet. The web uses HyperTextTransfer Protocol (HTTP) to transmit hypertext data from one computer to another. The protocol is separated by a colon and two forward slashesURLComponentsTanja Petrova28Hostname –the site from which the browser will get the file. The real address is a numeric Internet Protocol address (65.139.384.205), but it would be very challenging for humans to have to remember a series of numbers for every website, so a more user-friendly system was developedURL ComponentsTanja Petrova29Domain name –a more memorable alias that directs traffic to an IP addressDomain prefix –names the particular server being accessed . The prefix is optionalDomain suffix –indicates the category of domain -.edu, .co.uk, .bizURL ComponentsTanja Petrova30Path –specifies the directory/folder that holds the document we want. This path is the route a client follows to reach the file. Each directory is separated by a forward slashURL ComponentsTanja Petrova31File name and extension –identify the requested file. The file extension indicates the type of file e.g. .html, .css, .jsAbsolute URLTanja Petrova32An absolute URL includes the full string, including the protocol and hostname. It leaves no doubt as to the location of the resource:http://www.wiziq.com/classes/myclasses.htmlRelative URLTanja Petrova33A relative URL references only the path and/or file, leaving out the protocol and hostname:classes/myclasses.htmlHope you enjoyed this presentation. Please come back again!34Tanja Petrova
Description
This is the PDF version of the PowerPoint Presentation.
This presentation provides an introduction to HTML and CSS.
It briefly defines HTML, CSS, the Internet, the World Wide Web and web browsers.
It then examines the specific job of HTML and how it works. A short examination of HTML version is then undertaken.
The next section attempts to explain the separate and distinct jobs that HTML and CSS perform. A case is made for keeping the two languages separate.
The tools needed to make a web page follows.
The last section looks at what URLs are.
Presentation Transcript
Your Facebook Friends on WizIQ