0% found this document useful (0 votes)
56 views58 pages

Slideshare Download 2

Uploaded by

Mo Mw
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
56 views58 pages

Slideshare Download 2

Uploaded by

Mo Mw
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 58
Introduction to Web Development HTML, CSS AND JS The First website at CERN TB [0 reece pan ONTO World Wide Web ‘Te Wise) eweabssats onto el mane ng pier ce gee oes Ent ve cine ut 3 ad ity indy th cma aig acti emo eit Mig a, aly vee SLs, seen Asked Oss Peter ber one fron ise “Rist pj compen odes cart sine (Lie Moke Xi in, NeKTSp. Ss. Tih Masset ies’) ‘Ben of pots ema, onan tee "i ioe ou WS a ne Pes “ats soue pepe ste te poe seme thir re ‘enh code aus FTP. Web browser =Tim Berners-Lee imagined a "Web" of interconnected documents. =He wanted authors to be able to connect an idea in one document to the source of the idea in another, or connect a statement with the data that backs up that statement, so that in reading one document, it is easy to access everything related (linked) to it. =This information was navigated by a new tool called a "Browser". HTML, CSS and JS: The big trio HTML: arnt HyperText Markup Language © Contains all the content (words, headings, figures, diagrams, etc.), organized into a logical structure. Current version: HTMLS =CSS: Cascaded Style Sheet » The presentation or style of the page © Current version: CSS 3 wJS: » JavaScript The actions a page can take such as interaction with the user, and customizing and changing the page according to any number of parameters. > Check your knowledge "True or False: © The primary purpose of HTML is to format the text. * False —HTMLis primarily designed to help organize the structure of a document. CSS is used for formatting and other aspects of design. The Tools Simple Advanced Were Tools * Notepad © Visual Studio ¢ Dream * Notepad++ «Atom Weaver °Vim * Vscode ¢ Microsoft «Nano sublime Expression Web * emacs ¢ Adobe XD ae THE CONTENT PART Marking up =HTML uses angle brackets ("<" and ">") to separate the annotations from the regular text. "In HTML these annotations are called "tags. Demo 1: Hello World =Exercise: © Extract tags and normal text from the document

Hello World

This is my first HTML document

Viewing in a browser — ° febneer-s- 5 HTML Element =An HTML document is a set of HTML elements formed in a tree-like structure (Parent -> child) =An element consists of start tag, end tag and the text inside the tag. ,o -® head title html heading body = paragraph DEMO 1: Closer look Start tag ——-

aL Hello World —— content Html element Closing tag --—*

A

This is my first HTML document

Note: Most tags have open and close versions, but there are a few strange ones. We refer to the strange ones as "self closing" tags. (More details later) > Check your knowledge Which is the correct nesting of these elements? 1. “p” inside “body” inside “html” 2. “html” inside “body” inside “p 3. “p” inside “body” inside “head” 1. “p” inside “body” inside “html” Comments =Comments are a way of adding some text that is primarily targeted towards human readers. ="HTML comment tag | Grouping It All together Demo 1 Hello World

This is my first HTML document

More tags =

,

, ...

=

=

3 Classes Selector = Classes allow you to define a style which can be applied to multiple elements on your page. = Example In the CSS -bold { font-weight: bold }

This paragraph will be Bold.

Inthe HTML == ieerfdiessssBatur>! This eAliwillibe\Bortteo t

You might also like