SlideShare a Scribd company logo
1 of 86
Introduction to
Nico Abel Laia
Front End Web Developer
Html | Css | Javascript
Anatomy Website
Let’s find out
Code Version
Website
Version
Code Editor
To Create a Website
Code Editors
To Create a Website
Visual Studio Code Atom Code Editor Notepad++
Visual Studio Code
Extensions
Very Usefull
www.codepen.io
Online Code Editor
Demo Website
Let’s find out
Website
Let’s go to the
What is HTML?
Introduction to HTML
What is HTML?
Definition
Hyper Text Markup Language, or HTML, is a Markup
language used to build web pages and web
applications.
Hypertext
Definition
Hypertext is "Text within Text". A text is a hypertext
if it contains a link. A hypertext is one that when you
click on it, takes you to a different webpage.
HyperText is a method of connecting two or more
web pages (HTML documents).
A markup language is a
computer language that is
used to apply layout and
formatting conventions to a
text document. Markup
language makes text more
interactive and dynamic. It can
turn text into images, tables,
links, etc.
Markup Language
Definition
Explanation
An HTML element is defined by a start tag, some
content, and an end tag. The HTML element is
everything from the start tag to the end tag
What is an HTML Element?
Common Tags of HTML
Definition
Nested elements are elements that have other
elements in them.
Example:
<p><strong>GDSC</strong> 2nd meeting</p>
>> GDSC 2nd meeting
Nesting Elements
Definition
Void Elements are elements that have no content in
them
<img
src=”https://res.cloudinary.com/startup-
grind/image/upload/dpr_2.0,fl_sanitize/v1
/gcs/platform-data-
dsc/contentbuilder/logo_dark_stacked_KzUu
rne.png”
alt=”GDSC Logo” />
Void Elements
Definition
● All HTML elements can have attributes
● Attributes provide additional information about
elements
● Attributes are always specified in the start tag
● Attributes usually come in name/value pairs like:
name="value"
HTML Attributes
Common HTML Attributes
Attribute Description
alt Specifies an alternative text for an image
disabled Specifies that an input element should be disabled
href Specifies the URL (Web Address) for a link
id Specifies a unique id for an element
src Specifies the URL (Web Address) for an image
style Specifies an inline CSS style for an element
title Specifies extra information about an element (displayed as tool tip)
value Specifies the values (text content) for an input element.
<!DOCTYPE html>
<html>
<head>
<title>Web page title</title>
</head>
<body>
<h1>This is how you define your header</h1>
<p>This is how you define your paragraph.</p>
</body>
</html>
This is how you define your
header
This is how you define your paragraph.
Simple Example of HTML
● The <!DOCTYPE html> declaration defines that this document is an HTML5
document
● The <html> element is the root element of an HTML page
● The <head> element contains meta information about the HTML page
● The <title> element specifies a title for the HTML page (which is shown in
the browser's title bar or in the page's tab)
● The <body> element defines the document's body, and is a container for all
the visible contents, such as headings, paragraphs, images, hyperlinks, tables,
lists, etc.
● The <h1> element defines a large heading
● The <p> element defines a paragraph
Example
Explanation
Headings
Heading elements allow you to specify that certain
parts of your content are headings — or
subheadings.
Marking up text
<h1>GDSC Matana</h1>
<h2>Study Jam 2</h2>
<h3>Intro to HTML, CSS, and Javascript</h3>
<h4>Nico Abel Laia</h4>
GDSC Matana
Study Jam 2
Intro to HTML, CSS, and Javascript
Nico Abel Laia
Headings
Paragraph
Paragraph elements are for containing paragraphs
of text; you'll use these frequently when marking up
regular text content.
Marking up text
<p>In this section we will discuss about
HTML.</p>
In this section we will discuss about
HTML.
Paragraph
Lists
Marking up lists always consists of at least 2 elements.
The most common list types are ordered and
unordered lists:
1.Unordered lists are for lists where the order of the
items doesn't matter, wrapped in a <ul> element.
2.Ordered lists are for lists where the order of the
items does matter, wrapped in an <ol> element.
Each item inside the lists is put inside an <li> (list
item) element.
Marking up text
<p>Below is our material for today:</p>
<ul>
<li>Website Anatomy</li>
<li>How browser manage resources</li>
<li>How browser request resources</li>
<li>What is developer tools</li>
<li>Code Editor Tools</li>
<li>Demo web page</li>
<li>What is HTML</li>
<li>What is CSS</li>
<li>What is Javascript</li>
</ul>
Below is our material for today:
● Website Anatomy
● How browser manage resources
● How browser request resources
● What is developer tools
● Code Editor Tools
● Demo web page
● What is HTML
● WHat is CSS
● What is Javascript
Lists
To add a link, we need to use a simple element — <a> — "a" being the short
form for "anchor". To make text within your paragraph into a link, follow
these steps:
1.Choose some text.
2.Wrap the text in an <a> element.
3.Give the <a> element an href attribute.
4.Fill in the value of this attribute with the web address that you want the
link to.
<a
href="https://www.instagram.com/p/Ck0dKe_BI5o/?utm_source=ig_web_copy_link">Study
Jam 2</a>
>>> Study Jam 2
Link
Explanation
If we combine all the pieces we
created earlier, our HTML web page
will look like this:
GDSC Intro to HTML
Conclusion
Intro to HTML
What is CSS?
Introduction to CSS
What is CSS?
Definition
CSS (Cascading Style Sheet) is a
markup language for managing the
appearance and beautification of
websites.
Definition
A style sheet contains one or
more styling rules (rules/rule-
sets). For example, the example
consists of two rules. The first rule
sets the color for <h1>, while the
second rule sets the color and
font size on <p>.
Styling
CSS Rule
CSS rules contain one or more selectors and one or
more declarations.
Styling
CSS Rule
Declaration Block contains some declarations on one
or more selectors.
Styling
Categories of Basic Selectors
There are five categories of Basic Selectors:
1. Type Selector
2. Class Selector
3. ID Selector
4. Attribute Selector
5. Universal Selector
Styling
Type Selector
Using the element’s
name as the selector.
Class Selector
Using the class
attribute name as a
selector.
ID Selector
Using id attribute
value as the
selector.
Attribute Selector
Using attribute element value as
selector. This selector can also be
added value so that it is more
specific.
Attribute Selector
Universal Selector
Apply rules to all existing elements
and can also be used more
specifically for an element that has a
different selector.
Universal Selector
There are three ways:
1. Embedded Styles : adding css code in the header section
2. Linked Styles : adding css code in different file, then link it to the HTML
file using <link>
3. Inline Styles : adding css code to each HTML tag without selector
Linking CSS with HTML
Definition
Embedded Style
Linked Style
Inline Style
JavaScript
JavaScript and How it Works
Definition
JavaScript is a client side programming language,
because all the processes run on the client side and
used when it requires user interaction.
JavaScript
Definition
At first, JavaScript is designed to run on the web. But,
JavaScript can be used to created games, servers, IoT,
etc. The first name of JavaScript was Mocha. Later, it
changed to LiveScript, and now JavaScript.
JavaScript
Syntax
JavaScript syntax writes between the tags <script> and
</script>
Same as CSS, there are three methods to write
Javascript in HTML files.
1. Inline Script
2. Embedded Script
3. Linked Script
JavaScript
Inline Script
Inline script writes in the HTML tag inside the HTML files.
Example:
Embedded Script
Embedded script writes inside the <head> or <body> element in the HTML
files.
Example:
Linked Script
JavaScript with the method linked script writes in different files with the file
extensions is ‘.js’. Then the path will be writes in the <head> element.
Example in the <head> element:
How JavaScript Works
How JavaScript Works
JavaScript Engine
A popular example of a JavaScript
Engine is Google’s V8 engine. The
V8 engine is used inside Chrome
and Node.js.
How JavaScript Works
JavaScript Engine
Two main components of JavaScript
Engine:
a. Memory Heap — this is where the
memory allocation happens
b. Call Stack — this is where your stack
frames are as your code executes
How JavaScript Works
JavaScript Engine
Parser: It checks for syntax and semantics.
Parser breaks code into tokens in order to
understand their meanings and these
tokens gets converted into Abstract Syntax
Tree (AST).
How JavaScript Works
JavaScript Engine
Abstract Syntax Tree: It is a hierarchical
tree that allows interpreter to understand
the program.
How JavaScript Works
JavaScript Engine
Interpreter: It lets the AST to get converted
into Byte code.
How JavaScript Works
JavaScript Engine
Profiler: It will check for the repeating code
that can be optimized. As soon as, it gets
the repeating code, it basically moves the
code into compiler.
How JavaScript Works
JavaScript Engine
Compiler: It spits out the most optimized
bytecode. In the above case, it will see the
repeating code and optimize the code by
replacing the multiply(4, 3) as 12
How JavaScript Works
JavaScript The Call Stack
JavaScript is Single thread , meaning JavaScript can handle(executes) only
one function at a time. If we step into a function, we put it on the top of the
stack. If we return from a function, we pop off the top of the stack. That’s all
the stack can do. Each of the entry in the call stack is called stack frame.
How JavaScript Works
JavaScript Call Stack
How JavaScript Works
When client opens a website, the script will downloaded automatically and
running in the browser. So, the process is not done on the web server. If the
client’s browser does not support JavaScript, then the appearance and the
interactive function on the client’s device will different and can not run
properly.
Client Side
How JavaScript Works
Server-Side JavaScript is the use of the JavaScript language on servers. You
know, those computers that are always on (and maybe online) running stuff,
doing all kinds of work. Nowadays many of them have software, web
servers, command-line applications, and other services that are written in
JavaScript.
Server Side
Resources
How browsers requests resources
Browser Requests Resources
When we input the web address into the browser,
browser will send the domain name to DNS server to
get the IP address of the domain name. It can be
analogized as we find the address of a shop.
After browser knows the IP address of the domain
name, browser will send the HTTP request to the
server to ask for the HTML files of the website. We can
think this as we order goods to the employee.
Browser Requests Resources
The HTML files of the website usually contain <link>
and <script> element. The <link> element referencing
to the external CSS stylesheet and <script> refers to
the external JavaScript scripts.
So, browser will parses the HTML files and recognized
<link> and <script> element. Then, browser will
request for the <link> and <script> to the server.
Client
DNS Server
Google Server
216.61.137.0
(Domain Address)
https://gdsc.community.dev/universitas-matana/
34.120.73.225:443
(IP of Server)
Request (HTTP Request)
GET/universitas-matana/
Response (HTTP Response)
HTML files
Request
<link> and <script>
Response
Developer Tools
Subtitle Goes Here
Definition
Developer Tools (DevTools) are tools that do a lot of
things, such as inspecting currently-loaded HTML, CSS,
and JavaScript.
Developer Tools
DevTools
How to Open
To access the DOM or CSS of one webpage:
● Right-click element on the page -> select Inspect
● Windows, Linux, Chrome OS : Ctrl+Shift+C/I
● Mac : Command+Option+C
● Internet Explorer/Edge : F12
DevTools
How to Open
Features
Some features DevTools (may be different in some browsers):
• Elements
• Console
• Sources
• Application
• Network
• Security
• Lighthouse
DevTools
Features
DevTools
“Elements” is used to debug
HTML and CSS code or
temporary change the HTML
and CSS code (just to see
how it will reflect on website)
Features
DevTools
“Console” is used to debug
JavaScript code, view the
logged message, run the
JavaScript code, show error
with the line number in
source code.
Features
DevTools
“Sources” shows where the
files used to make the
website are store, set
breakpoints, and watch the
value of variables.
Features
DevTools
“Application” is used to
manage the resources ( such
as cookies, local storage, SQL
databases, etc).
Features
DevTools
“Network” shows the details
of status, type, initiator, time,
and waterfall of one
webpage.
Features
DevTools
“Security” displays security
information on the currently
active web, to ensure the
HTTPS is implemented in the
webpage, and show the SSL
certificate.
Features
DevTools
“Lighthouse” identifies and
resolves the issues that
affect the website’s page load
performance, accessibility,
and user experience.

