SlideShare a Scribd company logo
HTML5 Basics
Today We Are Going To Learn
HTML5 in Very Easy And Fast Way
Let’s Go Through It.
Here I am Going To Give Your All Tag
List And Their Used Which We Really
used in Real Life web Development.
HTML5 Topics 1
● Elements - E.g <a> Anchor Tag
● Attributes – E.g <a href=”value”> Attribute href
● Headings – E.g <h1> Heading Of Web Pages
● Paragraphs – E.g <p> Like Web Page Contents
● Styles – E.g <a style=”color:red”> Decorate Our Web Pages
● Formatting – E.g bold, <b> Text Formating
● Quotations – E.g Blockquotes <q> For Quotation Like author,address
● Comments – E.g Comments In Web Pages.
● Colors – E.g Colors in Web Pages for background, Text
● CSS – E.g Adding Our styles in Web Pages like coloring,Resizing
● Links – E.g Moving from one web page to other
● Images – E.g Display Logo, Banner In Our Web Pages
Elements
● Elements are used in our web pages to create a web pages
●
Elements Always had A opening tag and a closing tag and some times it had empty tag without closing
tag
E.g - <tagname>This is a Tag</tagname>
<tagname> = opening Tag
</tagname> = Closing Tag
<br/> = Empty Tag
Nested Tags
Nested Tag Means Elements of one tag inside another tag like this :
E.g -
<body> <h1>This is heading which is Nested Inside Body</h1></body>
Lower Case Letter
Always Try To use lower case Letter Tag For Best Practice.
Elements
Simple Web Page
<html>
<head>
<title>Title Of Our Web Page</title>
</head>
<body>
<h1>My First Web Page Heading</h1>
<p>Simple Tutorial For Start Learning
HTML By Super Coders </p>
</body>
</html>
Browser View
●
Elements
Some Popular Tags
● <html> - begining of webpage
● <head> - head of html page
● <body> - body of html page
● <p> - paragraph tag
● <h1> to <h6> - heading Tag
● <img> - image tag
● <ul> - unordered list tag
● <li> - list elements tag
● <ol> - ordered list tag
● <div> - diversion in web page
● <footer> - footer of web page
● <header> - header of web pages
● <aside> - sidebar for webpages
● <a> - anchor tag for linking web pages
● <form> - for forms
● <input> - for data input
● <script> - for js/vb
● <style> - for css styling
● <section> - for section in web pages
● <table> - for table
● <tr> - for table row
● <td> - for table cell
● <th> - for table heading
● <video> for video in web page
● <iframe> for showing content of
another web page in current page
Attributes
• All HTML tag had many attributes which we used to customize that tag
property like styling,linking etc.
E.g - <a href=”google.com”>Google</a>
- <p style=”color:red”>Red text</p>
(Here style is a css value attribute which we discuss in css part for just now it is just a tag)
•
•
•
• Attributes Always come in start tag of Elements.
E.g - <h1 id=”title”>Heading tag</h1>
- <h1 >= Start Tag
• We Can Also use multiple Attribute for any HTML tag like : -
E.g - <a href=”google.com” title=”google”>Google</a>
• Attributes Always Comes with name=”value” Pair
Attributes
Some Popular HTML Attributes
● alt – we use alt tag generally in img tag so searching engine or any screen read our image with alt
attribute. Alt attribute define the image.
E.g - <img src=”hello-html.png” alt=”hello html” />
● title – we use this attribute for showing hover small text which define the title of element.
E.g - <img src=”hello-html.png” alt=”hello html” title=”hello html” />
● style – we use style Attr for decorating our web page font,color,design,responsiveness.
E.g- <p style=”color:red”> Red Color Text </p>
● class - we use class attr for relating html elements generally to css or js to access that elements.
E.g - <p class=”para”> Simple Para With Class We change it later using css or js </p>
● id – Id defines the unique html element in web page simlary as for class we access id for css and js but
in class we select all same class element but not all same id element js select only first unique id.
E.g - <p id=”para”> Simple Para With Class We change it later using css or js </p>
● src - Src is used for defining the source path of img tag.
E.g - <p src=”simple.png”/>
Heading
● Heading are Our Web Pages Heading like Title Of
Our Web Page sub title of Web Pages
● Since we know that we can use p tag for text and
make it big as like but why we used h1 – h6 tag?
- Because searching engine read our web page
and then it knows its heading of web page for seo
friendly website we always have to follow these
simple rules always.
Heading
Heading Tags
<html>
<body>
<h1>Heading 1</h1>
<h2>Heading 1</h2>
<h3>Heading 1</h3>
<h4>Heading 1</h4>
<h5>Heading 1</h5>
<h6>Heading 1</h6>
</body>
</html>
Browser View
Paragraphs
Paragraphs are as we all known as simple
contents in your web pages like description, strory
or anything in our web pages.
Tag . <p>Hi I am a pragraph</p>
Paragraphs
Paragraph Demo
<html>
<body>
<p>
Lorem Ipsum is simply dummy text of the
printing and typesetting industry. Lorem Ipsum
has been the industry's standard dummy text
ever since the 1500s, when an unknown printer
took a galley of type and scrambled it to make
a type specimen book. It has survived not only
five centuries, but also the leap into electronic
typesetting, remaining essentially unchanged
</p>
</body>
</html>
Browser View
Styles
Style are used by using css propert values inline in html
tags.
E.g <tagname style=”property:value”></tagname>
Like :-
<p style=”color:red”>Red Text</p>
Here, color = property
red = value
(We will learn more about style in css section)
Styles
Sample Code
<html>
<body>
<p style=”font-size:15px;”>Hello
para</p>
<h1 style=”color:red”>Hello
Heading</h1>
<div style=”background-
color:red;color:black”>Hello i Am div with
Background Color</div>
</body>
</html>
Browser View
Styles
Some Popular Styling Properties : -
background-color:red;
color:black;
font-size:20px;
width:100px;
width:100%;
text-align:center,left,right,justify
Background:url(‘img.png’);
Formatting
● Formatting Means format the text appearance
like bold,italic,emphasis,subscript,superscript,del,mark
Some Tags for Formattings
<b> - for text bold
<small> - for small text
<sup> - superscript text
<del> - deleted text
<i> - italic text
<strong> - important text
<mark> - mark highlighted text
Formatting
Sample Code
<html>
<body>
<b>I am bold text</b>
<i>i am italic text</b>
<em>i am emphasis text</em>
<mark>i am marked text</mark>
<strong>i am important text</strong>
<p>Hello am para <sup>hello am superscript
insdie para</sup></p>
<p>hello am para <sub> hello am subscrript
inside para</sub></p>
</body>
</html>
Browser View
Quotation
Quotation is simply we used for address, authors,
blockquoted text.
Some Tags :-
<address> - for Address
<abbr> - for abbreviation
<blockquote> - for blockquotes text
<q> - for quoted text
Quotation
Sample Code
<html>
<body>
<address>This is address, simple
address</address>
<p>hello am a paragraph <q>and am a
quoted text inside paragraph</q></p>
<p>hello am paragraph
<blockquote>Hello am block quoted
text </blockquote></p>
</body>
</html>
Browser View
Comments
Comments are very important in programming
languages because what we write in your code
only we understand it but for understand other by
other developers its very tough task.
So we write comments after every block of code
so that any one can read our code and easily
modify or read it. Comments not execute in our
program code its just text which only view in
source codes.
Comments
How To Write Comments?
Code : -
<!--Hello i am comment-->
Comments
Sample Code
<html>
<body>
<!-- Hello i am a comment -->
<p>This is a simple paragraph
where only paragraph will display
in browser and comments in our
source codes.</p>
<!-- Please add more text -->
</body>
</html>
Browser View
Source View
Colors
Colors codes are written just like simple color name, rgb
values or Hex values
We can used colors in background,Text,border .
E.g of Color Codes : -
● Name – orange,green,red etc
● Hex values- #000000,#FFF,#FFFFFF
● Rgb values- rgb(0-255,0-255,0-255)
● Rgba – rgba(0-255,0-255,0-255,0-1)
(Rgba is a transpency color which show transparent colors)
Colors
● Rgb values - rgb values start from 0,0,0 to 255,255,255 where 0,0,0 is black and
255,255,255 and all colors lies between in this numbers.
Like : - rgb(150, 15, 15) is brown
● Hex values – hex values start from #000000 to #FFFFFF where we know that F is
15 last digit in Hex Format.
#000000 is black
#FFFFFF is white
● Rgba values – RGBA is same as rgb but it gives us transparent effect in colors we
can set transparency deep or light of by its last values which start from 0-1 .
E.g - rgba(0,0,0,0.5) is transparent black
Colors
Sample Codes
<html>
<body>
<div style="background:red">
<p style="color:#FFFFFF">This is a simple
paragraph inside Background color div.</p>
</div>
<div style="background:#37d570;padding: 15px;">
<p style="color:#FFFFFF;background: rgba(195,
45, 45, 0.66);">This is a simple paragraph inside
background div and paragraph had a transparent
background</p>
</div>
</body>
</html>
Browser view
Colors
Rgba Examle
<html>
<head>
<title>RGBA Example with image</title>
</head>
<body>
<div style="background: url('social.png');padding:
10px;background-size: cover;background-position:
0px 125px;">
<p style="color: #FFFFFF;background:
rgba(0,0,0,0.5);">I am a paragraph with transparent
Background</p>
</div>
</body>
</html>
Browser View
CSS
CSS Stand For Cascading stylesheet which is
used to design our webpages.
Css link with Our Web pages in 3 types :-
1.inline
2.internal css
3.external css
CSS
Inline CSS – we already used inline css in previous demo
like adding color in text and background.
E.g -
<div style="background: url('social.png');padding: 10px;background-size:
cover;background-position: 0px 125px;"></div>
<p style="color: #FFFFFF;background: rgba(0,0,0,0.5);"> </p>
This all are inline css because we write our css in html elements in its
style attributes.
<tagname style=”property:value”> = using inline css
CSS
Internal CSS – Internal css means using our css codes in head of your body
enclosing inside style tag where we define our elements css property
Code :
<html>
<head><style>
p {
color:red;
}
div {
background:green;
padding:10px;
}
</style></head>
<body>
<div>
<p>Inline Css Example</p>
</div>
</body>
</html>
Browser View
CSS
External css – In External css we create a another
file with .css external file then link our external css
file to our html pages it is best for use because we
dont need to write css over and over again jst
create a one single css file then link our html
pages.
In All HTML templates external css is used for
creating HTML themes which is easy to write and
used and code is REUSABLE.
CSS
Sample code – external.html
<html>
<head>
<!-- Important for linking css with HTML pages -->
<link rel="stylesheet" type="text/css"
href="style.css">
</head>
<body>
<div>
<p>External Css Example</p>
</div>
</body>
</html>
Sample code – style.css
p {
color:white;
}
div {
background:orange;
padding:10px;
}
CSS
Browser View
(we will learn more about css in css tutorial )
Links
Links in HTML used to Move from one Page to Other, Move
from page bottom to Top or Top to Bottom, create image
link,text link to Visit Other pages.
Simple text link :-
<a href=”secondpage.html”>Visit Second Page</a>
Simple image link : -
<a href=”visit.html”><img src=”go.png”></a>
Links
Sample Code
<html>
<head>
</head>
<body>
<header id=”top”>I am the Header of page </header>
<br>
<a href=”second.html”>Second Page using Text Link</a>
<br>
<a href=”second.html”><img style=”width:100%” src=”social.png” alt=”second page using Image Link”></a>
<br>
<a href=”#bottom”>Go To Bottom of Page</a>
<br>
<div style=”height:5000px;background:green;”>
<p>Large Text Contents</p>
</div>
<br>
<a href=”#top”>Visit Top Of the Page</a>
<br>
<footer id=”bottom”>I am the Bottom Of Page</footer>
</body
</html>
(Here we use # to visit specifc id of elements # denotes for id and (.) dot denotes for class in all html,css,js )
Links
Browser View
Links
Second.html
<html>
<head>
<title>Second Page</title>
</head>
<body>
<h1>Welecome to second page</h1>
</body>
</html>
Links
Open a Page in New Tab
(using target=”_blank” attribute
in a tag)
sample :
<html>
<body>
<a href=”second.html”
target=”_blank”>Open a new tab
with second page</a>
</body>
</html>
View
Images
We use Image in HTML for displaying simple image ,logos,
banners, icons, background images,border images etc.
We can simple show images in HTML using
<img src=”path_of_image”/>
Or We Can Also use Background images
<div style=”background:url(‘social.png’);padding:10px;”>
I am a div with a background image
</div>
Images
Sample Code
<html>
<head>
<title>Images</title>
</head>
<body>
<p>This is simple image</p>
<img src="social.png" alt="social Image" title="social
image" style="width: 100%">
<p>This is image with background images</p>
<div style="width: 100%;height: 300px;background:
url('social.png');">I am a text inside a div</div>
</body>
</html>
Browser View
Some Extra Tips
● Always Put Your Css in inside <head> Tag.
● Always Put Your Script In Footer. So that page full loaded then js
do its works.
● Always use alt attribute for img tag because search engine read
the image via alt attribute.
● Standard HTML5 Web page contains head,body,section,header,
footer and main for your contents.
● Try to use less inline css and call css by externally.
● And Important Don’t forget to closed your tags
Ad

Recommended

html-css
html-css
Dhirendra Chauhan
 
CSS Basics
CSS Basics
Sanjeev Kumar
 
An Overview of HTML, CSS & Java Script
An Overview of HTML, CSS & Java Script
Fahim Abdullah
 
HTML CSS JS in Nut shell
HTML CSS JS in Nut shell
Ashwin Shiv
 
Web Development using HTML & CSS
Web Development using HTML & CSS
Shashank Skills Academy
 
(Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS
Dave Kelly
 
Introduction of Html/css/js
Introduction of Html/css/js
Knoldus Inc.
 
Basic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJS
Basic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJS
Deepak Upadhyay
 
Intro to HTML and CSS basics
Intro to HTML and CSS basics
Eliran Eliassy
 
Html, CSS & Web Designing
Html, CSS & Web Designing
Leslie Steele
 
cascading style sheet ppt
cascading style sheet ppt
abhilashagupta
 
Web Design Course: CSS lecture 1
Web Design Course: CSS lecture 1
Gheyath M. Othman
 
CSS ppt
CSS ppt
Sanmuga Nathan
 
HTML/CSS/java Script/Jquery
HTML/CSS/java Script/Jquery
FAKHRUN NISHA
 
PHP HTML CSS Notes
PHP HTML CSS Notes
Tushar Rajput
 
Introduction to html course digital markerters
Introduction to html course digital markerters
SEO SKills
 
HTML CSS Basics
HTML CSS Basics
Mai Moustafa
 
How Cascading Style Sheets (CSS) Works
How Cascading Style Sheets (CSS) Works
Amit Tyagi
 
Html training slide
Html training slide
villupuramtraining
 
HTML, CSS And JAVASCRIPT!
HTML, CSS And JAVASCRIPT!
Syahmi RH
 
Html,javascript & css
Html,javascript & css
Predhin Sapru
 
Web Design Course: CSS lecture 2
Web Design Course: CSS lecture 2
Gheyath M. Othman
 
Css Basics
Css Basics
Jay Patel
 
Cascading Style Sheets - Part 01
Cascading Style Sheets - Part 01
Hatem Mahmoud
 
CSS notes
CSS notes
Rajendra Prasad
 
HTML & CSS Masterclass
HTML & CSS Masterclass
Bernardo Raposo
 
3 Layers of the Web - Part 1
3 Layers of the Web - Part 1
Jeremy White
 
Html
Html
EPAM Systems
 
Chapter 2 - Introduction to HTML (Basic Structures and Syntax).pptx
Chapter 2 - Introduction to HTML (Basic Structures and Syntax).pptx
marjunegabon07
 
Introduction to html
Introduction to html
Himanshu Pathak
 

More Related Content

What's hot (20)

Intro to HTML and CSS basics
Intro to HTML and CSS basics
Eliran Eliassy
 
Html, CSS & Web Designing
Html, CSS & Web Designing
Leslie Steele
 
cascading style sheet ppt
cascading style sheet ppt
abhilashagupta
 
Web Design Course: CSS lecture 1
Web Design Course: CSS lecture 1
Gheyath M. Othman
 
CSS ppt
CSS ppt
Sanmuga Nathan
 
HTML/CSS/java Script/Jquery
HTML/CSS/java Script/Jquery
FAKHRUN NISHA
 
PHP HTML CSS Notes
PHP HTML CSS Notes
Tushar Rajput
 
Introduction to html course digital markerters
Introduction to html course digital markerters
SEO SKills
 
HTML CSS Basics
HTML CSS Basics
Mai Moustafa
 
How Cascading Style Sheets (CSS) Works
How Cascading Style Sheets (CSS) Works
Amit Tyagi
 
Html training slide
Html training slide
villupuramtraining
 
HTML, CSS And JAVASCRIPT!
HTML, CSS And JAVASCRIPT!
Syahmi RH
 
Html,javascript & css
Html,javascript & css
Predhin Sapru
 
Web Design Course: CSS lecture 2
Web Design Course: CSS lecture 2
Gheyath M. Othman
 
Css Basics
Css Basics
Jay Patel
 
Cascading Style Sheets - Part 01
Cascading Style Sheets - Part 01
Hatem Mahmoud
 
CSS notes
CSS notes
Rajendra Prasad
 
HTML & CSS Masterclass
HTML & CSS Masterclass
Bernardo Raposo
 
3 Layers of the Web - Part 1
3 Layers of the Web - Part 1
Jeremy White
 
Html
Html
EPAM Systems
 
Intro to HTML and CSS basics
Intro to HTML and CSS basics
Eliran Eliassy
 
Html, CSS & Web Designing
Html, CSS & Web Designing
Leslie Steele
 
cascading style sheet ppt
cascading style sheet ppt
abhilashagupta
 
Web Design Course: CSS lecture 1
Web Design Course: CSS lecture 1
Gheyath M. Othman
 
HTML/CSS/java Script/Jquery
HTML/CSS/java Script/Jquery
FAKHRUN NISHA
 
Introduction to html course digital markerters
Introduction to html course digital markerters
SEO SKills
 
How Cascading Style Sheets (CSS) Works
How Cascading Style Sheets (CSS) Works
Amit Tyagi
 
HTML, CSS And JAVASCRIPT!
HTML, CSS And JAVASCRIPT!
Syahmi RH
 
Html,javascript & css
Html,javascript & css
Predhin Sapru
 
Web Design Course: CSS lecture 2
Web Design Course: CSS lecture 2
Gheyath M. Othman
 
Cascading Style Sheets - Part 01
Cascading Style Sheets - Part 01
Hatem Mahmoud
 
3 Layers of the Web - Part 1
3 Layers of the Web - Part 1
Jeremy White
 

Similar to HTML 5 Simple Tutorial Part 1 (20)

Chapter 2 - Introduction to HTML (Basic Structures and Syntax).pptx
Chapter 2 - Introduction to HTML (Basic Structures and Syntax).pptx
marjunegabon07
 
Introduction to html
Introduction to html
Himanshu Pathak
 
Lesson A.1 - Introduction to Web Development.docx
Lesson A.1 - Introduction to Web Development.docx
MarlonMagtibay3
 
Computer language - HTML tags
Computer language - HTML tags
Dr. I. Uma Maheswari Maheswari
 
HTML Tutorial
HTML Tutorial
Milecia McGregor
 
WEBSITE DEVELOPMENT,HTML is the standard markup language for creating Web pag...
WEBSITE DEVELOPMENT,HTML is the standard markup language for creating Web pag...
johnmngoya1
 
HTML.pdf
HTML.pdf
aneebkmct
 
Html
Html
Himanshu Singh
 
Html
Html
Himanshu Singh
 
Html, xml and java script
Html, xml and java script
Rajeev Uppala
 
html
html
Soumya Vijoy
 
html and css- 23091 3154 458-5d4341a0.ppt
html and css- 23091 3154 458-5d4341a0.ppt
ahoveida
 
htmlbcjdkkdkcjcjcjfkjccjckcjcjc_doc1.pptx
htmlbcjdkkdkcjcjcjfkjccjckcjcjc_doc1.pptx
DSAISUBRAHMANYAAASHR
 
About html
About html
Manvigangwar
 
Htmlnotes 150323102005-conversion-gate01
Htmlnotes 150323102005-conversion-gate01
Niraj Bharambe
 
HTML & CSS.ppt
HTML & CSS.ppt
vaseemshaik21
 
Html introduction
Html introduction
vishnu murthy
 
Web development (html)
Web development (html)
AliNaqvi131
 
Html
Html
Dr. SURBHI SAROHA
 
Learn html from www
Learn html from www
alvinblue1212
 
Chapter 2 - Introduction to HTML (Basic Structures and Syntax).pptx
Chapter 2 - Introduction to HTML (Basic Structures and Syntax).pptx
marjunegabon07
 
Lesson A.1 - Introduction to Web Development.docx
Lesson A.1 - Introduction to Web Development.docx
MarlonMagtibay3
 
WEBSITE DEVELOPMENT,HTML is the standard markup language for creating Web pag...
WEBSITE DEVELOPMENT,HTML is the standard markup language for creating Web pag...
johnmngoya1
 
Html, xml and java script
Html, xml and java script
Rajeev Uppala
 
html and css- 23091 3154 458-5d4341a0.ppt
html and css- 23091 3154 458-5d4341a0.ppt
ahoveida
 
htmlbcjdkkdkcjcjcjfkjccjckcjcjc_doc1.pptx
htmlbcjdkkdkcjcjcjfkjccjckcjcjc_doc1.pptx
DSAISUBRAHMANYAAASHR
 
Htmlnotes 150323102005-conversion-gate01
Htmlnotes 150323102005-conversion-gate01
Niraj Bharambe
 
Web development (html)
Web development (html)
AliNaqvi131
 
Ad

Recently uploaded (20)

Pests of Maize: An comprehensive overview.pptx
Pests of Maize: An comprehensive overview.pptx
Arshad Shaikh
 
Romanticism in Love and Sacrifice An Analysis of Oscar Wilde’s The Nightingal...
Romanticism in Love and Sacrifice An Analysis of Oscar Wilde’s The Nightingal...
KaryanaTantri21
 
SCHIZOPHRENIA OTHER PSYCHOTIC DISORDER LIKE Persistent delusion/Capgras syndr...
SCHIZOPHRENIA OTHER PSYCHOTIC DISORDER LIKE Persistent delusion/Capgras syndr...
parmarjuli1412
 
Peer Teaching Observations During School Internship
Peer Teaching Observations During School Internship
AjayaMohanty7
 
A Visual Introduction to the Prophet Jeremiah
A Visual Introduction to the Prophet Jeremiah
Steve Thomason
 
LDMMIA Shop & Student News Summer Solstice 25
LDMMIA Shop & Student News Summer Solstice 25
LDM & Mia eStudios
 
How to Customize Quotation Layouts in Odoo 18
How to Customize Quotation Layouts in Odoo 18
Celine George
 
How to Add New Item in CogMenu in Odoo 18
How to Add New Item in CogMenu in Odoo 18
Celine George
 
How to use search fetch method in Odoo 18
How to use search fetch method in Odoo 18
Celine George
 
2025 June Year 9 Presentation: Subject selection.pptx
2025 June Year 9 Presentation: Subject selection.pptx
mansk2
 
HistoPathology Ppt. Arshita Gupta for Diploma
HistoPathology Ppt. Arshita Gupta for Diploma
arshitagupta674
 
Tanja Vujicic - PISA for Schools contact Info
Tanja Vujicic - PISA for Schools contact Info
EduSkills OECD
 
VCE Literature Section A Exam Response Guide
VCE Literature Section A Exam Response Guide
jpinnuck
 
Hurricane Helene Application Documents Checklists
Hurricane Helene Application Documents Checklists
Mebane Rash
 
June 2025 Progress Update With Board Call_In process.pptx
June 2025 Progress Update With Board Call_In process.pptx
International Society of Service Innovation Professionals
 
Q1_TLE 8_Week 1- Day 1 tools and equipment
Q1_TLE 8_Week 1- Day 1 tools and equipment
clairenotado3
 
LAZY SUNDAY QUIZ "A GENERAL QUIZ" JUNE 2025 SMC QUIZ CLUB, SILCHAR MEDICAL CO...
LAZY SUNDAY QUIZ "A GENERAL QUIZ" JUNE 2025 SMC QUIZ CLUB, SILCHAR MEDICAL CO...
Ultimatewinner0342
 
K12 Tableau User Group virtual event June 18, 2025
K12 Tableau User Group virtual event June 18, 2025
dogden2
 
YSPH VMOC Special Report - Measles Outbreak Southwest US 6-14-2025.pptx
YSPH VMOC Special Report - Measles Outbreak Southwest US 6-14-2025.pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
This is why students from these 44 institutions have not received National Se...
This is why students from these 44 institutions have not received National Se...
Kweku Zurek
 
Pests of Maize: An comprehensive overview.pptx
Pests of Maize: An comprehensive overview.pptx
Arshad Shaikh
 
Romanticism in Love and Sacrifice An Analysis of Oscar Wilde’s The Nightingal...
Romanticism in Love and Sacrifice An Analysis of Oscar Wilde’s The Nightingal...
KaryanaTantri21
 
SCHIZOPHRENIA OTHER PSYCHOTIC DISORDER LIKE Persistent delusion/Capgras syndr...
SCHIZOPHRENIA OTHER PSYCHOTIC DISORDER LIKE Persistent delusion/Capgras syndr...
parmarjuli1412
 
Peer Teaching Observations During School Internship
Peer Teaching Observations During School Internship
AjayaMohanty7
 
A Visual Introduction to the Prophet Jeremiah
A Visual Introduction to the Prophet Jeremiah
Steve Thomason
 
LDMMIA Shop & Student News Summer Solstice 25
LDMMIA Shop & Student News Summer Solstice 25
LDM & Mia eStudios
 
How to Customize Quotation Layouts in Odoo 18
How to Customize Quotation Layouts in Odoo 18
Celine George
 
How to Add New Item in CogMenu in Odoo 18
How to Add New Item in CogMenu in Odoo 18
Celine George
 
How to use search fetch method in Odoo 18
How to use search fetch method in Odoo 18
Celine George
 
2025 June Year 9 Presentation: Subject selection.pptx
2025 June Year 9 Presentation: Subject selection.pptx
mansk2
 
HistoPathology Ppt. Arshita Gupta for Diploma
HistoPathology Ppt. Arshita Gupta for Diploma
arshitagupta674
 
Tanja Vujicic - PISA for Schools contact Info
Tanja Vujicic - PISA for Schools contact Info
EduSkills OECD
 
VCE Literature Section A Exam Response Guide
VCE Literature Section A Exam Response Guide
jpinnuck
 
Hurricane Helene Application Documents Checklists
Hurricane Helene Application Documents Checklists
Mebane Rash
 
Q1_TLE 8_Week 1- Day 1 tools and equipment
Q1_TLE 8_Week 1- Day 1 tools and equipment
clairenotado3
 
LAZY SUNDAY QUIZ "A GENERAL QUIZ" JUNE 2025 SMC QUIZ CLUB, SILCHAR MEDICAL CO...
LAZY SUNDAY QUIZ "A GENERAL QUIZ" JUNE 2025 SMC QUIZ CLUB, SILCHAR MEDICAL CO...
Ultimatewinner0342
 
K12 Tableau User Group virtual event June 18, 2025
K12 Tableau User Group virtual event June 18, 2025
dogden2
 
This is why students from these 44 institutions have not received National Se...
This is why students from these 44 institutions have not received National Se...
Kweku Zurek
 
Ad

HTML 5 Simple Tutorial Part 1

  • 1. HTML5 Basics Today We Are Going To Learn HTML5 in Very Easy And Fast Way Let’s Go Through It. Here I am Going To Give Your All Tag List And Their Used Which We Really used in Real Life web Development.
  • 2. HTML5 Topics 1 ● Elements - E.g <a> Anchor Tag ● Attributes – E.g <a href=”value”> Attribute href ● Headings – E.g <h1> Heading Of Web Pages ● Paragraphs – E.g <p> Like Web Page Contents ● Styles – E.g <a style=”color:red”> Decorate Our Web Pages ● Formatting – E.g bold, <b> Text Formating ● Quotations – E.g Blockquotes <q> For Quotation Like author,address ● Comments – E.g Comments In Web Pages. ● Colors – E.g Colors in Web Pages for background, Text ● CSS – E.g Adding Our styles in Web Pages like coloring,Resizing ● Links – E.g Moving from one web page to other ● Images – E.g Display Logo, Banner In Our Web Pages
  • 3. Elements ● Elements are used in our web pages to create a web pages ● Elements Always had A opening tag and a closing tag and some times it had empty tag without closing tag E.g - <tagname>This is a Tag</tagname> <tagname> = opening Tag </tagname> = Closing Tag <br/> = Empty Tag Nested Tags Nested Tag Means Elements of one tag inside another tag like this : E.g - <body> <h1>This is heading which is Nested Inside Body</h1></body> Lower Case Letter Always Try To use lower case Letter Tag For Best Practice.
  • 4. Elements Simple Web Page <html> <head> <title>Title Of Our Web Page</title> </head> <body> <h1>My First Web Page Heading</h1> <p>Simple Tutorial For Start Learning HTML By Super Coders </p> </body> </html> Browser View ●
  • 5. Elements Some Popular Tags ● <html> - begining of webpage ● <head> - head of html page ● <body> - body of html page ● <p> - paragraph tag ● <h1> to <h6> - heading Tag ● <img> - image tag ● <ul> - unordered list tag ● <li> - list elements tag ● <ol> - ordered list tag ● <div> - diversion in web page ● <footer> - footer of web page ● <header> - header of web pages ● <aside> - sidebar for webpages ● <a> - anchor tag for linking web pages ● <form> - for forms ● <input> - for data input ● <script> - for js/vb ● <style> - for css styling ● <section> - for section in web pages ● <table> - for table ● <tr> - for table row ● <td> - for table cell ● <th> - for table heading ● <video> for video in web page ● <iframe> for showing content of another web page in current page
  • 6. Attributes • All HTML tag had many attributes which we used to customize that tag property like styling,linking etc. E.g - <a href=”google.com”>Google</a> - <p style=”color:red”>Red text</p> (Here style is a css value attribute which we discuss in css part for just now it is just a tag) • • • • Attributes Always come in start tag of Elements. E.g - <h1 id=”title”>Heading tag</h1> - <h1 >= Start Tag • We Can Also use multiple Attribute for any HTML tag like : - E.g - <a href=”google.com” title=”google”>Google</a> • Attributes Always Comes with name=”value” Pair
  • 7. Attributes Some Popular HTML Attributes ● alt – we use alt tag generally in img tag so searching engine or any screen read our image with alt attribute. Alt attribute define the image. E.g - <img src=”hello-html.png” alt=”hello html” /> ● title – we use this attribute for showing hover small text which define the title of element. E.g - <img src=”hello-html.png” alt=”hello html” title=”hello html” /> ● style – we use style Attr for decorating our web page font,color,design,responsiveness. E.g- <p style=”color:red”> Red Color Text </p> ● class - we use class attr for relating html elements generally to css or js to access that elements. E.g - <p class=”para”> Simple Para With Class We change it later using css or js </p> ● id – Id defines the unique html element in web page simlary as for class we access id for css and js but in class we select all same class element but not all same id element js select only first unique id. E.g - <p id=”para”> Simple Para With Class We change it later using css or js </p> ● src - Src is used for defining the source path of img tag. E.g - <p src=”simple.png”/>
  • 8. Heading ● Heading are Our Web Pages Heading like Title Of Our Web Page sub title of Web Pages ● Since we know that we can use p tag for text and make it big as like but why we used h1 – h6 tag? - Because searching engine read our web page and then it knows its heading of web page for seo friendly website we always have to follow these simple rules always.
  • 9. Heading Heading Tags <html> <body> <h1>Heading 1</h1> <h2>Heading 1</h2> <h3>Heading 1</h3> <h4>Heading 1</h4> <h5>Heading 1</h5> <h6>Heading 1</h6> </body> </html> Browser View
  • 10. Paragraphs Paragraphs are as we all known as simple contents in your web pages like description, strory or anything in our web pages. Tag . <p>Hi I am a pragraph</p>
  • 11. Paragraphs Paragraph Demo <html> <body> <p> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged </p> </body> </html> Browser View
  • 12. Styles Style are used by using css propert values inline in html tags. E.g <tagname style=”property:value”></tagname> Like :- <p style=”color:red”>Red Text</p> Here, color = property red = value (We will learn more about style in css section)
  • 13. Styles Sample Code <html> <body> <p style=”font-size:15px;”>Hello para</p> <h1 style=”color:red”>Hello Heading</h1> <div style=”background- color:red;color:black”>Hello i Am div with Background Color</div> </body> </html> Browser View
  • 14. Styles Some Popular Styling Properties : - background-color:red; color:black; font-size:20px; width:100px; width:100%; text-align:center,left,right,justify Background:url(‘img.png’);
  • 15. Formatting ● Formatting Means format the text appearance like bold,italic,emphasis,subscript,superscript,del,mark Some Tags for Formattings <b> - for text bold <small> - for small text <sup> - superscript text <del> - deleted text <i> - italic text <strong> - important text <mark> - mark highlighted text
  • 16. Formatting Sample Code <html> <body> <b>I am bold text</b> <i>i am italic text</b> <em>i am emphasis text</em> <mark>i am marked text</mark> <strong>i am important text</strong> <p>Hello am para <sup>hello am superscript insdie para</sup></p> <p>hello am para <sub> hello am subscrript inside para</sub></p> </body> </html> Browser View
  • 17. Quotation Quotation is simply we used for address, authors, blockquoted text. Some Tags :- <address> - for Address <abbr> - for abbreviation <blockquote> - for blockquotes text <q> - for quoted text
  • 18. Quotation Sample Code <html> <body> <address>This is address, simple address</address> <p>hello am a paragraph <q>and am a quoted text inside paragraph</q></p> <p>hello am paragraph <blockquote>Hello am block quoted text </blockquote></p> </body> </html> Browser View
  • 19. Comments Comments are very important in programming languages because what we write in your code only we understand it but for understand other by other developers its very tough task. So we write comments after every block of code so that any one can read our code and easily modify or read it. Comments not execute in our program code its just text which only view in source codes.
  • 20. Comments How To Write Comments? Code : - <!--Hello i am comment-->
  • 21. Comments Sample Code <html> <body> <!-- Hello i am a comment --> <p>This is a simple paragraph where only paragraph will display in browser and comments in our source codes.</p> <!-- Please add more text --> </body> </html> Browser View Source View
  • 22. Colors Colors codes are written just like simple color name, rgb values or Hex values We can used colors in background,Text,border . E.g of Color Codes : - ● Name – orange,green,red etc ● Hex values- #000000,#FFF,#FFFFFF ● Rgb values- rgb(0-255,0-255,0-255) ● Rgba – rgba(0-255,0-255,0-255,0-1) (Rgba is a transpency color which show transparent colors)
  • 23. Colors ● Rgb values - rgb values start from 0,0,0 to 255,255,255 where 0,0,0 is black and 255,255,255 and all colors lies between in this numbers. Like : - rgb(150, 15, 15) is brown ● Hex values – hex values start from #000000 to #FFFFFF where we know that F is 15 last digit in Hex Format. #000000 is black #FFFFFF is white ● Rgba values – RGBA is same as rgb but it gives us transparent effect in colors we can set transparency deep or light of by its last values which start from 0-1 . E.g - rgba(0,0,0,0.5) is transparent black
  • 24. Colors Sample Codes <html> <body> <div style="background:red"> <p style="color:#FFFFFF">This is a simple paragraph inside Background color div.</p> </div> <div style="background:#37d570;padding: 15px;"> <p style="color:#FFFFFF;background: rgba(195, 45, 45, 0.66);">This is a simple paragraph inside background div and paragraph had a transparent background</p> </div> </body> </html> Browser view
  • 25. Colors Rgba Examle <html> <head> <title>RGBA Example with image</title> </head> <body> <div style="background: url('social.png');padding: 10px;background-size: cover;background-position: 0px 125px;"> <p style="color: #FFFFFF;background: rgba(0,0,0,0.5);">I am a paragraph with transparent Background</p> </div> </body> </html> Browser View
  • 26. CSS CSS Stand For Cascading stylesheet which is used to design our webpages. Css link with Our Web pages in 3 types :- 1.inline 2.internal css 3.external css
  • 27. CSS Inline CSS – we already used inline css in previous demo like adding color in text and background. E.g - <div style="background: url('social.png');padding: 10px;background-size: cover;background-position: 0px 125px;"></div> <p style="color: #FFFFFF;background: rgba(0,0,0,0.5);"> </p> This all are inline css because we write our css in html elements in its style attributes. <tagname style=”property:value”> = using inline css
  • 28. CSS Internal CSS – Internal css means using our css codes in head of your body enclosing inside style tag where we define our elements css property Code : <html> <head><style> p { color:red; } div { background:green; padding:10px; } </style></head> <body> <div> <p>Inline Css Example</p> </div> </body> </html> Browser View
  • 29. CSS External css – In External css we create a another file with .css external file then link our external css file to our html pages it is best for use because we dont need to write css over and over again jst create a one single css file then link our html pages. In All HTML templates external css is used for creating HTML themes which is easy to write and used and code is REUSABLE.
  • 30. CSS Sample code – external.html <html> <head> <!-- Important for linking css with HTML pages --> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <div> <p>External Css Example</p> </div> </body> </html> Sample code – style.css p { color:white; } div { background:orange; padding:10px; }
  • 31. CSS Browser View (we will learn more about css in css tutorial )
  • 32. Links Links in HTML used to Move from one Page to Other, Move from page bottom to Top or Top to Bottom, create image link,text link to Visit Other pages. Simple text link :- <a href=”secondpage.html”>Visit Second Page</a> Simple image link : - <a href=”visit.html”><img src=”go.png”></a>
  • 33. Links Sample Code <html> <head> </head> <body> <header id=”top”>I am the Header of page </header> <br> <a href=”second.html”>Second Page using Text Link</a> <br> <a href=”second.html”><img style=”width:100%” src=”social.png” alt=”second page using Image Link”></a> <br> <a href=”#bottom”>Go To Bottom of Page</a> <br> <div style=”height:5000px;background:green;”> <p>Large Text Contents</p> </div> <br> <a href=”#top”>Visit Top Of the Page</a> <br> <footer id=”bottom”>I am the Bottom Of Page</footer> </body </html> (Here we use # to visit specifc id of elements # denotes for id and (.) dot denotes for class in all html,css,js )
  • 36. Links Open a Page in New Tab (using target=”_blank” attribute in a tag) sample : <html> <body> <a href=”second.html” target=”_blank”>Open a new tab with second page</a> </body> </html> View
  • 37. Images We use Image in HTML for displaying simple image ,logos, banners, icons, background images,border images etc. We can simple show images in HTML using <img src=”path_of_image”/> Or We Can Also use Background images <div style=”background:url(‘social.png’);padding:10px;”> I am a div with a background image </div>
  • 38. Images Sample Code <html> <head> <title>Images</title> </head> <body> <p>This is simple image</p> <img src="social.png" alt="social Image" title="social image" style="width: 100%"> <p>This is image with background images</p> <div style="width: 100%;height: 300px;background: url('social.png');">I am a text inside a div</div> </body> </html> Browser View
  • 39. Some Extra Tips ● Always Put Your Css in inside <head> Tag. ● Always Put Your Script In Footer. So that page full loaded then js do its works. ● Always use alt attribute for img tag because search engine read the image via alt attribute. ● Standard HTML5 Web page contains head,body,section,header, footer and main for your contents. ● Try to use less inline css and call css by externally. ● And Important Don’t forget to closed your tags