SlideShare a Scribd company logo
HTML
HTML
• HTML stands for HyperText Markup Language.
• It is the standard language used to create and structure content on the
web.
• It tells the web browser how to display text, links, images, and other forms
of multimedia on a webpage. HTML sets up the basic structure of a
website, and then CSS and JavaScript add style and interactivity to make
it look and function better.
it is a forntend ppt that discussed the topics of HTMl CSSfrontend.ppt
HTML Elements
• An HTML Element consists of a start tag, content, and an end
tag, which together define the element’s structure and
functionality.
• Elements are the basic building blocks of a webpage and can
represent different types of content, such as text, links, images,
or headings.
• In HTML, elements are broadly categorized into two main types
based on how they display in the document layout: block-level
elements and inline elements.
• 1. Block-Level Elements – Block-level elements typically start
on a new line and take up the full width available to them,
regardless of their actual content width. This means they stack
vertically and can contain other block-level elements as well as
inline elements. Here are some examples of block-level
elements:
• <div>: A general-purpose container for other elements.
• <p>: Defines a paragraph.
• <h1>, <h2>, …, <h6>: Heading elements of different levels.
• <ol>, <ul>: Ordered and unordered lists.
• <table>: Defines a table.
• <form>: Used for HTML forms to collect user inputs.
• <section>, <article>, <nav>, <aside>, <header>, <footer>:
Semantic elements that define areas of a webpage.
• 2. Inline Elements – Inline elements do not start on a new line;
they appear on the same line as adjacent content, as long as
there is space.
• They only take up as much width as their content requires.
Inline elements are typically used within block-level elements to
add content or style.
• Here are some examples of inline elements:
• Examples:
• <span>: A general-purpose inline container for phrasing
content.
• <a>: Creates hyperlinks.
• <img>: Embeds an image.
• <strong>, <b>: Used for strong emphasis and bold text,
respectively.
• <em>, <i>: Used for emphasis and italic text, respectively.
• <br>: Inserts a line break within text.
• <input>: Creates interactive controls for forms.
HTML Headings
• HTML headings are used to define the titles and subtitles of
sections on a webpage. They help organize the content and
create a structure that is easy to navigate.
• Levels of HTML Heading Tags
• HTML offers six levels of heading tags, each serving a
different purpose in structuring your content:
• Note: the ‘h’ inside the tag should always be in lowercase.
it is a forntend ppt that discussed the topics of HTMl CSSfrontend.ppt
HTML DOCTYPE Declaration
• HTML DOCTYPE (Document Type Declaration) is an
instruction that appears at the beginning of an HTML
document, before the <html> tag.
• Its primary role is to tell the web browser which version of
HTML the page is written in, ensuring that the browser
renders the content correctly. It is not an HTML tag, but
rather a special instruction that specifies how the browser
should interpret the HTML.
• Syntax:
• < !DOCTYPE html >
HTML Paragraphs
• A paragraph in HTML is simply a block of text enclosed
within the <p> tag.
• The <p> tag helps divide content into manageable, readable
sections. It’s the go-to element for wrapping text in a web
page that is meant to be displayed as a distinct paragraph.
• Syntax:
• <p>Content</p>
• The <br> tag
• The HTML <br> tag element creates a line break, giving you a
new line without starting a new paragraph.
• Use <br> when you want to move to the next line without
beginning a whole new paragraph.
• Syntax:
• <br>
• Example:
HTML Links Hyperlinks
• HTML Links, also known as hyperlinks, are defined by
the <a> tag in HTML, which stands for “anchor.”
• These links are essential for navigating between web pages
and directing users to different sites, documents, or sections
within the same page.
• The basic attributes of the <a> tag include href, title, and targt,
among others.
• Basic Syntax of an HTML Link:
• <a href="https://www.example.com">Visit Example</a>
• By default, links will appear as follows in all browsers:
• An unvisited link is underlined and blue.
• A visited link is underlined and purple.
• An active link is underlined and red.
• HTML Links – Target Attribute
• The target attribute in the <a> tag specifies where to open the
linked document. It controls whether the link opens in the same
window, a new window, or a specific frame.
• _blank: Opens the linked document in a new window or tab.
• _self: Opens the linked document in the same frame or window
as the link. (Default behavior)
HTML Images
• The HTML <img> tag is used to embed an image in web pages
by linking them. It creates a placeholder for the image, defined
by attributes like src, width, height, and alt, and does not require
a closing tag.
• There are two ways to insert the images into a webpage:
• By providing a full path or address (URL) to access an internet
file.
• By providing the file path relative to the location of the current
web page file.
• Basic Example of the <img> Tag:
Semantic Elements
• Here are some of the fundamental HTML5 semantic elements
that you should use to structure your web content:
• <article>
• <aside>
• <details>
• <figcaption>
• <figure>
• <footer>
• <header>
• <main>
• <mark>
• <nav>
• <section>
• 1. The <article> Tag
• The <article> tag is used for content that stands alone and can
be independently distributed or reused, such as a blog post or
news article.
• Example:
• 2. The <aside> Tag
• It is used to place content in a sidebar i.e. aside from the
existing content. It is related to surrounding content.
• Example:
• 3. The Details and Summary Tag
• The “details” defines additional details that the user can hide or
view. “summary” defines a visible heading for a “details”
element.
• Example:
• 4. The Figure and Figcaption Tag
• These are used to add an image to a web page with a small
description.
• Example:
• 5. The Header Tag
• As the name suggests, it is for the header of a section
introductory of a page. There can be multiple headers on a
page.
• Example:
• 6. The Footer Tag
• Footer located at the bottom of any article or document, they
can contain contact details, copyright information etc. There can
be multiple footers on a page.
• Example: The below example shows the implementation of the
Footer.
• Example:
• 7. The Main Tag
• It defines the main content of the document. The content inside
the main tag should be unique.
• Example:
• 8. The Section Tag
• A page can be split into sections like Introduction, Contact
Information, Details, etc and each of these sections can be in a
different section tag.
• Example:
• 9. The nav Tag
• It is used to define a set of navigation links in the form of a
navigation bar or nav menu.
• Example: The below example shows the implementation of the
nav tag.:
• 10. The Mark Tag
• It is used to highlight the text.
• Example:

