SlideShare a Scribd company logo
HTML: Building the Web
Learn the foundation of web development
Organised by: GDG-SRGI & Coding Club
Harsh Agarwal
Speaker
(Web Dev Lead)
Er. Aman Saluja
Faculty Advisor
Session 2
• Introduction to web dev
• Basics of HTML
What We’ll Cover Today:
• Doubts and Practicle of code.
• Basic to HTML
What is HTML?
• HTML stands for HyperText Markup Language. It is the standard language
used to create and design web pages.
• HyperText refers to the system of linking documents and resources.
• Markup Language refers to the tags used to define the structure and
elements of a webpage (e.g., headings, paragraphs, images).
• HTML acts as the backbone of any website, providing its basic structure,
which is styled and made interactive using CSS and JavaScript.
Introduction to HTML
HTML's role in creating web pages
• Foundation of the Web
• Defines Content Structure
• Integrates with Other Technologies
• Ease of Learning
Structure of an HTML Document
• The structure of HTML refers to the organized layout of an HTML document, consisting of
essential elements like <!DOCTYPE html>, <html>, <head> (for metadata), and <body>.
• This structure defines how content is organized and displayed on a webpage.
Structure of an HTML Document
Types of Tags in HTML
1. Opening Tag: Indicates the start of an HTML element. Example <p>.
2. Closing Tag: Indicates the end of an HTML element.
3. Self-Closing Tags: Some tags do not require a closing tag because they do not
enclose content.
Tags in HTML
<!DOCTYPE html>: Declares the document type and version of HTML (HTML5) to
the browser for proper rendering.
<html>: Represents the root element of an HTML document that contains all other
elements.
<meta> (Metadata): Defines metadata for the document (inside <head>), often
used for SEO and character encoding.
<head>: Contains meta-information about the document, such as title, character
encoding, and linked resources like CSS.
<body>: Represents the content of the document, including text, images, and other
elements that are visible to the user.
Tags in HTML
<h1> to <h6> (Headings): Used for creating headings of different levels. <h1> is the most
important heading, and <h6> is the least important.
Tags in HTML
<p> (Paragraph): The <p> tag is used to group text into paragraphs.
Tags in HTML
<div> (Division): A container used to group content for styling or structure.
Tags in HTML
<br>: Inserts a line break, forcing content to the next line.
Tags in HTML
<hr>: Creates a horizontal rule (line) to separate content.
Tags in HTML
<b> (Bold): Makes text bold.
Tags in HTML
<i>(Italics): Makes text italic.
Tags in HTML
<img> (Image): Embeds an image in the webpage.
Tags in HTML
<a> (Anchor Link): Used to create hyperlinks (links to other webpages, locations on
the same page, or external resources).
Tags in HTML
Lists: There are two types tags in list:
1. <ul> (Unordered List): Creates an unordered (bulleted) list.
Tags in HTML
2. <ol> (Ordered List): Creates an ordered (numbered) list.
within text, moving content to the next line.
Tags in HTML
<table> (Table): Defines a table for displaying tabular data.
A table is made up of:
• <table>
• <tr> (table row)
• <th> (table header)
• <td> (table data)
Tags in HTML
1. <tr> (Table Row): Defines a row in a table, containing one or more <td> or
<th> elements.
2. <th> (Table Header): Represents a header cell in a table, typically bold and
centered, used for column or row titles.
3. <td> (Table Data): Represents a standard data cell in a table, where actual
content is placed within rows.
Tags in HTML
<table> (Table):
Tags in HTML
2. <audio> (Audio): Embeds an audio file in the webpage.
Tags in HTML
2. <video> (Video): Embeds a video on the webpage.
Tags in HTML
<iframe> : It is used to embed another HTML document within the current
document.
Tags in HTML
<form>: It is used to create a section for collecting user input and sending it
to a server for processing.
<input>: Input tag is a versatile HTML element used to create various types
of form controls, allowing users to enter data.
Comments in HTML
• Comments in HTML are used to add notes or explanations within the code that
are not displayed on the webpage.
• They help developers understand or document the code but are ignored by
the browser.
• Comments are written between <!-- and -->.
Attributes in HTML
• HTML attributes provide additional information about HTML elements,
controlling their behavior, appearance, or functionality.
• They are always specified in the opening tag and are written as name-
value pairs.
Attributes in HTML
• id: Specifies a unique identifier for an element
• class: Assigns one or more class names to an element, typically for CSS styling.
• placeholder: Displays a short hint inside form input fields.
• value: Specifies the value of a form element.
• href: Defines the URL of a linked resource.
• src: Specifies the source URL for media elements like images, videos, or audio.
• alt: Provides alternative text for images, used if the image can't be displayed.
Attributes in HTML
Assignment 1
Assignment 2
THANK YOU!!
gdg_workshop 3 on web development HTML & CSS
Ad

