SlideShare une entreprise Scribd logo
1  sur  19
Télécharger pour lire hors ligne
Get the Course: https://www.udemy.com/course/learn-html-website-basics/?referralCode=270FC30A23F2796C45E4
HTML
Beginners Guide to HTML
INSTRUCTOR:
LAURENCE SVEKIS
Course instructor : Laurence Svekis @ https://www.udemy.com/user/lars51/
- Over 300 courses in technology and
web applications.
- 20 years of JavaScript web
programming experience
- 500,000+ students across multiple
platforms
- Digital instructor since 2002
READY TO HELP YOU LEARN and
ANSWER ANY questions you may
have.
Get the Course: https://www.udemy.com/course/learn-html-website-basics/?referralCode=270FC30A23F2796C45E4
Browser
Chrome - used to render HTML pages.
https://www.google.com/chrome/
The browser is what interprets the code and shows it to
you. Used to hold HTML and styling with CSS and dynamic
content with JavaScript.
HTML (Hypertext Markup Language) is not a programming
language; it is a markup language used to tell your
browser how to structure the web pages you visit.
Get the Course: https://www.udemy.com/course/learn-html-website-basics/?referralCode=270FC30A23F2796C45E4
Editor
Text Editor - used to write code.
Brackets - http://brackets.io/
No download just a great place to try HTML,CSS and
JavaScript
https://codepen.io/
Others
https://jsfiddle.net/
http://jsbin.com
Get the Course: https://www.udemy.com/course/learn-html-website-basics/?referralCode=270FC30A23F2796C45E4
Resources
https://devdocs.io/dom/ - list of code syntax.
https://developer.mozilla.org/en-US/docs/Web - Examples
and syntax explanations.
MDN - References to HTML tags
https://developer.mozilla.org/en-US/docs/Web/HTML
Snapshot Website history - https://archive.org/web/
To view website source code on Chrome press Ctrl+U
Cmd+Opt+U
One of the first websites http://info.cern.ch/
HTML is backwards compatible
No styling which is introduced later
Purpose was to add some structure to plain text
Get the Course: https://www.udemy.com/course/learn-html-website-basics/?referralCode=270FC30A23F2796C45E4
What is an Element
Tag that wraps text and lets the browser know what to do
with it.
Get the Course: https://www.udemy.com/course/learn-html-website-basics/?referralCode=270FC30A23F2796C45E4
Chrome See the Code
View the HTML of a website
Right-click the page and look at the menu that appears.
From that menu, click View page source.
Opens the page with view-source: before the URL like
view-source:https://www.google.com/
Also Browser dev Tools click inspect. This will open the
developer console to the element that is selected. Try to
update some of the text on your favorite website. Don’t
worry only in the current instance and when you refresh
the page goes back.
Get the Course: https://www.udemy.com/course/learn-html-website-basics/?referralCode=270FC30A23F2796C45E4
HTML Basic Tags
<!DOCTYPE html> - lets browser know what doc type to
expect.
<html> </html> - wraps HTML document
<head> </head> - info not to be displayed.
<body> </body> - Visible portion of the document
<title> </title> - Name of the document in the title bar
Tags can be placed within other tags to create tree structure
Every web page should have these 4 tags, will work without them
but to be proper they should be included.
<!DOCTYPE html>
<html>
<head>
<title>Title</title>
</head>
<body> </body>
</html>
Get the Course: https://www.udemy.com/course/learn-html-website-basics/?referralCode=270FC30A23F2796C45E4
Formatting Text and more
Spacing of text
<p> </p> - Creates a paragraph
<br> - Line Break new line
<blockquote> </blockquote> - Indents as quote
<div> </div> - Block Content with CSS
<span> </span> - Inline content with CSS
Line Breaks <br> and <hr> are self closing tags
Previously <br /> now the slash is not needed
Format your text to make it easier to read and structure so that
when you apply styling it is easier to select the blocks of content.
<div>Block Content </div> <span>Inline Content</span>
<p>Paragraph</p>
<blockquote>BlockQuote</blockquote> Hello World
<br> <u>Underline</u> Hello World
<br> <strike>Strike Text</strike> Hello World
<br> <big>Big </big> Hello World
<br> <small>Small</small> Hello World
<br> <acronym>Acronym</acronym> Hello World
<br> <q>Quoted</q> Hello World
<br> <cite>Cite Text</cite> Hello World
<br> <code>Code</code> Hello World
Get the Course: https://www.udemy.com/course/learn-html-website-basics/?referralCode=270FC30A23F2796C45E4
Text Tags and formatted Text
<h1></h1> - creates headline tags. Larger and bolded
text. h1 largest - h6 smallest.
<strong> </strong> <b></b> - bolds text
<em> </em> <i></i> - italicized text
<tt> </tt> - typewriter style text
<code> </code> - source code
<cite> </cite> - Creates a citation
<address> </address> - Creates address section
<del></del> - Deleted text
<ins></ins> - Inserted text
<sub></sub> - Subscript text
<sup></sup> - Superscript text
*head tags are good for SEO. Search rankings.
<b> Bold text </b> Hello World
<br> <strong>Strong Text </strong> Hello World
<br> <i> - Italic text </i> Hello World
<br><em> - Emphasized text</em> Hello World
<br>
<mark> - Marked text </mark> Hello World
<br> <small> - Small text</small> Hello World
<br> <del> - Deleted text</del> Hello World
<br> <ins> - Inserted text</ins> Hello World
<br> <sub> - Subscript text</sub> Hello World
<br> <sup> - Superscript text</sup> Hello World
Get the Course: https://www.udemy.com/course/learn-html-website-basics/?referralCode=270FC30A23F2796C45E4
HTML Lists
<ul> </ul> - Creates an unordered list
<ol> </ol> - Ordered list
<li> </li> - list item
<dl> </dl> - Definition list
<dt></dt> - Definition term
<dd></dd> -Definition
Use lists to make content more readable
<dl> <dt>One</dt> <dt>One #2</dt>
<dd>Whatever you use to describe the item</dd>
<dt>Two</dt>
<dd>Whatever you use to describe the item</dd>
<dt>Three</dt>
<dd>Whatever you use to describe the item</dd>
</dl>
<ol type="i" start="5">
<li>List item #1</li>
<li>List item #2</li>
<li>List item #3</li>
</ol>
<ul style="list-style-type:lower-alpha ">
<li>List item #2</li>
<li>List item #3</li>
<li>List item #4</li>
</ul>
Get the Course: https://www.udemy.com/course/learn-html-website-basics/?referralCode=270FC30A23F2796C45E4
HTML Attributes
The HTML <a> element (or anchor element) creates a
hyperlink to other web pages, files, locations within the
same page, email addresses, or any other URL.
Attributes : Elements in HTML have attributes; these are
additional values that configure the elements or adjust
their behavior in various ways to meet the criteria the
users want.
https://developer.mozilla.org/en-US/docs/Web/HTML/Att
ributes
● target = where to open the linked document
● href = where the URL of the page the link goes to
● title = Text to be displayed in a tooltip when
hovering over the element.
Search engines use link text to index target files, so it is a good
idea to include keywords in your link text to effectively describe
what is being linked to
<html>
<head>
<title>HTML</title>
<style>p { height: 500px; border: 1px solid ddd; }</style>
</head>
<body> <body> <a href="#one" title="Section 1">One</a>|
<a href="#two" title="Section 2">Two</a>| <a
href="http://www.google.com" title="Google"
target="_blank">Three</a>
<h1>1</h1>
<p id="one">Just some content here, nothing to see.</p>
<h1>2</h1>
<p id="two">Just some content here, nothing to see.</p>
<h1>3</h1>
<p id="three">Just some content here, nothing to
see.</p>
</body>
</html>
Get the Course: https://www.udemy.com/course/learn-html-website-basics/?referralCode=270FC30A23F2796C45E4
HTML Hyperlinks
Make it clickable. Hyperlinks are really important — they
are what makes the Web a web.
https://developer.mozilla.org/en-US/docs/Learn/HTML/Int
roduction_to_HTML/Creating_hyperlinks
absolute URL vs relative URL:
relative URL will point to different places depending on
the actual location of the file you refer from — for
example if in index.html and you link to about.html needs
to be in the same folder. Location matters.
absolute URL: Points to a location defined by its absolute
location on the web, including protocol and domain name.
https://www.discoveryvip.com/index.html will always be
the same end location.
Search engines use link text to index target files, so it is a good
idea to include keywords in your link text to effectively describe
what is being linked to
<html>
<head>
<title>HTML</title>
</head>
<body> <a href="about.html" title="About page">About</a>|
<a
href="http://www.discoveryvip.com/Learn/JSON-Resources"
title="Google" target="_blank">Website</a> </body>
</html>
Get the Course: https://www.udemy.com/course/learn-html-website-basics/?referralCode=270FC30A23F2796C45E4
HTML Images
Placeholder images - https://placeholder.com/
<img src="https://via.placeholder.com/350x150">
The HTML <img> element embeds an image into the
document.
https://developer.mozilla.org/en-US/docs/Web/HTML/Ele
ment/img
● src attribute is required, and contains the path to
the image you want to embed.
● alt attribute holds a text description of the image,
which isn't mandatory but is incredibly useful for
accessibility
<html>
<head>
<title>HTML</title>
</head>
<body> <img src="https://via.placeholder.com/350x150"
alt="Just a placeholder image">
<a href="http://www.discoveryvip.com/" title="Google"
target="_blank"> <img
src="https://via.placeholder.com/350x150" alt="Image with
hyperlink"> </a>
</body>
</html>
Get the Course: https://www.udemy.com/course/learn-html-website-basics/?referralCode=270FC30A23F2796C45E4
HTML Semantic Elements
https://developer.mozilla.org/en-US/docs/Web/Guide/HT
ML/Using_HTML_sections_and_outlines
<article>
<aside>
<footer>
<header>
<nav>
<section>
Previously done with divs and adding attributes to the
elements.
These are just like divs with meaningful names, they don’t
do anything for the styling.
<header id="header">Header for website</header>
<div id="main">
<nav>Menu
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
</ul>
</nav>
<article>This is my main content of my
website</article>
<aside>You can put some ads here.</aside>
</div>
<footer id="footer">Footer</footer>
Get the Course: https://www.udemy.com/course/learn-html-website-basics/?referralCode=270FC30A23F2796C45E4
HTML Comments
<!-- A Comment → Comments can appear anywhere in a
document, as the HTML parser is supposed to ignore them
no matter where they appear so long as they are not
inside other HTML tag structures. Comments are
represented in HTML and XML as content between '<!--'
and '-->'
<body>
<!-- this is my website -->
<header id="header">Header for website</header>
<div id="main">
<nav>Menu
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
</ul>
</nav>
<article>This is my main content of my
website</article>
<aside>You can put some ads here.</aside>
</div>
<footer id="footer">Footer</footer>
</body>
</html>
Get the Course: https://www.udemy.com/course/learn-html-website-basics/?referralCode=270FC30A23F2796C45E4
Apply Styling
https://developer.mozilla.org/en-US/docs/Web/CSS/flex
The flex CSS property sets how a flex item will grow or
shrink to fit the space available in its flex container.
Select the element using the ID or by class or by tag name.
Apply styling
Tip : play a game learn more about flex
https://flexboxfroggy.com/
<html><head>
<title>Simple website</title>
<style>
header, footer { background: red; text-align: center; font-size:
2em;height: 15vh; }
#main {display: flex;min-height: 70vh; }
article { flex: 5; }
nav, aside { flex: 1; background: #ddd; }
</style>
</head>
<body>
<header id="header">Header for website</header>
<div id="main">
<nav>Menu
<ul><li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li> </ul></nav>
<article>This is my main content of my website</article>
<aside>You can put some ads here.</aside>
</div>
<footer id="footer">Footer</footer>
</body></html>
Get the Course: https://www.udemy.com/course/learn-html-website-basics/?referralCode=270FC30A23F2796C45E4
Make a simple website
1. Create file index.html
2. Create a sample structure
3. Select the elements
4. Apply styling
5. Add content
Congratulations on completing the course!
Thank you for your support
Check out more about JavaScript at MDN. https://developer.mozilla.org/en-US/docs/Web/JavaScript
Find out more about my courses at DiscoveryVIP
Get the Course https://www.udemy.com/course/learn-html-website-basics/?referralCode=270FC30A23F2796C45E4
Course instructor : Laurence Svekis -
providing online training to over
500,000 students across hundreds of
courses and many platforms.

Contenu connexe

Plus de Laurence Svekis ✔

Chrome DevTools Introduction 2020 Web Developers Guide
Chrome DevTools Introduction 2020 Web Developers GuideChrome DevTools Introduction 2020 Web Developers Guide
Chrome DevTools Introduction 2020 Web Developers GuideLaurence Svekis ✔
 
JavaScript guide 2020 Learn JavaScript
JavaScript guide 2020 Learn JavaScriptJavaScript guide 2020 Learn JavaScript
JavaScript guide 2020 Learn JavaScriptLaurence Svekis ✔
 
Web development resources brackets
Web development resources bracketsWeb development resources brackets
Web development resources bracketsLaurence Svekis ✔
 
Google Apps Script for Beginners- Amazing Things with Code
Google Apps Script for Beginners- Amazing Things with CodeGoogle Apps Script for Beginners- Amazing Things with Code
Google Apps Script for Beginners- Amazing Things with CodeLaurence Svekis ✔
 
Local SQLite Database with Node for beginners
Local SQLite Database with Node for beginnersLocal SQLite Database with Node for beginners
Local SQLite Database with Node for beginnersLaurence Svekis ✔
 
Introduction to Node js for beginners + game project
Introduction to Node js for beginners + game projectIntroduction to Node js for beginners + game project
Introduction to Node js for beginners + game projectLaurence Svekis ✔
 
JavaScript DOM - Dynamic interactive Code
JavaScript DOM - Dynamic interactive CodeJavaScript DOM - Dynamic interactive Code
JavaScript DOM - Dynamic interactive CodeLaurence Svekis ✔
 
JavaScript Advanced - Useful methods to power up your code
JavaScript Advanced - Useful methods to power up your codeJavaScript Advanced - Useful methods to power up your code
JavaScript Advanced - Useful methods to power up your codeLaurence Svekis ✔
 
Monster JavaScript Course - 50+ projects and applications
Monster JavaScript Course - 50+ projects and applicationsMonster JavaScript Course - 50+ projects and applications
Monster JavaScript Course - 50+ projects and applicationsLaurence Svekis ✔
 
JavaScript Objects and OOP Programming with JavaScript
JavaScript Objects and OOP Programming with JavaScriptJavaScript Objects and OOP Programming with JavaScript
JavaScript Objects and OOP Programming with JavaScriptLaurence Svekis ✔
 
JavaScript Core fundamentals - Learn JavaScript Here
JavaScript Core fundamentals - Learn JavaScript HereJavaScript Core fundamentals - Learn JavaScript Here
JavaScript Core fundamentals - Learn JavaScript HereLaurence Svekis ✔
 
Web Development Introduction to jQuery
Web Development Introduction to jQueryWeb Development Introduction to jQuery
Web Development Introduction to jQueryLaurence Svekis ✔
 
WordPress for Entrepreneurs Management of your own website
WordPress for Entrepreneurs Management of your own websiteWordPress for Entrepreneurs Management of your own website
WordPress for Entrepreneurs Management of your own websiteLaurence Svekis ✔
 
Getting to Know Bootstrap for Rapid Web Development
Getting to Know Bootstrap for Rapid Web DevelopmentGetting to Know Bootstrap for Rapid Web Development
Getting to Know Bootstrap for Rapid Web DevelopmentLaurence Svekis ✔
 

Plus de Laurence Svekis ✔ (17)

Chrome DevTools Introduction 2020 Web Developers Guide
Chrome DevTools Introduction 2020 Web Developers GuideChrome DevTools Introduction 2020 Web Developers Guide
Chrome DevTools Introduction 2020 Web Developers Guide
 
Brackets code editor guide
Brackets code editor guideBrackets code editor guide
Brackets code editor guide
 
Web hosting get start online
Web hosting get start onlineWeb hosting get start online
Web hosting get start online
 
JavaScript guide 2020 Learn JavaScript
JavaScript guide 2020 Learn JavaScriptJavaScript guide 2020 Learn JavaScript
JavaScript guide 2020 Learn JavaScript
 
Web hosting Free Hosting
Web hosting Free HostingWeb hosting Free Hosting
Web hosting Free Hosting
 
Web development resources brackets
Web development resources bracketsWeb development resources brackets
Web development resources brackets
 
Google Apps Script for Beginners- Amazing Things with Code
Google Apps Script for Beginners- Amazing Things with CodeGoogle Apps Script for Beginners- Amazing Things with Code
Google Apps Script for Beginners- Amazing Things with Code
 
Local SQLite Database with Node for beginners
Local SQLite Database with Node for beginnersLocal SQLite Database with Node for beginners
Local SQLite Database with Node for beginners
 
Introduction to Node js for beginners + game project
Introduction to Node js for beginners + game projectIntroduction to Node js for beginners + game project
Introduction to Node js for beginners + game project
 
JavaScript DOM - Dynamic interactive Code
JavaScript DOM - Dynamic interactive CodeJavaScript DOM - Dynamic interactive Code
JavaScript DOM - Dynamic interactive Code
 
JavaScript Advanced - Useful methods to power up your code
JavaScript Advanced - Useful methods to power up your codeJavaScript Advanced - Useful methods to power up your code
JavaScript Advanced - Useful methods to power up your code
 
Monster JavaScript Course - 50+ projects and applications
Monster JavaScript Course - 50+ projects and applicationsMonster JavaScript Course - 50+ projects and applications
Monster JavaScript Course - 50+ projects and applications
 
JavaScript Objects and OOP Programming with JavaScript
JavaScript Objects and OOP Programming with JavaScriptJavaScript Objects and OOP Programming with JavaScript
JavaScript Objects and OOP Programming with JavaScript
 
JavaScript Core fundamentals - Learn JavaScript Here
JavaScript Core fundamentals - Learn JavaScript HereJavaScript Core fundamentals - Learn JavaScript Here
JavaScript Core fundamentals - Learn JavaScript Here
 
Web Development Introduction to jQuery
Web Development Introduction to jQueryWeb Development Introduction to jQuery
Web Development Introduction to jQuery
 
WordPress for Entrepreneurs Management of your own website
WordPress for Entrepreneurs Management of your own websiteWordPress for Entrepreneurs Management of your own website
WordPress for Entrepreneurs Management of your own website
 
Getting to Know Bootstrap for Rapid Web Development
Getting to Know Bootstrap for Rapid Web DevelopmentGetting to Know Bootstrap for Rapid Web Development
Getting to Know Bootstrap for Rapid Web Development
 

Dernier

ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfVanessa Camilleri
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
Mental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young mindsMental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young mindsPooky Knightsmith
 
Mythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWMythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWQuiz Club NITW
 
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptxMan or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptxDhatriParmar
 
Expanded definition: technical and operational
Expanded definition: technical and operationalExpanded definition: technical and operational
Expanded definition: technical and operationalssuser3e220a
 
Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationdeepaannamalai16
 
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...Nguyen Thanh Tu Collection
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptxmary850239
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4JOYLYNSAMANIEGO
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSMae Pangan
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxlancelewisportillo
 
How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17Celine George
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxVanesaIglesias10
 
How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseHow to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseCeline George
 
Multi Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP ModuleMulti Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP ModuleCeline George
 
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxBIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxSayali Powar
 

Dernier (20)

ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
 
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptxINCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
Faculty Profile prashantha K EEE dept Sri Sairam college of Engineering
Faculty Profile prashantha K EEE dept Sri Sairam college of EngineeringFaculty Profile prashantha K EEE dept Sri Sairam college of Engineering
Faculty Profile prashantha K EEE dept Sri Sairam college of Engineering
 
Mental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young mindsMental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young minds
 
Mythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWMythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITW
 
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptxMan or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
 
Expanded definition: technical and operational
Expanded definition: technical and operationalExpanded definition: technical and operational
Expanded definition: technical and operational
 
Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentation
 
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
 
Paradigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTAParadigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTA
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHS
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
 
How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptx
 
How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseHow to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 Database
 
Multi Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP ModuleMulti Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP Module
 
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxBIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
 

Learn HTML Introduction to creating your first website

  • 1. Get the Course: https://www.udemy.com/course/learn-html-website-basics/?referralCode=270FC30A23F2796C45E4 HTML Beginners Guide to HTML
  • 2. INSTRUCTOR: LAURENCE SVEKIS Course instructor : Laurence Svekis @ https://www.udemy.com/user/lars51/ - Over 300 courses in technology and web applications. - 20 years of JavaScript web programming experience - 500,000+ students across multiple platforms - Digital instructor since 2002 READY TO HELP YOU LEARN and ANSWER ANY questions you may have.
  • 3. Get the Course: https://www.udemy.com/course/learn-html-website-basics/?referralCode=270FC30A23F2796C45E4 Browser Chrome - used to render HTML pages. https://www.google.com/chrome/ The browser is what interprets the code and shows it to you. Used to hold HTML and styling with CSS and dynamic content with JavaScript. HTML (Hypertext Markup Language) is not a programming language; it is a markup language used to tell your browser how to structure the web pages you visit.
  • 4. Get the Course: https://www.udemy.com/course/learn-html-website-basics/?referralCode=270FC30A23F2796C45E4 Editor Text Editor - used to write code. Brackets - http://brackets.io/ No download just a great place to try HTML,CSS and JavaScript https://codepen.io/ Others https://jsfiddle.net/ http://jsbin.com
  • 5. Get the Course: https://www.udemy.com/course/learn-html-website-basics/?referralCode=270FC30A23F2796C45E4 Resources https://devdocs.io/dom/ - list of code syntax. https://developer.mozilla.org/en-US/docs/Web - Examples and syntax explanations. MDN - References to HTML tags https://developer.mozilla.org/en-US/docs/Web/HTML Snapshot Website history - https://archive.org/web/ To view website source code on Chrome press Ctrl+U Cmd+Opt+U One of the first websites http://info.cern.ch/ HTML is backwards compatible No styling which is introduced later Purpose was to add some structure to plain text
  • 6. Get the Course: https://www.udemy.com/course/learn-html-website-basics/?referralCode=270FC30A23F2796C45E4 What is an Element Tag that wraps text and lets the browser know what to do with it.
  • 7. Get the Course: https://www.udemy.com/course/learn-html-website-basics/?referralCode=270FC30A23F2796C45E4 Chrome See the Code View the HTML of a website Right-click the page and look at the menu that appears. From that menu, click View page source. Opens the page with view-source: before the URL like view-source:https://www.google.com/ Also Browser dev Tools click inspect. This will open the developer console to the element that is selected. Try to update some of the text on your favorite website. Don’t worry only in the current instance and when you refresh the page goes back.
  • 8. Get the Course: https://www.udemy.com/course/learn-html-website-basics/?referralCode=270FC30A23F2796C45E4 HTML Basic Tags <!DOCTYPE html> - lets browser know what doc type to expect. <html> </html> - wraps HTML document <head> </head> - info not to be displayed. <body> </body> - Visible portion of the document <title> </title> - Name of the document in the title bar Tags can be placed within other tags to create tree structure Every web page should have these 4 tags, will work without them but to be proper they should be included. <!DOCTYPE html> <html> <head> <title>Title</title> </head> <body> </body> </html>
  • 9. Get the Course: https://www.udemy.com/course/learn-html-website-basics/?referralCode=270FC30A23F2796C45E4 Formatting Text and more Spacing of text <p> </p> - Creates a paragraph <br> - Line Break new line <blockquote> </blockquote> - Indents as quote <div> </div> - Block Content with CSS <span> </span> - Inline content with CSS Line Breaks <br> and <hr> are self closing tags Previously <br /> now the slash is not needed Format your text to make it easier to read and structure so that when you apply styling it is easier to select the blocks of content. <div>Block Content </div> <span>Inline Content</span> <p>Paragraph</p> <blockquote>BlockQuote</blockquote> Hello World <br> <u>Underline</u> Hello World <br> <strike>Strike Text</strike> Hello World <br> <big>Big </big> Hello World <br> <small>Small</small> Hello World <br> <acronym>Acronym</acronym> Hello World <br> <q>Quoted</q> Hello World <br> <cite>Cite Text</cite> Hello World <br> <code>Code</code> Hello World
  • 10. Get the Course: https://www.udemy.com/course/learn-html-website-basics/?referralCode=270FC30A23F2796C45E4 Text Tags and formatted Text <h1></h1> - creates headline tags. Larger and bolded text. h1 largest - h6 smallest. <strong> </strong> <b></b> - bolds text <em> </em> <i></i> - italicized text <tt> </tt> - typewriter style text <code> </code> - source code <cite> </cite> - Creates a citation <address> </address> - Creates address section <del></del> - Deleted text <ins></ins> - Inserted text <sub></sub> - Subscript text <sup></sup> - Superscript text *head tags are good for SEO. Search rankings. <b> Bold text </b> Hello World <br> <strong>Strong Text </strong> Hello World <br> <i> - Italic text </i> Hello World <br><em> - Emphasized text</em> Hello World <br> <mark> - Marked text </mark> Hello World <br> <small> - Small text</small> Hello World <br> <del> - Deleted text</del> Hello World <br> <ins> - Inserted text</ins> Hello World <br> <sub> - Subscript text</sub> Hello World <br> <sup> - Superscript text</sup> Hello World
  • 11. Get the Course: https://www.udemy.com/course/learn-html-website-basics/?referralCode=270FC30A23F2796C45E4 HTML Lists <ul> </ul> - Creates an unordered list <ol> </ol> - Ordered list <li> </li> - list item <dl> </dl> - Definition list <dt></dt> - Definition term <dd></dd> -Definition Use lists to make content more readable <dl> <dt>One</dt> <dt>One #2</dt> <dd>Whatever you use to describe the item</dd> <dt>Two</dt> <dd>Whatever you use to describe the item</dd> <dt>Three</dt> <dd>Whatever you use to describe the item</dd> </dl> <ol type="i" start="5"> <li>List item #1</li> <li>List item #2</li> <li>List item #3</li> </ol> <ul style="list-style-type:lower-alpha "> <li>List item #2</li> <li>List item #3</li> <li>List item #4</li> </ul>
  • 12. Get the Course: https://www.udemy.com/course/learn-html-website-basics/?referralCode=270FC30A23F2796C45E4 HTML Attributes The HTML <a> element (or anchor element) creates a hyperlink to other web pages, files, locations within the same page, email addresses, or any other URL. Attributes : Elements in HTML have attributes; these are additional values that configure the elements or adjust their behavior in various ways to meet the criteria the users want. https://developer.mozilla.org/en-US/docs/Web/HTML/Att ributes ● target = where to open the linked document ● href = where the URL of the page the link goes to ● title = Text to be displayed in a tooltip when hovering over the element. Search engines use link text to index target files, so it is a good idea to include keywords in your link text to effectively describe what is being linked to <html> <head> <title>HTML</title> <style>p { height: 500px; border: 1px solid ddd; }</style> </head> <body> <body> <a href="#one" title="Section 1">One</a>| <a href="#two" title="Section 2">Two</a>| <a href="http://www.google.com" title="Google" target="_blank">Three</a> <h1>1</h1> <p id="one">Just some content here, nothing to see.</p> <h1>2</h1> <p id="two">Just some content here, nothing to see.</p> <h1>3</h1> <p id="three">Just some content here, nothing to see.</p> </body> </html>
  • 13. Get the Course: https://www.udemy.com/course/learn-html-website-basics/?referralCode=270FC30A23F2796C45E4 HTML Hyperlinks Make it clickable. Hyperlinks are really important — they are what makes the Web a web. https://developer.mozilla.org/en-US/docs/Learn/HTML/Int roduction_to_HTML/Creating_hyperlinks absolute URL vs relative URL: relative URL will point to different places depending on the actual location of the file you refer from — for example if in index.html and you link to about.html needs to be in the same folder. Location matters. absolute URL: Points to a location defined by its absolute location on the web, including protocol and domain name. https://www.discoveryvip.com/index.html will always be the same end location. Search engines use link text to index target files, so it is a good idea to include keywords in your link text to effectively describe what is being linked to <html> <head> <title>HTML</title> </head> <body> <a href="about.html" title="About page">About</a>| <a href="http://www.discoveryvip.com/Learn/JSON-Resources" title="Google" target="_blank">Website</a> </body> </html>
  • 14. Get the Course: https://www.udemy.com/course/learn-html-website-basics/?referralCode=270FC30A23F2796C45E4 HTML Images Placeholder images - https://placeholder.com/ <img src="https://via.placeholder.com/350x150"> The HTML <img> element embeds an image into the document. https://developer.mozilla.org/en-US/docs/Web/HTML/Ele ment/img ● src attribute is required, and contains the path to the image you want to embed. ● alt attribute holds a text description of the image, which isn't mandatory but is incredibly useful for accessibility <html> <head> <title>HTML</title> </head> <body> <img src="https://via.placeholder.com/350x150" alt="Just a placeholder image"> <a href="http://www.discoveryvip.com/" title="Google" target="_blank"> <img src="https://via.placeholder.com/350x150" alt="Image with hyperlink"> </a> </body> </html>
  • 15. Get the Course: https://www.udemy.com/course/learn-html-website-basics/?referralCode=270FC30A23F2796C45E4 HTML Semantic Elements https://developer.mozilla.org/en-US/docs/Web/Guide/HT ML/Using_HTML_sections_and_outlines <article> <aside> <footer> <header> <nav> <section> Previously done with divs and adding attributes to the elements. These are just like divs with meaningful names, they don’t do anything for the styling. <header id="header">Header for website</header> <div id="main"> <nav>Menu <ul> <li><a href="index.html">Home</a></li> <li><a href="about.html">About</a></li> </ul> </nav> <article>This is my main content of my website</article> <aside>You can put some ads here.</aside> </div> <footer id="footer">Footer</footer>
  • 16. Get the Course: https://www.udemy.com/course/learn-html-website-basics/?referralCode=270FC30A23F2796C45E4 HTML Comments <!-- A Comment → Comments can appear anywhere in a document, as the HTML parser is supposed to ignore them no matter where they appear so long as they are not inside other HTML tag structures. Comments are represented in HTML and XML as content between '<!--' and '-->' <body> <!-- this is my website --> <header id="header">Header for website</header> <div id="main"> <nav>Menu <ul> <li><a href="index.html">Home</a></li> <li><a href="about.html">About</a></li> </ul> </nav> <article>This is my main content of my website</article> <aside>You can put some ads here.</aside> </div> <footer id="footer">Footer</footer> </body> </html>
  • 17. Get the Course: https://www.udemy.com/course/learn-html-website-basics/?referralCode=270FC30A23F2796C45E4 Apply Styling https://developer.mozilla.org/en-US/docs/Web/CSS/flex The flex CSS property sets how a flex item will grow or shrink to fit the space available in its flex container. Select the element using the ID or by class or by tag name. Apply styling Tip : play a game learn more about flex https://flexboxfroggy.com/ <html><head> <title>Simple website</title> <style> header, footer { background: red; text-align: center; font-size: 2em;height: 15vh; } #main {display: flex;min-height: 70vh; } article { flex: 5; } nav, aside { flex: 1; background: #ddd; } </style> </head> <body> <header id="header">Header for website</header> <div id="main"> <nav>Menu <ul><li><a href="index.html">Home</a></li> <li><a href="about.html">About</a></li> </ul></nav> <article>This is my main content of my website</article> <aside>You can put some ads here.</aside> </div> <footer id="footer">Footer</footer> </body></html>
  • 18. Get the Course: https://www.udemy.com/course/learn-html-website-basics/?referralCode=270FC30A23F2796C45E4 Make a simple website 1. Create file index.html 2. Create a sample structure 3. Select the elements 4. Apply styling 5. Add content
  • 19. Congratulations on completing the course! Thank you for your support Check out more about JavaScript at MDN. https://developer.mozilla.org/en-US/docs/Web/JavaScript Find out more about my courses at DiscoveryVIP Get the Course https://www.udemy.com/course/learn-html-website-basics/?referralCode=270FC30A23F2796C45E4 Course instructor : Laurence Svekis - providing online training to over 500,000 students across hundreds of courses and many platforms.