More Related Content

PDF
Chapter 2 Notes, MCQs, and QA (HTML and CSS).pdf
rehansayyadgolden07
 
PPT
Web forms and html (lect 1)
Salman Memon
 
PPTX
Introduction to html
Himanshu Pathak
 
PPT
Html
SBalan Balan
 
PPT
html
tumetr1
 
PPTX
HTML introduction for beginners Slides .pptx
wewit44414
 
PPTX
HTMLHTML HTML ghdgsahdaHTML HTML ghdgsahda.pptx
SadiaBaig6
 
PDF
Web Technologies - Chapter 3 of Front end path.pdf
reemaaliasker
 
Chapter 2 Notes, MCQs, and QA (HTML and CSS).pdf
rehansayyadgolden07
 
Web forms and html (lect 1)
Salman Memon
 
Introduction to html
Himanshu Pathak
 
html
tumetr1
 
HTML introduction for beginners Slides .pptx
wewit44414
 
HTMLHTML HTML ghdgsahdaHTML HTML ghdgsahda.pptx
SadiaBaig6
 
Web Technologies - Chapter 3 of Front end path.pdf
reemaaliasker
 

Similar to it is a forntend ppt that discussed the topics of HTMl CSSfrontend.ppt (20)

PPTX
HTML : INTRODUCTION TO WEB DESIGN Presentation
surajsutar467
 
PPTX
Std 10 Computer Chapter 1 introduction to HTML (Part 1)
Nuzhat Memon
 
PPTX
MTA html5 text_graphics_media
Dhairya Joshi
 
PDF
web development.pdf
BagHarki
 
PPTX
Web design - HTML (Hypertext Markup Language) introduction
Mustafa Kamel Mohammadi
 
PPTX
Introduction to HTML.pptx
malrad1
 
PPTX
Html
yugank_gupta
 
PDF
Html
Kamal Acharya
 
PPTX
Batch -25 PPT.pptx
makalakshmidurga123
 