More Related Content

Similar to gdg_workshop 3 on web development HTML & CSS (20)

Html-meeting1-1.pptx
Html-meeting1-1.pptxHtml-meeting1-1.pptx
Html-meeting1-1.pptx
YoussefAbobakr
 
Html-meeting1-1.pptx
Html-meeting1-1.pptxHtml-meeting1-1.pptx
Html-meeting1-1.pptx
YoussefAbobakr
 
Introduction to Hypertext markup language
Introduction to Hypertext markup languageIntroduction to Hypertext markup language
Introduction to Hypertext markup language
katariraju12
 
Introduction to Hypertext markup language
Introduction to Hypertext markup languageIntroduction to Hypertext markup language
Introduction to Hypertext markup language
katariraju12
 
HTML_HEADER PART TAGS .pptx
HTML_HEADER              PART TAGS .pptxHTML_HEADER              PART TAGS .pptx
HTML_HEADER PART TAGS .pptx
HARIPRIYAV25
 
HTML_HEADER PART TAGS .pptx
HTML_HEADER              PART TAGS .pptxHTML_HEADER              PART TAGS .pptx
HTML_HEADER PART TAGS .pptx
HARIPRIYAV25
 
BITM3730Week1.pptx
BITM3730Week1.pptxBITM3730Week1.pptx
BITM3730Week1.pptx
MattMarino13
 
BITM3730Week1.pptx
BITM3730Week1.pptxBITM3730Week1.pptx
BITM3730Week1.pptx
MattMarino13
 
HTML - LinkedIn
HTML - LinkedInHTML - LinkedIn
HTML - LinkedIn
Gino Louie Peña, ITIL®,MOS®
 
HTML - LinkedIn
HTML - LinkedInHTML - LinkedIn
HTML - LinkedIn
Gino Louie Peña, ITIL®,MOS®
 
Html 5
Html 5Html 5
Html 5
DanellaPatrick
 
Html 5
Html 5Html 5
Html 5
DanellaPatrick
 
Appdev appdev appdev app devAPPDEV 1.2.pptx
Appdev appdev appdev app devAPPDEV 1.2.pptxAppdev appdev appdev app devAPPDEV 1.2.pptx
Appdev appdev appdev app devAPPDEV 1.2.pptx
ArjayBalberan1
 
Appdev appdev appdev app devAPPDEV 1.2.pptx
Appdev appdev appdev app devAPPDEV 1.2.pptxAppdev appdev appdev app devAPPDEV 1.2.pptx
Appdev appdev appdev app devAPPDEV 1.2.pptx
ArjayBalberan1
 
Web Development , HTML & CSS & JAVASCRIPT
Web Development , HTML & CSS & JAVASCRIPTWeb Development , HTML & CSS & JAVASCRIPT
Web Development , HTML & CSS & JAVASCRIPT
VENKATANAGABHUVANESH
 
Web Development , HTML & CSS & JAVASCRIPT
Web Development , HTML & CSS & JAVASCRIPTWeb Development , HTML & CSS & JAVASCRIPT
Web Development , HTML & CSS & JAVASCRIPT
VENKATANAGABHUVANESH
 
Grade 10 COMPUTER
Grade 10 COMPUTERGrade 10 COMPUTER
Grade 10 COMPUTER
Joel Linquico
 
Grade 10 COMPUTER
Grade 10 COMPUTERGrade 10 COMPUTER
Grade 10 COMPUTER
Joel Linquico
 
Day1-HTML-CSS some basic css and html.pdf
Day1-HTML-CSS some basic css and html.pdfDay1-HTML-CSS some basic css and html.pdf
Day1-HTML-CSS some basic css and html.pdf
enasashri12
 
Day1-HTML-CSS some basic css and html.pdf
Day1-HTML-CSS some basic css and html.pdfDay1-HTML-CSS some basic css and html.pdf
Day1-HTML-CSS some basic css and html.pdf
enasashri12
 
Introduction to Hypertext markup language
Introduction to Hypertext markup languageIntroduction to Hypertext markup language
Introduction to Hypertext markup language
katariraju12
 