More Related Content

Similar to Bootcamp - Web Development Session 2

Introduction to Web Development.pptx
Introduction to Web Development.pptxIntroduction to Web Development.pptx
Introduction to Web Development.pptxGDSCVJTI
 
Introduction to Web Development.pptx
Introduction to Web Development.pptxIntroduction to Web Development.pptx
Introduction to Web Development.pptxAlisha Kamat
 
Introduction to whats new in css3
Introduction to whats new in css3Introduction to whats new in css3
Introduction to whats new in css3Usman Mehmood
 
web development.pdf
web development.pdfweb development.pdf
web development.pdfBagHarki
 
Choice of programming language for web developing.
Choice of programming language for web developing.Choice of programming language for web developing.
Choice of programming language for web developing.Mohammad Kamrul Hasan
 
Web development Training in Ambala ! Batra Computer Centre
Web development Training in Ambala ! Batra Computer CentreWeb development Training in Ambala ! Batra Computer Centre
Web development Training in Ambala ! Batra Computer Centrejatin batra
 
INTERNSHIP PROJECT PPT RAJ HZL.pdf
INTERNSHIP PROJECT PPT RAJ HZL.pdfINTERNSHIP PROJECT PPT RAJ HZL.pdf
INTERNSHIP PROJECT PPT RAJ HZL.pdfDineshKumar522328
 