PPT
SDP_-_Module_4.ppt
ssuser568d77
 
PPTX
2. HTML Basic unit2 fundamentals of computer
travelwithlifezindgi
 
PDF
Day1-HTML-CSS some basic css and html.pdf
enasashri12
 
PPTX
Castro Chapter 3
Jeff Byrnes
 
PPTX
TPIP-1.pptx front end development of css
KorbanMaheshwari
 
PPTX
BITM3730Week1.pptx
MattMarino13
 
PPTX
Xhtml and html5 basics
messinam
 
PPTX
Html and Css Student Education hub point.pptx
AbenezerTefera2
 
PPTX
Best Option to learn start here HTML.pptx
osmytech57
 
PDF
Introduction to html
eShikshak
 
HTML : INTRODUCTION TO WEB DESIGN Presentation
surajsutar467
 
Std 10 Computer Chapter 1 introduction to HTML (Part 1)
Nuzhat Memon
 
MTA html5 text_graphics_media
Dhairya Joshi
 
web development.pdf
BagHarki
 
Web design - HTML (Hypertext Markup Language) introduction
Mustafa Kamel Mohammadi
 
Introduction to HTML.pptx
malrad1
 
Batch -25 PPT.pptx
makalakshmidurga123
 
SDP_-_Module_4.ppt
ssuser568d77
 
2. HTML Basic unit2 fundamentals of computer
travelwithlifezindgi
 
Day1-HTML-CSS some basic css and html.pdf
enasashri12
 
Castro Chapter 3
Jeff Byrnes
 
TPIP-1.pptx front end development of css
KorbanMaheshwari
 
BITM3730Week1.pptx
MattMarino13
 
Xhtml and html5 basics
messinam
 
Html and Css Student Education hub point.pptx
AbenezerTefera2
 
Best Option to learn start here HTML.pptx
osmytech57
 
Introduction to html
eShikshak
 
Ad

More from harshajajam22 (6)

PPTX
it is a PPT that represents the biblical Knowledge
harshajajam22
 
PPT
detailed explanation for the node js nodejs-part1-181125103807.ppt
harshajajam22
 
PPTX
sample Python ntes Python_with_AI_Course_Curriculum.pptx
harshajajam22
 
PPTX
it is detailed pHP project for the Btech studentsStudent-RMS-PPT-zmufeh.pptx
harshajajam22
 
PPTX
the presentation is about the react js and basucs for the dataReactJS_Present...
harshajajam22
 
PPTX
reacts js with basic details Detailed_ReactJS_Presentation.pptx
harshajajam22
 
it is a PPT that represents the biblical Knowledge
harshajajam22
 
detailed explanation for the node js nodejs-part1-181125103807.ppt
harshajajam22
 
sample Python ntes Python_with_AI_Course_Curriculum.pptx
harshajajam22
 
it is detailed pHP project for the Btech studentsStudent-RMS-PPT-zmufeh.pptx
harshajajam22
 
the presentation is about the react js and basucs for the dataReactJS_Present...
harshajajam22
 
reacts js with basic details Detailed_ReactJS_Presentation.pptx
harshajajam22
 
Ad

Recently uploaded (20)

PDF
EVS+PRESENTATIONS EVS+PRESENTATIONS like
saiyedaqib429
 
PPTX
business incubation centre aaaaaaaaaaaaaa
hodeeesite4
 
PPTX
EE3303-EM-I 25.7.25 electrical machines.pptx
Nagen87
 
PDF
Principles of Food Science and Nutritions
Dr. Yogesh Kumar Kosariya
 
PDF
Introduction to Data Science: data science process
ShivarkarSandip
 
PPT
Lecture in network security and mobile computing
AbdullahOmar704132
 
PDF
Chad Ayach - A Versatile Aerospace Professional
Chad Ayach
 
PPTX
Color Model in Textile ( RGB, CMYK).pptx
auladhossain191
 
PPTX
Module2 Data Base Design- ER and NF.pptx
gomathisankariv2
 
PPT
Ppt for engineering students application on field effect
lakshmi.ec
 