Introduction to Hypertext markup language
Introduction to Hypertext markup languageIntroduction to Hypertext markup language
Introduction to Hypertext markup language
katariraju12
 
HTML_HEADER PART TAGS .pptx
HTML_HEADER              PART TAGS .pptxHTML_HEADER              PART TAGS .pptx
HTML_HEADER PART TAGS .pptx
HARIPRIYAV25
 
HTML_HEADER PART TAGS .pptx
HTML_HEADER              PART TAGS .pptxHTML_HEADER              PART TAGS .pptx
HTML_HEADER PART TAGS .pptx
HARIPRIYAV25
 
BITM3730Week1.pptx
BITM3730Week1.pptxBITM3730Week1.pptx
BITM3730Week1.pptx
MattMarino13
 
BITM3730Week1.pptx
BITM3730Week1.pptxBITM3730Week1.pptx
BITM3730Week1.pptx
MattMarino13
 
Appdev appdev appdev app devAPPDEV 1.2.pptx
Appdev appdev appdev app devAPPDEV 1.2.pptxAppdev appdev appdev app devAPPDEV 1.2.pptx
Appdev appdev appdev app devAPPDEV 1.2.pptx
ArjayBalberan1
 
Appdev appdev appdev app devAPPDEV 1.2.pptx
Appdev appdev appdev app devAPPDEV 1.2.pptxAppdev appdev appdev app devAPPDEV 1.2.pptx
Appdev appdev appdev app devAPPDEV 1.2.pptx
ArjayBalberan1
 
Web Development , HTML & CSS & JAVASCRIPT
Web Development , HTML & CSS & JAVASCRIPTWeb Development , HTML & CSS & JAVASCRIPT
Web Development , HTML & CSS & JAVASCRIPT
VENKATANAGABHUVANESH
 
Web Development , HTML & CSS & JAVASCRIPT
Web Development , HTML & CSS & JAVASCRIPTWeb Development , HTML & CSS & JAVASCRIPT
Web Development , HTML & CSS & JAVASCRIPT
VENKATANAGABHUVANESH
 
Day1-HTML-CSS some basic css and html.pdf
Day1-HTML-CSS some basic css and html.pdfDay1-HTML-CSS some basic css and html.pdf
Day1-HTML-CSS some basic css and html.pdf
enasashri12
 
Day1-HTML-CSS some basic css and html.pdf
Day1-HTML-CSS some basic css and html.pdfDay1-HTML-CSS some basic css and html.pdf
Day1-HTML-CSS some basic css and html.pdf
enasashri12
 

More from SaniyaKhan484230 (7)

solution challenge tech winter break GDG Sr Group of institution
solution challenge tech winter break GDG Sr Group of institutionsolution challenge tech winter break GDG Sr Group of institution
solution challenge tech winter break GDG Sr Group of institution
SaniyaKhan484230
 
gdg_workshop 5 on web development HTML & CSS
gdg_workshop 5 on web development HTML & CSSgdg_workshop 5 on web development HTML & CSS
gdg_workshop 5 on web development HTML & CSS
SaniyaKhan484230
 
gdg_workshop 4 on web development HTML & CSS
gdg_workshop 4 on web development HTML & CSSgdg_workshop 4 on web development HTML & CSS
gdg_workshop 4 on web development HTML & CSS
SaniyaKhan484230
 
gdg_workshop 2 on web development and github
gdg_workshop 2 on web development and githubgdg_workshop 2 on web development and github
gdg_workshop 2 on web development and github
SaniyaKhan484230
 
gdg_workshop 1 on web development and github
gdg_workshop 1 on web development and githubgdg_workshop 1 on web development and github
gdg_workshop 1 on web development and github
SaniyaKhan484230
 
CN.pdf (1).pdf codingninjas freshman induction
CN.pdf (1).pdf codingninjas freshman inductionCN.pdf (1).pdf codingninjas freshman induction
CN.pdf (1).pdf codingninjas freshman induction
SaniyaKhan484230
 
Introduction (1)[1].pptx about GDG Info session 2024
Introduction (1)[1].pptx about GDG  Info session 2024Introduction (1)[1].pptx about GDG  Info session 2024
Introduction (1)[1].pptx about GDG Info session 2024
SaniyaKhan484230
 
solution challenge tech winter break GDG Sr Group of institution
solution challenge tech winter break GDG Sr Group of institutionsolution challenge tech winter break GDG Sr Group of institution
solution challenge tech winter break GDG Sr Group of institution
SaniyaKhan484230
 
gdg_workshop 5 on web development HTML & CSS
gdg_workshop 5 on web development HTML & CSSgdg_workshop 5 on web development HTML & CSS
gdg_workshop 5 on web development HTML & CSS
SaniyaKhan484230
 
gdg_workshop 4 on web development HTML & CSS
gdg_workshop 4 on web development HTML & CSSgdg_workshop 4 on web development HTML & CSS
gdg_workshop 4 on web development HTML & CSS
SaniyaKhan484230
 
gdg_workshop 2 on web development and github
gdg_workshop 2 on web development and githubgdg_workshop 2 on web development and github
gdg_workshop 2 on web development and github
SaniyaKhan484230
 
gdg_workshop 1 on web development and github
gdg_workshop 1 on web development and githubgdg_workshop 1 on web development and github
gdg_workshop 1 on web development and github
SaniyaKhan484230
 
CN.pdf (1).pdf codingninjas freshman induction
CN.pdf (1).pdf codingninjas freshman inductionCN.pdf (1).pdf codingninjas freshman induction
CN.pdf (1).pdf codingninjas freshman induction
SaniyaKhan484230
 
Introduction (1)[1].pptx about GDG Info session 2024
Introduction (1)[1].pptx about GDG  Info session 2024Introduction (1)[1].pptx about GDG  Info session 2024
Introduction (1)[1].pptx about GDG Info session 2024
SaniyaKhan484230
 
Ad

Recently uploaded (20)

Process Parameter Optimization for Minimizing Springback in Cold Drawing Proc...
Process Parameter Optimization for Minimizing Springback in Cold Drawing Proc...Process Parameter Optimization for Minimizing Springback in Cold Drawing Proc...
Process Parameter Optimization for Minimizing Springback in Cold Drawing Proc...
Journal of Soft Computing in Civil Engineering
 
Fort night presentation new0903 pdf.pdf.
Fort night presentation new0903 pdf.pdf.Fort night presentation new0903 pdf.pdf.
Fort night presentation new0903 pdf.pdf.
anuragmk56
 
DSP and MV the Color image processing.ppt
DSP and MV the  Color image processing.pptDSP and MV the  Color image processing.ppt
DSP and MV the Color image processing.ppt
HafizAhamed8
 
15th International Conference on Computer Science, Engineering and Applicatio...
15th International Conference on Computer Science, Engineering and Applicatio...15th International Conference on Computer Science, Engineering and Applicatio...
15th International Conference on Computer Science, Engineering and Applicatio...
IJCSES Journal
 
Smart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineeringSmart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineering
rushikeshnavghare94
 
railway wheels, descaling after reheating and before forging
railway wheels, descaling after reheating and before forgingrailway wheels, descaling after reheating and before forging
railway wheels, descaling after reheating and before forging
Javad Kadkhodapour
 
Mathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdfMathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdf
TalhaShahid49
 
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITYADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ijscai
 
π0.5: a Vision-Language-Action Model with Open-World Generalization
π0.5: a Vision-Language-Action Model with Open-World Generalizationπ0.5: a Vision-Language-Action Model with Open-World Generalization
π0.5: a Vision-Language-Action Model with Open-World Generalization
NABLAS株式会社
 
ELectronics Boards & Product Testing_Shiju.pdf
ELectronics Boards & Product Testing_Shiju.pdfELectronics Boards & Product Testing_Shiju.pdf
ELectronics Boards & Product Testing_Shiju.pdf
Shiju Jacob
 
some basics electrical and electronics knowledge
some basics electrical and electronics knowledgesome basics electrical and electronics knowledge
some basics electrical and electronics knowledge
nguyentrungdo88
 
Development of MLR, ANN and ANFIS Models for Estimation of PCUs at Different ...
Development of MLR, ANN and ANFIS Models for Estimation of PCUs at Different ...Development of MLR, ANN and ANFIS Models for Estimation of PCUs at Different ...
Development of MLR, ANN and ANFIS Models for Estimation of PCUs at Different ...
Journal of Soft Computing in Civil Engineering
 
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G..."Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
Infopitaara
 
Artificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptxArtificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptx
aditichinar
 
Reagent dosing (Bredel) presentation.pptx
Reagent dosing (Bredel) presentation.pptxReagent dosing (Bredel) presentation.pptx
Reagent dosing (Bredel) presentation.pptx
AlejandroOdio
 
fluke dealers in bangalore..............
fluke dealers in bangalore..............fluke dealers in bangalore..............
fluke dealers in bangalore..............
Haresh Vaswani
 
Structural Response of Reinforced Self-Compacting Concrete Deep Beam Using Fi...
Structural Response of Reinforced Self-Compacting Concrete Deep Beam Using Fi...Structural Response of Reinforced Self-Compacting Concrete Deep Beam Using Fi...
Structural Response of Reinforced Self-Compacting Concrete Deep Beam Using Fi...
Journal of Soft Computing in Civil Engineering
 
211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf
211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf
211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf
inmishra17121973
 
Metal alkyne complexes.pptx in chemistry
Metal alkyne complexes.pptx in chemistryMetal alkyne complexes.pptx in chemistry
Metal alkyne complexes.pptx in chemistry
mee23nu
 
Data Structures_Searching and Sorting.pptx
Data Structures_Searching and Sorting.pptxData Structures_Searching and Sorting.pptx
Data Structures_Searching and Sorting.pptx
RushaliDeshmukh2
 
Fort night presentation new0903 pdf.pdf.
Fort night presentation new0903 pdf.pdf.Fort night presentation new0903 pdf.pdf.
Fort night presentation new0903 pdf.pdf.
anuragmk56
 
DSP and MV the Color image processing.ppt
DSP and MV the  Color image processing.pptDSP and MV the  Color image processing.ppt
DSP and MV the Color image processing.ppt
HafizAhamed8
 
15th International Conference on Computer Science, Engineering and Applicatio...
15th International Conference on Computer Science, Engineering and Applicatio...15th International Conference on Computer Science, Engineering and Applicatio...
15th International Conference on Computer Science, Engineering and Applicatio...
IJCSES Journal
 
Smart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineeringSmart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineering
rushikeshnavghare94
 
railway wheels, descaling after reheating and before forging
railway wheels, descaling after reheating and before forgingrailway wheels, descaling after reheating and before forging
railway wheels, descaling after reheating and before forging
Javad Kadkhodapour
 
Mathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdfMathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdf
TalhaShahid49
 
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITYADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ijscai
 
π0.5: a Vision-Language-Action Model with Open-World Generalization
π0.5: a Vision-Language-Action Model with Open-World Generalizationπ0.5: a Vision-Language-Action Model with Open-World Generalization
π0.5: a Vision-Language-Action Model with Open-World Generalization
NABLAS株式会社
 
ELectronics Boards & Product Testing_Shiju.pdf
ELectronics Boards & Product Testing_Shiju.pdfELectronics Boards & Product Testing_Shiju.pdf
ELectronics Boards & Product Testing_Shiju.pdf
Shiju Jacob
 
some basics electrical and electronics knowledge
some basics electrical and electronics knowledgesome basics electrical and electronics knowledge
some basics electrical and electronics knowledge
nguyentrungdo88
 
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G..."Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
Infopitaara
 
Artificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptxArtificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptx
aditichinar
 
Reagent dosing (Bredel) presentation.pptx
Reagent dosing (Bredel) presentation.pptxReagent dosing (Bredel) presentation.pptx
Reagent dosing (Bredel) presentation.pptx
AlejandroOdio
 
fluke dealers in bangalore..............
fluke dealers in bangalore..............fluke dealers in bangalore..............
fluke dealers in bangalore..............
Haresh Vaswani
 
211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf
211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf
211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf
inmishra17121973
 
Metal alkyne complexes.pptx in chemistry
Metal alkyne complexes.pptx in chemistryMetal alkyne complexes.pptx in chemistry
Metal alkyne complexes.pptx in chemistry
mee23nu
 
Data Structures_Searching and Sorting.pptx
Data Structures_Searching and Sorting.pptxData Structures_Searching and Sorting.pptx
Data Structures_Searching and Sorting.pptx
RushaliDeshmukh2
 
Ad