Week 2-intro-html
Week 2-intro-htmlWeek 2-intro-html
Week 2-intro-htmlShawn Calvert
 
HTML & CSS.ppt
HTML & CSS.pptHTML & CSS.ppt
HTML & CSS.pptvaseemshaik21
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to htmlHimanshu Pathak
 
Html Workshop
Html WorkshopHtml Workshop
Html Workshopvardanyan99
 
Introduction to Html5, css, Javascript and Jquery
Introduction to Html5, css, Javascript and JqueryIntroduction to Html5, css, Javascript and Jquery
Introduction to Html5, css, Javascript and Jqueryvaluebound
 
Teched Inetrgation ppt and lering in simple
Teched Inetrgation ppt  and lering in simpleTeched Inetrgation ppt  and lering in simple
Teched Inetrgation ppt and lering in simpleJagadishBabuParri
 
Grade 10 COMPUTER
Grade 10 COMPUTERGrade 10 COMPUTER
Grade 10 COMPUTERJoel Linquico
 
Presentation html
Presentation   htmlPresentation   html
Presentation htmlBilly Tierra
 
Web Concepts - an introduction - introduction
Web Concepts - an introduction - introductionWeb Concepts - an introduction - introduction
Web Concepts - an introduction - introductionclement swarnappa
 
Web Page Designing
Web Page DesigningWeb Page Designing
Web Page DesigningAmit Mali
 

Similar to Bootcamp - Web Development Session 2 (20)

Introduction to Web Development.pptx
Introduction to Web Development.pptxIntroduction to Web Development.pptx
Introduction to Web Development.pptx
 
Introduction to Web Development.pptx
Introduction to Web Development.pptxIntroduction to Web Development.pptx
Introduction to Web Development.pptx
 
Introduction to whats new in css3
Introduction to whats new in css3Introduction to whats new in css3
Introduction to whats new in css3
 
web development.pdf
web development.pdfweb development.pdf
web development.pdf
 
Choice of programming language for web developing.
Choice of programming language for web developing.Choice of programming language for web developing.
Choice of programming language for web developing.
 
Web development Training in Ambala ! Batra Computer Centre
Web development Training in Ambala ! Batra Computer CentreWeb development Training in Ambala ! Batra Computer Centre
Web development Training in Ambala ! Batra Computer Centre
 
INTERNSHIP PROJECT PPT RAJ HZL.pdf
INTERNSHIP PROJECT PPT RAJ HZL.pdfINTERNSHIP PROJECT PPT RAJ HZL.pdf
INTERNSHIP PROJECT PPT RAJ HZL.pdf
 
Week 2-intro-html
Week 2-intro-htmlWeek 2-intro-html
Week 2-intro-html
 
Html
HtmlHtml
Html
 
HTML & CSS.ppt
HTML & CSS.pptHTML & CSS.ppt
HTML & CSS.ppt
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
Html Workshop
Html WorkshopHtml Workshop
Html Workshop
 
Html
HtmlHtml
Html
 
Introduction to Html5, css, Javascript and Jquery
Introduction to Html5, css, Javascript and JqueryIntroduction to Html5, css, Javascript and Jquery
Introduction to Html5, css, Javascript and Jquery
 
Teched Inetrgation ppt and lering in simple
Teched Inetrgation ppt  and lering in simpleTeched Inetrgation ppt  and lering in simple
Teched Inetrgation ppt and lering in simple
 
Grade 10 COMPUTER
Grade 10 COMPUTERGrade 10 COMPUTER
Grade 10 COMPUTER
 
Presentation html
Presentation   htmlPresentation   html
Presentation html
 
Web Concepts - an introduction - introduction
Web Concepts - an introduction - introductionWeb Concepts - an introduction - introduction
Web Concepts - an introduction - introduction
 
Web Page Designing
Web Page DesigningWeb Page Designing
Web Page Designing
 
Presentation 1 (1).pptx
Presentation 1 (1).pptxPresentation 1 (1).pptx
Presentation 1 (1).pptx
 

More from GDSCUniversitasMatan

2023 Google Solution Challenge Kickoff From Idea to Execution
2023 Google Solution Challenge Kickoff From Idea to Execution2023 Google Solution Challenge Kickoff From Idea to Execution
2023 Google Solution Challenge Kickoff From Idea to ExecutionGDSCUniversitasMatan
 
Bootcamp - Web Development Session 5
 Bootcamp - Web Development Session 5 Bootcamp - Web Development Session 5
Bootcamp - Web Development Session 5GDSCUniversitasMatan
 
Bootcamp - Web Development Session 4
 Bootcamp - Web Development Session 4 Bootcamp - Web Development Session 4
Bootcamp - Web Development Session 4GDSCUniversitasMatan
 
Bootcamp - Web Development Session 1
Bootcamp - Web Development Session 1Bootcamp - Web Development Session 1
Bootcamp - Web Development Session 1GDSCUniversitasMatan
 
Introduction to GDSC Universitas Matana
Introduction to GDSC Universitas MatanaIntroduction to GDSC Universitas Matana
Introduction to GDSC Universitas MatanaGDSCUniversitasMatan
 

More from GDSCUniversitasMatan (6)

Introduction to UI UX
Introduction to UI UXIntroduction to UI UX
Introduction to UI UX
 
2023 Google Solution Challenge Kickoff From Idea to Execution
2023 Google Solution Challenge Kickoff From Idea to Execution2023 Google Solution Challenge Kickoff From Idea to Execution
2023 Google Solution Challenge Kickoff From Idea to Execution
 
Bootcamp - Web Development Session 5
 Bootcamp - Web Development Session 5 Bootcamp - Web Development Session 5
Bootcamp - Web Development Session 5
 
Bootcamp - Web Development Session 4
 Bootcamp - Web Development Session 4 Bootcamp - Web Development Session 4
Bootcamp - Web Development Session 4
 
Bootcamp - Web Development Session 1
Bootcamp - Web Development Session 1Bootcamp - Web Development Session 1
Bootcamp - Web Development Session 1
 
Introduction to GDSC Universitas Matana
Introduction to GDSC Universitas MatanaIntroduction to GDSC Universitas Matana
Introduction to GDSC Universitas Matana
 

Recently uploaded

Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Dr. Mazin Mohamed alkathiri
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 