PPTX
unit 3a.pptx material management. Chapter of operational management
atisht0104
 
PDF
LEAP-1B presedntation xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hatem173148
 
PPTX
Inventory management chapter in automation and robotics.
atisht0104
 
PDF
Activated Carbon for Water and Wastewater Treatment_ Integration of Adsorptio...
EmilianoRodriguezTll
 
PPTX
IoT_Smart_Agriculture_Presentations.pptx
poojakumari696707
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
PDF
Top 10 read articles In Managing Information Technology.pdf
IJMIT JOURNAL
 
PDF
Introduction to Ship Engine Room Systems.pdf
Mahmoud Moghtaderi
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
PDF
Cryptography and Information :Security Fundamentals
Dr. Madhuri Jawale
 
EVS+PRESENTATIONS EVS+PRESENTATIONS like
saiyedaqib429
 
business incubation centre aaaaaaaaaaaaaa
hodeeesite4
 
EE3303-EM-I 25.7.25 electrical machines.pptx
Nagen87
 
Principles of Food Science and Nutritions
Dr. Yogesh Kumar Kosariya
 
Introduction to Data Science: data science process
ShivarkarSandip
 
Lecture in network security and mobile computing
AbdullahOmar704132
 
Chad Ayach - A Versatile Aerospace Professional
Chad Ayach
 
Color Model in Textile ( RGB, CMYK).pptx
auladhossain191
 
Module2 Data Base Design- ER and NF.pptx
gomathisankariv2
 
Ppt for engineering students application on field effect
lakshmi.ec
 
unit 3a.pptx material management. Chapter of operational management
atisht0104
 
LEAP-1B presedntation xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hatem173148
 
Inventory management chapter in automation and robotics.
atisht0104
 
Activated Carbon for Water and Wastewater Treatment_ Integration of Adsorptio...
EmilianoRodriguezTll
 
IoT_Smart_Agriculture_Presentations.pptx
poojakumari696707
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
Top 10 read articles In Managing Information Technology.pdf
IJMIT JOURNAL
 
Introduction to Ship Engine Room Systems.pdf
Mahmoud Moghtaderi
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
Cryptography and Information :Security Fundamentals
Dr. Madhuri Jawale
 