gdg_workshop 3 on web development HTML & CSS

  • 1. HTML: Building the Web Learn the foundation of web development Organised by: GDG-SRGI & Coding Club
  • 2. Harsh Agarwal Speaker (Web Dev Lead) Er. Aman Saluja Faculty Advisor
  • 3. Session 2 • Introduction to web dev • Basics of HTML
  • 4. What We’ll Cover Today: • Doubts and Practicle of code. • Basic to HTML
  • 5. What is HTML? • HTML stands for HyperText Markup Language. It is the standard language used to create and design web pages. • HyperText refers to the system of linking documents and resources. • Markup Language refers to the tags used to define the structure and elements of a webpage (e.g., headings, paragraphs, images). • HTML acts as the backbone of any website, providing its basic structure, which is styled and made interactive using CSS and JavaScript. Introduction to HTML
  • 6. HTML's role in creating web pages • Foundation of the Web • Defines Content Structure • Integrates with Other Technologies • Ease of Learning
  • 7. Structure of an HTML Document • The structure of HTML refers to the organized layout of an HTML document, consisting of essential elements like <!DOCTYPE html>, <html>, <head> (for metadata), and <body>. • This structure defines how content is organized and displayed on a webpage.
  • 8. Structure of an HTML Document
  • 9. Types of Tags in HTML 1. Opening Tag: Indicates the start of an HTML element. Example <p>. 2. Closing Tag: Indicates the end of an HTML element. 3. Self-Closing Tags: Some tags do not require a closing tag because they do not enclose content.
  • 10. Tags in HTML <!DOCTYPE html>: Declares the document type and version of HTML (HTML5) to the browser for proper rendering. <html>: Represents the root element of an HTML document that contains all other elements. <meta> (Metadata): Defines metadata for the document (inside <head>), often used for SEO and character encoding. <head>: Contains meta-information about the document, such as title, character encoding, and linked resources like CSS. <body>: Represents the content of the document, including text, images, and other elements that are visible to the user.
  • 11. Tags in HTML <h1> to <h6> (Headings): Used for creating headings of different levels. <h1> is the most important heading, and <h6> is the least important.
  • 12. Tags in HTML <p> (Paragraph): The <p> tag is used to group text into paragraphs.
  • 13. Tags in HTML <div> (Division): A container used to group content for styling or structure.
  • 14. Tags in HTML <br>: Inserts a line break, forcing content to the next line.
  • 15. Tags in HTML <hr>: Creates a horizontal rule (line) to separate content.
  • 16. Tags in HTML <b> (Bold): Makes text bold.
  • 17. Tags in HTML <i>(Italics): Makes text italic.
  • 18. Tags in HTML <img> (Image): Embeds an image in the webpage.
  • 19. Tags in HTML <a> (Anchor Link): Used to create hyperlinks (links to other webpages, locations on the same page, or external resources).
  • 20. Tags in HTML Lists: There are two types tags in list: 1. <ul> (Unordered List): Creates an unordered (bulleted) list.
  • 21. Tags in HTML 2. <ol> (Ordered List): Creates an ordered (numbered) list. within text, moving content to the next line.
  • 22. Tags in HTML <table> (Table): Defines a table for displaying tabular data. A table is made up of: • <table> • <tr> (table row) • <th> (table header) • <td> (table data)
  • 23. Tags in HTML 1. <tr> (Table Row): Defines a row in a table, containing one or more <td> or <th> elements. 2. <th> (Table Header): Represents a header cell in a table, typically bold and centered, used for column or row titles. 3. <td> (Table Data): Represents a standard data cell in a table, where actual content is placed within rows.
  • 25. Tags in HTML 2. <audio> (Audio): Embeds an audio file in the webpage.
  • 26. Tags in HTML 2. <video> (Video): Embeds a video on the webpage.
  • 27. Tags in HTML <iframe> : It is used to embed another HTML document within the current document.
  • 28. Tags in HTML <form>: It is used to create a section for collecting user input and sending it to a server for processing. <input>: Input tag is a versatile HTML element used to create various types of form controls, allowing users to enter data.
  • 29. Comments in HTML • Comments in HTML are used to add notes or explanations within the code that are not displayed on the webpage. • They help developers understand or document the code but are ignored by the browser. • Comments are written between <!-- and -->.
  • 30. Attributes in HTML • HTML attributes provide additional information about HTML elements, controlling their behavior, appearance, or functionality. • They are always specified in the opening tag and are written as name- value pairs.
  • 31. Attributes in HTML • id: Specifies a unique identifier for an element • class: Assigns one or more class names to an element, typically for CSS styling. • placeholder: Displays a short hint inside form input fields. • value: Specifies the value of a form element. • href: Defines the URL of a linked resource. • src: Specifies the source URL for media elements like images, videos, or audio. • alt: Provides alternative text for images, used if the image can't be displayed.