Recently uploaded (20)

Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
CĂłdigo Creativo y Arte de Software | Unidad 1
CĂłdigo Creativo y Arte de Software | Unidad 1CĂłdigo Creativo y Arte de Software | Unidad 1
CĂłdigo Creativo y Arte de Software | Unidad 1
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 

Bootcamp - Web Development Session 2

  • 1. Introduction to Nico Abel Laia Front End Web Developer Html | Css | Javascript
  • 4.
  • 5.
  • 6.
  • 8. Code Editors To Create a Website Visual Studio Code Atom Code Editor Notepad++
  • 12.
  • 13.
  • 16. What is HTML? Definition Hyper Text Markup Language, or HTML, is a Markup language used to build web pages and web applications.
  • 17. Hypertext Definition Hypertext is "Text within Text". A text is a hypertext if it contains a link. A hypertext is one that when you click on it, takes you to a different webpage. HyperText is a method of connecting two or more web pages (HTML documents).
  • 18. A markup language is a computer language that is used to apply layout and formatting conventions to a text document. Markup language makes text more interactive and dynamic. It can turn text into images, tables, links, etc. Markup Language Definition
  • 19. Explanation An HTML element is defined by a start tag, some content, and an end tag. The HTML element is everything from the start tag to the end tag What is an HTML Element?
  • 21. Definition Nested elements are elements that have other elements in them. Example: <p><strong>GDSC</strong> 2nd meeting</p> >> GDSC 2nd meeting Nesting Elements
  • 22. Definition Void Elements are elements that have no content in them <img src=”https://res.cloudinary.com/startup- grind/image/upload/dpr_2.0,fl_sanitize/v1 /gcs/platform-data- dsc/contentbuilder/logo_dark_stacked_KzUu rne.png” alt=”GDSC Logo” /> Void Elements
  • 23. Definition ● All HTML elements can have attributes ● Attributes provide additional information about elements ● Attributes are always specified in the start tag ● Attributes usually come in name/value pairs like: name="value" HTML Attributes
  • 24. Common HTML Attributes Attribute Description alt Specifies an alternative text for an image disabled Specifies that an input element should be disabled href Specifies the URL (Web Address) for a link id Specifies a unique id for an element src Specifies the URL (Web Address) for an image style Specifies an inline CSS style for an element title Specifies extra information about an element (displayed as tool tip) value Specifies the values (text content) for an input element.
  • 25. <!DOCTYPE html> <html> <head> <title>Web page title</title> </head> <body> <h1>This is how you define your header</h1> <p>This is how you define your paragraph.</p> </body> </html> This is how you define your header This is how you define your paragraph. Simple Example of HTML
  • 26. ● The <!DOCTYPE html> declaration defines that this document is an HTML5 document ● The <html> element is the root element of an HTML page ● The <head> element contains meta information about the HTML page ● The <title> element specifies a title for the HTML page (which is shown in the browser's title bar or in the page's tab) ● The <body> element defines the document's body, and is a container for all the visible contents, such as headings, paragraphs, images, hyperlinks, tables, lists, etc. ● The <h1> element defines a large heading ● The <p> element defines a paragraph Example Explanation
  • 27. Headings Heading elements allow you to specify that certain parts of your content are headings — or subheadings. Marking up text
  • 28. <h1>GDSC Matana</h1> <h2>Study Jam 2</h2> <h3>Intro to HTML, CSS, and Javascript</h3> <h4>Nico Abel Laia</h4> GDSC Matana Study Jam 2 Intro to HTML, CSS, and Javascript Nico Abel Laia Headings
  • 29. Paragraph Paragraph elements are for containing paragraphs of text; you'll use these frequently when marking up regular text content. Marking up text
  • 30. <p>In this section we will discuss about HTML.</p> In this section we will discuss about HTML. Paragraph
  • 31. Lists Marking up lists always consists of at least 2 elements. The most common list types are ordered and unordered lists: 1.Unordered lists are for lists where the order of the items doesn't matter, wrapped in a <ul> element. 2.Ordered lists are for lists where the order of the items does matter, wrapped in an <ol> element. Each item inside the lists is put inside an <li> (list item) element. Marking up text
  • 32. <p>Below is our material for today:</p> <ul> <li>Website Anatomy</li> <li>How browser manage resources</li> <li>How browser request resources</li> <li>What is developer tools</li> <li>Code Editor Tools</li> <li>Demo web page</li> <li>What is HTML</li> <li>What is CSS</li> <li>What is Javascript</li> </ul> Below is our material for today: ● Website Anatomy ● How browser manage resources ● How browser request resources ● What is developer tools ● Code Editor Tools ● Demo web page ● What is HTML ● WHat is CSS ● What is Javascript Lists
  • 33. To add a link, we need to use a simple element — <a> — "a" being the short form for "anchor". To make text within your paragraph into a link, follow these steps: 1.Choose some text. 2.Wrap the text in an <a> element. 3.Give the <a> element an href attribute. 4.Fill in the value of this attribute with the web address that you want the link to. <a href="https://www.instagram.com/p/Ck0dKe_BI5o/?utm_source=ig_web_copy_link">Study Jam 2</a> >>> Study Jam 2 Link Explanation
  • 34. If we combine all the pieces we created earlier, our HTML web page will look like this: GDSC Intro to HTML Conclusion Intro to HTML
  • 36. What is CSS? Definition CSS (Cascading Style Sheet) is a markup language for managing the appearance and beautification of websites.
  • 37. Definition A style sheet contains one or more styling rules (rules/rule- sets). For example, the example consists of two rules. The first rule sets the color for <h1>, while the second rule sets the color and font size on <p>. Styling
  • 38. CSS Rule CSS rules contain one or more selectors and one or more declarations. Styling
  • 39. CSS Rule Declaration Block contains some declarations on one or more selectors. Styling
  • 40. Categories of Basic Selectors There are five categories of Basic Selectors: 1. Type Selector 2. Class Selector 3. ID Selector 4. Attribute Selector 5. Universal Selector Styling
  • 41. Type Selector Using the element’s name as the selector.
  • 42. Class Selector Using the class attribute name as a selector.
  • 43. ID Selector Using id attribute value as the selector.
  • 44. Attribute Selector Using attribute element value as selector. This selector can also be added value so that it is more specific.
  • 46. Universal Selector Apply rules to all existing elements and can also be used more specifically for an element that has a different selector.
  • 48. There are three ways: 1. Embedded Styles : adding css code in the header section 2. Linked Styles : adding css code in different file, then link it to the HTML file using <link> 3. Inline Styles : adding css code to each HTML tag without selector Linking CSS with HTML Definition
  • 53. Definition JavaScript is a client side programming language, because all the processes run on the client side and used when it requires user interaction. JavaScript
  • 54. Definition At first, JavaScript is designed to run on the web. But, JavaScript can be used to created games, servers, IoT, etc. The first name of JavaScript was Mocha. Later, it changed to LiveScript, and now JavaScript. JavaScript
  • 55. Syntax JavaScript syntax writes between the tags <script> and </script> Same as CSS, there are three methods to write Javascript in HTML files. 1. Inline Script 2. Embedded Script 3. Linked Script JavaScript
  • 56. Inline Script Inline script writes in the HTML tag inside the HTML files. Example:
  • 57. Embedded Script Embedded script writes inside the <head> or <body> element in the HTML files. Example:
  • 58. Linked Script JavaScript with the method linked script writes in different files with the file extensions is ‘.js’. Then the path will be writes in the <head> element. Example in the <head> element:
  • 60. How JavaScript Works JavaScript Engine A popular example of a JavaScript Engine is Google’s V8 engine. The V8 engine is used inside Chrome and Node.js.
  • 61. How JavaScript Works JavaScript Engine Two main components of JavaScript Engine: a. Memory Heap — this is where the memory allocation happens b. Call Stack — this is where your stack frames are as your code executes
  • 62. How JavaScript Works JavaScript Engine Parser: It checks for syntax and semantics. Parser breaks code into tokens in order to understand their meanings and these tokens gets converted into Abstract Syntax Tree (AST).
  • 63. How JavaScript Works JavaScript Engine Abstract Syntax Tree: It is a hierarchical tree that allows interpreter to understand the program.
  • 64. How JavaScript Works JavaScript Engine Interpreter: It lets the AST to get converted into Byte code.
  • 65. How JavaScript Works JavaScript Engine Profiler: It will check for the repeating code that can be optimized. As soon as, it gets the repeating code, it basically moves the code into compiler.
  • 66. How JavaScript Works JavaScript Engine Compiler: It spits out the most optimized bytecode. In the above case, it will see the repeating code and optimize the code by replacing the multiply(4, 3) as 12
  • 67. How JavaScript Works JavaScript The Call Stack JavaScript is Single thread , meaning JavaScript can handle(executes) only one function at a time. If we step into a function, we put it on the top of the stack. If we return from a function, we pop off the top of the stack. That’s all the stack can do. Each of the entry in the call stack is called stack frame.
  • 69. How JavaScript Works When client opens a website, the script will downloaded automatically and running in the browser. So, the process is not done on the web server. If the client’s browser does not support JavaScript, then the appearance and the interactive function on the client’s device will different and can not run properly. Client Side
  • 70. How JavaScript Works Server-Side JavaScript is the use of the JavaScript language on servers. You know, those computers that are always on (and maybe online) running stuff, doing all kinds of work. Nowadays many of them have software, web servers, command-line applications, and other services that are written in JavaScript. Server Side
  • 72. Browser Requests Resources When we input the web address into the browser, browser will send the domain name to DNS server to get the IP address of the domain name. It can be analogized as we find the address of a shop. After browser knows the IP address of the domain name, browser will send the HTTP request to the server to ask for the HTML files of the website. We can think this as we order goods to the employee.
  • 73. Browser Requests Resources The HTML files of the website usually contain <link> and <script> element. The <link> element referencing to the external CSS stylesheet and <script> refers to the external JavaScript scripts. So, browser will parses the HTML files and recognized <link> and <script> element. Then, browser will request for the <link> and <script> to the server.
  • 74. Client DNS Server Google Server 216.61.137.0 (Domain Address) https://gdsc.community.dev/universitas-matana/ 34.120.73.225:443 (IP of Server) Request (HTTP Request) GET/universitas-matana/ Response (HTTP Response) HTML files Request <link> and <script> Response
  • 76. Definition Developer Tools (DevTools) are tools that do a lot of things, such as inspecting currently-loaded HTML, CSS, and JavaScript. Developer Tools
  • 77. DevTools How to Open To access the DOM or CSS of one webpage: ● Right-click element on the page -> select Inspect ● Windows, Linux, Chrome OS : Ctrl+Shift+C/I ● Mac : Command+Option+C ● Internet Explorer/Edge : F12
  • 79. Features Some features DevTools (may be different in some browsers): • Elements • Console • Sources • Application • Network • Security • Lighthouse DevTools
  • 80. Features DevTools “Elements” is used to debug HTML and CSS code or temporary change the HTML and CSS code (just to see how it will reflect on website)
  • 81. Features DevTools “Console” is used to debug JavaScript code, view the logged message, run the JavaScript code, show error with the line number in source code.
  • 82. Features DevTools “Sources” shows where the files used to make the website are store, set breakpoints, and watch the value of variables.
  • 83. Features DevTools “Application” is used to manage the resources ( such as cookies, local storage, SQL databases, etc).
  • 84. Features DevTools “Network” shows the details of status, type, initiator, time, and waterfall of one webpage.
  • 85. Features DevTools “Security” displays security information on the currently active web, to ensure the HTTPS is implemented in the webpage, and show the SSL certificate.
  • 86. Features DevTools “Lighthouse” identifies and resolves the issues that affect the website’s page load performance, accessibility, and user experience.