it is a forntend ppt that discussed the topics of HTMl CSSfrontend.ppt

  • 2. HTML • HTML stands for HyperText Markup Language. • It is the standard language used to create and structure content on the web. • It tells the web browser how to display text, links, images, and other forms of multimedia on a webpage. HTML sets up the basic structure of a website, and then CSS and JavaScript add style and interactivity to make it look and function better.
  • 4. HTML Elements • An HTML Element consists of a start tag, content, and an end tag, which together define the element’s structure and functionality. • Elements are the basic building blocks of a webpage and can represent different types of content, such as text, links, images, or headings. • In HTML, elements are broadly categorized into two main types based on how they display in the document layout: block-level elements and inline elements.
  • 5. • 1. Block-Level Elements – Block-level elements typically start on a new line and take up the full width available to them, regardless of their actual content width. This means they stack vertically and can contain other block-level elements as well as inline elements. Here are some examples of block-level elements: • <div>: A general-purpose container for other elements. • <p>: Defines a paragraph. • <h1>, <h2>, …, <h6>: Heading elements of different levels. • <ol>, <ul>: Ordered and unordered lists. • <table>: Defines a table.
  • 6. • <form>: Used for HTML forms to collect user inputs. • <section>, <article>, <nav>, <aside>, <header>, <footer>: Semantic elements that define areas of a webpage. • 2. Inline Elements – Inline elements do not start on a new line; they appear on the same line as adjacent content, as long as there is space. • They only take up as much width as their content requires. Inline elements are typically used within block-level elements to add content or style. • Here are some examples of inline elements:
  • 7. • Examples: • <span>: A general-purpose inline container for phrasing content. • <a>: Creates hyperlinks. • <img>: Embeds an image. • <strong>, <b>: Used for strong emphasis and bold text, respectively. • <em>, <i>: Used for emphasis and italic text, respectively. • <br>: Inserts a line break within text. • <input>: Creates interactive controls for forms.
  • 8. HTML Headings • HTML headings are used to define the titles and subtitles of sections on a webpage. They help organize the content and create a structure that is easy to navigate. • Levels of HTML Heading Tags • HTML offers six levels of heading tags, each serving a different purpose in structuring your content: • Note: the ‘h’ inside the tag should always be in lowercase.
  • 10. HTML DOCTYPE Declaration • HTML DOCTYPE (Document Type Declaration) is an instruction that appears at the beginning of an HTML document, before the <html> tag. • Its primary role is to tell the web browser which version of HTML the page is written in, ensuring that the browser renders the content correctly. It is not an HTML tag, but rather a special instruction that specifies how the browser should interpret the HTML. • Syntax: • < !DOCTYPE html >
  • 11. HTML Paragraphs • A paragraph in HTML is simply a block of text enclosed within the <p> tag. • The <p> tag helps divide content into manageable, readable sections. It’s the go-to element for wrapping text in a web page that is meant to be displayed as a distinct paragraph. • Syntax: • <p>Content</p>
  • 12. • The <br> tag • The HTML <br> tag element creates a line break, giving you a new line without starting a new paragraph. • Use <br> when you want to move to the next line without beginning a whole new paragraph. • Syntax: • <br> • Example:
  • 13. HTML Links Hyperlinks • HTML Links, also known as hyperlinks, are defined by the <a> tag in HTML, which stands for “anchor.” • These links are essential for navigating between web pages and directing users to different sites, documents, or sections within the same page. • The basic attributes of the <a> tag include href, title, and targt, among others. • Basic Syntax of an HTML Link: • <a href="https://www.example.com">Visit Example</a>
  • 14. • By default, links will appear as follows in all browsers: • An unvisited link is underlined and blue. • A visited link is underlined and purple. • An active link is underlined and red. • HTML Links – Target Attribute • The target attribute in the <a> tag specifies where to open the linked document. It controls whether the link opens in the same window, a new window, or a specific frame. • _blank: Opens the linked document in a new window or tab. • _self: Opens the linked document in the same frame or window as the link. (Default behavior)
  • 15. HTML Images • The HTML <img> tag is used to embed an image in web pages by linking them. It creates a placeholder for the image, defined by attributes like src, width, height, and alt, and does not require a closing tag. • There are two ways to insert the images into a webpage: • By providing a full path or address (URL) to access an internet file. • By providing the file path relative to the location of the current web page file. • Basic Example of the <img> Tag:
  • 16. Semantic Elements • Here are some of the fundamental HTML5 semantic elements that you should use to structure your web content: • <article> • <aside> • <details> • <figcaption> • <figure> • <footer> • <header>
  • 17. • <main> • <mark> • <nav> • <section>
  • 18. • 1. The <article> Tag • The <article> tag is used for content that stands alone and can be independently distributed or reused, such as a blog post or news article. • Example: • 2. The <aside> Tag • It is used to place content in a sidebar i.e. aside from the existing content. It is related to surrounding content. • Example:
  • 19. • 3. The Details and Summary Tag • The “details” defines additional details that the user can hide or view. “summary” defines a visible heading for a “details” element. • Example: • 4. The Figure and Figcaption Tag • These are used to add an image to a web page with a small description. • Example:
  • 20. • 5. The Header Tag • As the name suggests, it is for the header of a section introductory of a page. There can be multiple headers on a page. • Example: • 6. The Footer Tag • Footer located at the bottom of any article or document, they can contain contact details, copyright information etc. There can be multiple footers on a page. • Example: The below example shows the implementation of the Footer. • Example:
  • 21. • 7. The Main Tag • It defines the main content of the document. The content inside the main tag should be unique. • Example: • 8. The Section Tag • A page can be split into sections like Introduction, Contact Information, Details, etc and each of these sections can be in a different section tag. • Example:
  • 22. • 9. The nav Tag • It is used to define a set of navigation links in the form of a navigation bar or nav menu. • Example: The below example shows the implementation of the nav tag.: • 10. The Mark Tag • It is used to highlight the text. • Example: