SlideShare a Scribd company logo
HTML (HYPERTEXT MARKUP LANGUAGE)
INTRODUCTION TO HTML
• What is HTML?
• HTML is the language used to create the websites you visit everyday.
It provides a logical way to structure content for websites.
• Let's analyze the acronym "HTML," as it contains a lot of useful
information. HTML stands for HyperText Markup Language.
• A markup language is a computer language that defines the structure
and presentation of raw text. Markup languages work by surrounding
raw text with information the computer can interpret, "marking it up"
to be processed.
!DOCTYPE
• Whether you realize it or not, when you read text, your brain must
first identify the text's language. If you can understand that
language, then your brain immediately begins to interpret the text.
This same process happens whether you're reading a street sign, a
book, or a name tag.
• Web browsers work in a similar way. They must know what language
a document is written in before they can process its contents.
• You can let web browsers know that you are using HTML by starting
your document with a document type declaration.
• The declaration looks like this: <!DOCTYPE html>
• This declaration is an instruction. It tells the browser what type of document
to expect, along with what version of HTML is being used in the document.
• <!DOCTYPE html> must be the first line of code in all of your HTML
documents. If you don't use the declaration, your HTML code will likely still
work, however, it's risky. For now, the browser will correctly assume that the
HTML in <!DOCTYPE html> is referring to HTML 5 as it is the current
standard.
• To make sure your document is forever interpreted correctly, always include
• <!DOCTYPE html> at the very beginning of your HTML documents.
• The <!DOCTYPE html> declaration is only the beginning, however. It
indicates to the browser that you will use HTML in the document, but
it doesn't actually add any HTML structure or content.
• To create HTML structure and content, we must add opening and
closing <html> tags, like so:
• Anything between the opening <html> and closing </html> tags will
be interpreted as HTML code. Without these tags, it's possible that
browsers could incorrectly interpret your HTML code.
Html (hypertext markup language)
• HTML Anatomy
• Before we move forward, it's important that we discuss how HTML elements are
structured.
• In this example, the paragraph element is made up of one opening tag <p> , the
“Hello world!” text, and a closing tag </p>
• Let's quickly review each part of the tag pictured:
• HTML Tag - The element name, surrounded by an opening (<) and closing (>)
angle bracket.
• HTML element (or simply, element) - a unit of content in an HTML document
formed by HTML tags and the text or media it contains.
• Opening tag - the first HTML tag used to start an HTML element. The tag type is
surrounded by opening and closing angle brackets.
• Element content - The information (text or other elements) contained between
the opening and closing tags of an HTML element.
• Closing tag - the second HTML tag used to end an HTML element. Closing tags
have a forward slash (/) inside of them, directly after the left angle bracket.
• Most elements require both opening and closing tags, but some call for a single
THE HEAD
• So far we've done two things:
• Declared to the browser that your code is HTML.
• Added the HTML element <html> that will contain the rest of
your code.
• Let's also give the browser some information about the page.
We can do this by adding a <head> Element.
• element contains the metadata for a web page. Metadata is
information about the page that isn't displayed directly on the
web page. You'll see an example of this in the next exercise.
• The opening and closing head tags <head></head> typically
appear as the first item after your first HTML tag.
PAGE TITLES
• What kind of metadata about the web page can the <head>
element contain?
• The browser displays the title of the page because the title can
be specified directly inside of the <head> element, by using
a title tag.
• If we were to open a file containing the HTML code in the
example above, the browser would display the words “my first
webpage” in the title bar (or in the tab's title).
THE BODY
• We've added some HTML, but still haven't seen any results in
the web browser to the right. Why is that?
• Before we can add content that a browser will display, we have
to add a body to the HTML file. Only content inside the opening
and closing body tags can be displayed to the screen.
• Once the file has a body, many different types of content –
including text, images, and buttons – can be added to the
body.
SELF-CLOSING TAG
• Thus far we have only seen HTML elements with an opening and a
closing tag. A few types of elements, however, require only one tag.
• Self-closing elements contain all the information the browser needs
to render the element inside a single tag. Also, because they are
single tags, they cannot wrap around raw text or other elements.
• The line break element <br /> is one example of a self-closing tag.
You can use it anywhere within your HTML code. The result is a line
break in the browser.
• Without the break tag, the browser would render line one and line
two on the same line.
HTML STRUCTURE
• HTML documents are organized as a collection of parent-child
relationships. When an element is contained inside another
element, it is considered the child of that element. The child
element is said to be nested inside of the parent element.
Ad

More Related Content

What's hot (20)

Html
HtmlHtml
Html
Abhishek Kesharwani
 
The Difference between HTML, XHTML & HTML5 for Beginners
The Difference between HTML, XHTML & HTML5 for BeginnersThe Difference between HTML, XHTML & HTML5 for Beginners
The Difference between HTML, XHTML & HTML5 for Beginners
Rasin Bekkevold
 
Html presantation
Html presantationHtml presantation
Html presantation
Adityaroy110
 
HTML- Hyper Text Markup Language
HTML- Hyper Text Markup LanguageHTML- Hyper Text Markup Language
HTML- Hyper Text Markup Language
Trinity Dwarka
 
Html Tutorial
Html Tutorial Html Tutorial
Html Tutorial
DenMas Hengky
 
Learn html from www
Learn html from wwwLearn html from www
Learn html from www
alvinblue1212
 
Introduction to html fundamental concepts
Introduction to html fundamental conceptsIntroduction to html fundamental concepts
Introduction to html fundamental concepts
Tsebo Shaun Masilo
 
Html Tutorial
Html TutorialHtml Tutorial
Html Tutorial
Md. Muhibbullah Muhib
 
How the Web Works Using HTML
How the Web Works Using HTMLHow the Web Works Using HTML
How the Web Works Using HTML
Marlon Jamera
 
An Introduction to HTML
An Introduction to HTMLAn Introduction to HTML
An Introduction to HTML
crea8ivemoiz
 
Html basics
Html basicsHtml basics
Html basics
Vjay Vijju
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
yht4ever
 
HTML5 Topic 1
HTML5 Topic 1HTML5 Topic 1
HTML5 Topic 1
Juvywen
 
HTML Introduction
HTML IntroductionHTML Introduction
HTML Introduction
c525600
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
FLYMAN TECHNOLOGY LIMITED
 
Html - Tutorial
Html - TutorialHtml - Tutorial
Html - Tutorial
adelaticleanu
 
Summary of-xhtml-basics
Summary of-xhtml-basicsSummary of-xhtml-basics
Summary of-xhtml-basics
starlanter
 
1 introduction to html
1 introduction to html1 introduction to html
1 introduction to html
myrajendra
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
MayaLisa
 
A109 base code html
A109 base code   htmlA109 base code   html
A109 base code html
Kpc E-Learning
 
The Difference between HTML, XHTML & HTML5 for Beginners
The Difference between HTML, XHTML & HTML5 for BeginnersThe Difference between HTML, XHTML & HTML5 for Beginners
The Difference between HTML, XHTML & HTML5 for Beginners
Rasin Bekkevold
 
HTML- Hyper Text Markup Language
HTML- Hyper Text Markup LanguageHTML- Hyper Text Markup Language
HTML- Hyper Text Markup Language
Trinity Dwarka
 
Introduction to html fundamental concepts
Introduction to html fundamental conceptsIntroduction to html fundamental concepts
Introduction to html fundamental concepts
Tsebo Shaun Masilo
 
How the Web Works Using HTML
How the Web Works Using HTMLHow the Web Works Using HTML
How the Web Works Using HTML
Marlon Jamera
 
An Introduction to HTML
An Introduction to HTMLAn Introduction to HTML
An Introduction to HTML
crea8ivemoiz
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
yht4ever
 
HTML5 Topic 1
HTML5 Topic 1HTML5 Topic 1
HTML5 Topic 1
Juvywen
 
HTML Introduction
HTML IntroductionHTML Introduction
HTML Introduction
c525600
 
Summary of-xhtml-basics
Summary of-xhtml-basicsSummary of-xhtml-basics
Summary of-xhtml-basics
starlanter
 
1 introduction to html
1 introduction to html1 introduction to html
1 introduction to html
myrajendra
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
MayaLisa
 

Similar to Html (hypertext markup language) (20)

Class1slides
Class1slidesClass1slides
Class1slides
Alexis Goldstein
 
HYPER TEXT MARKUP LANGUAGE BASIC LESSONS
HYPER TEXT MARKUP LANGUAGE BASIC LESSONSHYPER TEXT MARKUP LANGUAGE BASIC LESSONS
HYPER TEXT MARKUP LANGUAGE BASIC LESSONS
divyajohnisg
 
Let me design
Let me designLet me design
Let me design
Anurag Deb
 
Introduction to HTML for my Special Class
Introduction to HTML for my Special ClassIntroduction to HTML for my Special Class
Introduction to HTML for my Special Class
300179
 
Grade 7_HTML.pptx
Grade 7_HTML.pptxGrade 7_HTML.pptx
Grade 7_HTML.pptx
shilpak0307
 
1. html introduction
1. html introduction1. html introduction
1. html introduction
Muhammad Toqeer
 
Web design - HTML (Hypertext Markup Language) introduction
Web design - HTML (Hypertext Markup Language) introductionWeb design - HTML (Hypertext Markup Language) introduction
Web design - HTML (Hypertext Markup Language) introduction
Mustafa Kamel Mohammadi
 
HTML course.ppt
HTML course.pptHTML course.ppt
HTML course.ppt
RyanTeo35
 
Computer fundamentals-internet p2
Computer fundamentals-internet p2Computer fundamentals-internet p2
Computer fundamentals-internet p2
Leo Mark Villar
 
Web forms and html (lect 1)
Web forms and html (lect 1)Web forms and html (lect 1)
Web forms and html (lect 1)
Salman Memon
 
2. HTML Basic unit2 fundamentals of computer
2. HTML Basic    unit2 fundamentals of computer2. HTML Basic    unit2 fundamentals of computer
2. HTML Basic unit2 fundamentals of computer
travelwithlifezindgi
 
Html
HtmlHtml
Html
Suneel Dogra
 
html (1) (1).pptx for all students to learn
html (1) (1).pptx for all students to learnhtml (1) (1).pptx for all students to learn
html (1) (1).pptx for all students to learn
aveshgopalJonnadula
 
html.pptx class notes to prepare html completly
html.pptx class notes to prepare html  completlyhtml.pptx class notes to prepare html  completly
html.pptx class notes to prepare html completly
mamathapragada
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
Hassan Nasir
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
Vinay Vinnu
 
"Innovative Web Design & Development Hub
"Innovative Web Design & Development Hub"Innovative Web Design & Development Hub
"Innovative Web Design & Development Hub
kyereernest560
 
introdution-to-html.ppt coding programming
introdution-to-html.ppt coding programmingintrodution-to-html.ppt coding programming
introdution-to-html.ppt coding programming
programizconsultancy
 
Html5.pptx
Html5.pptxHtml5.pptx
Html5.pptx
dharajagad
 
COMPUTER FUNDAMENTAL LAB REPORT FOR 1ST SEM
COMPUTER FUNDAMENTAL LAB REPORT FOR 1ST SEMCOMPUTER FUNDAMENTAL LAB REPORT FOR 1ST SEM
COMPUTER FUNDAMENTAL LAB REPORT FOR 1ST SEM
engrkarimullah5806
 
HYPER TEXT MARKUP LANGUAGE BASIC LESSONS
HYPER TEXT MARKUP LANGUAGE BASIC LESSONSHYPER TEXT MARKUP LANGUAGE BASIC LESSONS
HYPER TEXT MARKUP LANGUAGE BASIC LESSONS
divyajohnisg
 
Introduction to HTML for my Special Class
Introduction to HTML for my Special ClassIntroduction to HTML for my Special Class
Introduction to HTML for my Special Class
300179
 
Grade 7_HTML.pptx
Grade 7_HTML.pptxGrade 7_HTML.pptx
Grade 7_HTML.pptx
shilpak0307
 
Web design - HTML (Hypertext Markup Language) introduction
Web design - HTML (Hypertext Markup Language) introductionWeb design - HTML (Hypertext Markup Language) introduction
Web design - HTML (Hypertext Markup Language) introduction
Mustafa Kamel Mohammadi
 
HTML course.ppt
HTML course.pptHTML course.ppt
HTML course.ppt
RyanTeo35
 
Computer fundamentals-internet p2
Computer fundamentals-internet p2Computer fundamentals-internet p2
Computer fundamentals-internet p2
Leo Mark Villar
 
Web forms and html (lect 1)
Web forms and html (lect 1)Web forms and html (lect 1)
Web forms and html (lect 1)
Salman Memon
 
2. HTML Basic unit2 fundamentals of computer
2. HTML Basic    unit2 fundamentals of computer2. HTML Basic    unit2 fundamentals of computer
2. HTML Basic unit2 fundamentals of computer
travelwithlifezindgi
 
html (1) (1).pptx for all students to learn
html (1) (1).pptx for all students to learnhtml (1) (1).pptx for all students to learn
html (1) (1).pptx for all students to learn
aveshgopalJonnadula
 
html.pptx class notes to prepare html completly
html.pptx class notes to prepare html  completlyhtml.pptx class notes to prepare html  completly
html.pptx class notes to prepare html completly
mamathapragada
 
"Innovative Web Design & Development Hub
"Innovative Web Design & Development Hub"Innovative Web Design & Development Hub
"Innovative Web Design & Development Hub
kyereernest560
 
introdution-to-html.ppt coding programming
introdution-to-html.ppt coding programmingintrodution-to-html.ppt coding programming
introdution-to-html.ppt coding programming
programizconsultancy
 
COMPUTER FUNDAMENTAL LAB REPORT FOR 1ST SEM
COMPUTER FUNDAMENTAL LAB REPORT FOR 1ST SEMCOMPUTER FUNDAMENTAL LAB REPORT FOR 1ST SEM
COMPUTER FUNDAMENTAL LAB REPORT FOR 1ST SEM
engrkarimullah5806
 
Ad

Recently uploaded (20)

Lecture 4 INSECT CUTICLE and moulting.pptx
Lecture 4 INSECT CUTICLE and moulting.pptxLecture 4 INSECT CUTICLE and moulting.pptx
Lecture 4 INSECT CUTICLE and moulting.pptx
Arshad Shaikh
 
Cultivation Practice of Garlic in Nepal.pptx
Cultivation Practice of Garlic in Nepal.pptxCultivation Practice of Garlic in Nepal.pptx
Cultivation Practice of Garlic in Nepal.pptx
UmeshTimilsina1
 
Computer crime and Legal issues Computer crime and Legal issues
Computer crime and Legal issues Computer crime and Legal issuesComputer crime and Legal issues Computer crime and Legal issues
Computer crime and Legal issues Computer crime and Legal issues
Abhijit Bodhe
 
spinal cord disorders (Myelopathies and radiculoapthies)
spinal cord disorders (Myelopathies and radiculoapthies)spinal cord disorders (Myelopathies and radiculoapthies)
spinal cord disorders (Myelopathies and radiculoapthies)
Mohamed Rizk Khodair
 
How to Create A Todo List In Todo of Odoo 18
How to Create A Todo List In Todo of Odoo 18How to Create A Todo List In Todo of Odoo 18
How to Create A Todo List In Todo of Odoo 18
Celine George
 
ANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptx
ANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptxANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptx
ANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptx
Mayuri Chavan
 
Ancient Stone Sculptures of India: As a Source of Indian History
Ancient Stone Sculptures of India: As a Source of Indian HistoryAncient Stone Sculptures of India: As a Source of Indian History
Ancient Stone Sculptures of India: As a Source of Indian History
Virag Sontakke
 
MEDICAL BIOLOGY MCQS BY. DR NASIR MUSTAFA
MEDICAL BIOLOGY MCQS  BY. DR NASIR MUSTAFAMEDICAL BIOLOGY MCQS  BY. DR NASIR MUSTAFA
MEDICAL BIOLOGY MCQS BY. DR NASIR MUSTAFA
Dr. Nasir Mustafa
 
Drugs in Anaesthesia and Intensive Care,.pdf
Drugs in Anaesthesia and Intensive Care,.pdfDrugs in Anaesthesia and Intensive Care,.pdf
Drugs in Anaesthesia and Intensive Care,.pdf
crewot855
 
Bridging the Transit Gap: Equity Drive Feeder Bus Design for Southeast Brooklyn
Bridging the Transit Gap: Equity Drive Feeder Bus Design for Southeast BrooklynBridging the Transit Gap: Equity Drive Feeder Bus Design for Southeast Brooklyn
Bridging the Transit Gap: Equity Drive Feeder Bus Design for Southeast Brooklyn
i4jd41bk
 
APGAR SCORE BY sweety Tamanna Mahapatra MSc Pediatric
APGAR SCORE  BY sweety Tamanna Mahapatra MSc PediatricAPGAR SCORE  BY sweety Tamanna Mahapatra MSc Pediatric
APGAR SCORE BY sweety Tamanna Mahapatra MSc Pediatric
SweetytamannaMohapat
 
Kenan Fellows Participants, Projects 2025-26 Cohort
Kenan Fellows Participants, Projects 2025-26 CohortKenan Fellows Participants, Projects 2025-26 Cohort
Kenan Fellows Participants, Projects 2025-26 Cohort
EducationNC
 
How to Create Kanban View in Odoo 18 - Odoo Slides
How to Create Kanban View in Odoo 18 - Odoo SlidesHow to Create Kanban View in Odoo 18 - Odoo Slides
How to Create Kanban View in Odoo 18 - Odoo Slides
Celine George
 
Lecture 1 Introduction history and institutes of entomology_1.pptx
Lecture 1 Introduction history and institutes of entomology_1.pptxLecture 1 Introduction history and institutes of entomology_1.pptx
Lecture 1 Introduction history and institutes of entomology_1.pptx
Arshad Shaikh
 
Chemotherapy of Malignancy -Anticancer.pptx
Chemotherapy of Malignancy -Anticancer.pptxChemotherapy of Malignancy -Anticancer.pptx
Chemotherapy of Malignancy -Anticancer.pptx
Mayuri Chavan
 
Herbs Used in Cosmetic Formulations .pptx
Herbs Used in Cosmetic Formulations .pptxHerbs Used in Cosmetic Formulations .pptx
Herbs Used in Cosmetic Formulations .pptx
RAJU THENGE
 
TERMINOLOGIES,GRIEF PROCESS AND LOSS AMD ITS TYPES .pptx
TERMINOLOGIES,GRIEF PROCESS AND LOSS AMD ITS TYPES .pptxTERMINOLOGIES,GRIEF PROCESS AND LOSS AMD ITS TYPES .pptx
TERMINOLOGIES,GRIEF PROCESS AND LOSS AMD ITS TYPES .pptx
PoojaSen20
 
Rock Art As a Source of Ancient Indian History
Rock Art As a Source of Ancient Indian HistoryRock Art As a Source of Ancient Indian History
Rock Art As a Source of Ancient Indian History
Virag Sontakke
 
Tax evasion, Tax planning & Tax avoidance.pptx
Tax evasion, Tax  planning &  Tax avoidance.pptxTax evasion, Tax  planning &  Tax avoidance.pptx
Tax evasion, Tax planning & Tax avoidance.pptx
manishbaidya2017
 
Lecture 4 INSECT CUTICLE and moulting.pptx
Lecture 4 INSECT CUTICLE and moulting.pptxLecture 4 INSECT CUTICLE and moulting.pptx
Lecture 4 INSECT CUTICLE and moulting.pptx
Arshad Shaikh
 
Cultivation Practice of Garlic in Nepal.pptx
Cultivation Practice of Garlic in Nepal.pptxCultivation Practice of Garlic in Nepal.pptx
Cultivation Practice of Garlic in Nepal.pptx
UmeshTimilsina1
 
Computer crime and Legal issues Computer crime and Legal issues
Computer crime and Legal issues Computer crime and Legal issuesComputer crime and Legal issues Computer crime and Legal issues
Computer crime and Legal issues Computer crime and Legal issues
Abhijit Bodhe
 
spinal cord disorders (Myelopathies and radiculoapthies)
spinal cord disorders (Myelopathies and radiculoapthies)spinal cord disorders (Myelopathies and radiculoapthies)
spinal cord disorders (Myelopathies and radiculoapthies)
Mohamed Rizk Khodair
 
How to Create A Todo List In Todo of Odoo 18
How to Create A Todo List In Todo of Odoo 18How to Create A Todo List In Todo of Odoo 18
How to Create A Todo List In Todo of Odoo 18
Celine George
 
ANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptx
ANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptxANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptx
ANTI-VIRAL DRUGS unit 3 Pharmacology 3.pptx
Mayuri Chavan
 
Ancient Stone Sculptures of India: As a Source of Indian History
Ancient Stone Sculptures of India: As a Source of Indian HistoryAncient Stone Sculptures of India: As a Source of Indian History
Ancient Stone Sculptures of India: As a Source of Indian History
Virag Sontakke
 
MEDICAL BIOLOGY MCQS BY. DR NASIR MUSTAFA
MEDICAL BIOLOGY MCQS  BY. DR NASIR MUSTAFAMEDICAL BIOLOGY MCQS  BY. DR NASIR MUSTAFA
MEDICAL BIOLOGY MCQS BY. DR NASIR MUSTAFA
Dr. Nasir Mustafa
 
Drugs in Anaesthesia and Intensive Care,.pdf
Drugs in Anaesthesia and Intensive Care,.pdfDrugs in Anaesthesia and Intensive Care,.pdf
Drugs in Anaesthesia and Intensive Care,.pdf
crewot855
 
Bridging the Transit Gap: Equity Drive Feeder Bus Design for Southeast Brooklyn
Bridging the Transit Gap: Equity Drive Feeder Bus Design for Southeast BrooklynBridging the Transit Gap: Equity Drive Feeder Bus Design for Southeast Brooklyn
Bridging the Transit Gap: Equity Drive Feeder Bus Design for Southeast Brooklyn
i4jd41bk
 
APGAR SCORE BY sweety Tamanna Mahapatra MSc Pediatric
APGAR SCORE  BY sweety Tamanna Mahapatra MSc PediatricAPGAR SCORE  BY sweety Tamanna Mahapatra MSc Pediatric
APGAR SCORE BY sweety Tamanna Mahapatra MSc Pediatric
SweetytamannaMohapat
 
Kenan Fellows Participants, Projects 2025-26 Cohort
Kenan Fellows Participants, Projects 2025-26 CohortKenan Fellows Participants, Projects 2025-26 Cohort
Kenan Fellows Participants, Projects 2025-26 Cohort
EducationNC
 
How to Create Kanban View in Odoo 18 - Odoo Slides
How to Create Kanban View in Odoo 18 - Odoo SlidesHow to Create Kanban View in Odoo 18 - Odoo Slides
How to Create Kanban View in Odoo 18 - Odoo Slides
Celine George
 
Lecture 1 Introduction history and institutes of entomology_1.pptx
Lecture 1 Introduction history and institutes of entomology_1.pptxLecture 1 Introduction history and institutes of entomology_1.pptx
Lecture 1 Introduction history and institutes of entomology_1.pptx
Arshad Shaikh
 
Chemotherapy of Malignancy -Anticancer.pptx
Chemotherapy of Malignancy -Anticancer.pptxChemotherapy of Malignancy -Anticancer.pptx
Chemotherapy of Malignancy -Anticancer.pptx
Mayuri Chavan
 
Herbs Used in Cosmetic Formulations .pptx
Herbs Used in Cosmetic Formulations .pptxHerbs Used in Cosmetic Formulations .pptx
Herbs Used in Cosmetic Formulations .pptx
RAJU THENGE
 
TERMINOLOGIES,GRIEF PROCESS AND LOSS AMD ITS TYPES .pptx
TERMINOLOGIES,GRIEF PROCESS AND LOSS AMD ITS TYPES .pptxTERMINOLOGIES,GRIEF PROCESS AND LOSS AMD ITS TYPES .pptx
TERMINOLOGIES,GRIEF PROCESS AND LOSS AMD ITS TYPES .pptx
PoojaSen20
 
Rock Art As a Source of Ancient Indian History
Rock Art As a Source of Ancient Indian HistoryRock Art As a Source of Ancient Indian History
Rock Art As a Source of Ancient Indian History
Virag Sontakke
 
Tax evasion, Tax planning & Tax avoidance.pptx
Tax evasion, Tax  planning &  Tax avoidance.pptxTax evasion, Tax  planning &  Tax avoidance.pptx
Tax evasion, Tax planning & Tax avoidance.pptx
manishbaidya2017
 
Ad

Html (hypertext markup language)

  • 2. INTRODUCTION TO HTML • What is HTML? • HTML is the language used to create the websites you visit everyday. It provides a logical way to structure content for websites. • Let's analyze the acronym "HTML," as it contains a lot of useful information. HTML stands for HyperText Markup Language. • A markup language is a computer language that defines the structure and presentation of raw text. Markup languages work by surrounding raw text with information the computer can interpret, "marking it up" to be processed.
  • 3. !DOCTYPE • Whether you realize it or not, when you read text, your brain must first identify the text's language. If you can understand that language, then your brain immediately begins to interpret the text. This same process happens whether you're reading a street sign, a book, or a name tag. • Web browsers work in a similar way. They must know what language a document is written in before they can process its contents. • You can let web browsers know that you are using HTML by starting your document with a document type declaration.
  • 4. • The declaration looks like this: <!DOCTYPE html> • This declaration is an instruction. It tells the browser what type of document to expect, along with what version of HTML is being used in the document. • <!DOCTYPE html> must be the first line of code in all of your HTML documents. If you don't use the declaration, your HTML code will likely still work, however, it's risky. For now, the browser will correctly assume that the HTML in <!DOCTYPE html> is referring to HTML 5 as it is the current standard. • To make sure your document is forever interpreted correctly, always include • <!DOCTYPE html> at the very beginning of your HTML documents.
  • 5. • The <!DOCTYPE html> declaration is only the beginning, however. It indicates to the browser that you will use HTML in the document, but it doesn't actually add any HTML structure or content. • To create HTML structure and content, we must add opening and closing <html> tags, like so: • Anything between the opening <html> and closing </html> tags will be interpreted as HTML code. Without these tags, it's possible that browsers could incorrectly interpret your HTML code.
  • 7. • HTML Anatomy • Before we move forward, it's important that we discuss how HTML elements are structured. • In this example, the paragraph element is made up of one opening tag <p> , the “Hello world!” text, and a closing tag </p> • Let's quickly review each part of the tag pictured: • HTML Tag - The element name, surrounded by an opening (<) and closing (>) angle bracket. • HTML element (or simply, element) - a unit of content in an HTML document formed by HTML tags and the text or media it contains. • Opening tag - the first HTML tag used to start an HTML element. The tag type is surrounded by opening and closing angle brackets. • Element content - The information (text or other elements) contained between the opening and closing tags of an HTML element. • Closing tag - the second HTML tag used to end an HTML element. Closing tags have a forward slash (/) inside of them, directly after the left angle bracket. • Most elements require both opening and closing tags, but some call for a single
  • 8. THE HEAD • So far we've done two things: • Declared to the browser that your code is HTML. • Added the HTML element <html> that will contain the rest of your code. • Let's also give the browser some information about the page. We can do this by adding a <head> Element.
  • 9. • element contains the metadata for a web page. Metadata is information about the page that isn't displayed directly on the web page. You'll see an example of this in the next exercise. • The opening and closing head tags <head></head> typically appear as the first item after your first HTML tag.
  • 10. PAGE TITLES • What kind of metadata about the web page can the <head> element contain? • The browser displays the title of the page because the title can be specified directly inside of the <head> element, by using a title tag. • If we were to open a file containing the HTML code in the example above, the browser would display the words “my first webpage” in the title bar (or in the tab's title).
  • 11. THE BODY • We've added some HTML, but still haven't seen any results in the web browser to the right. Why is that? • Before we can add content that a browser will display, we have to add a body to the HTML file. Only content inside the opening and closing body tags can be displayed to the screen. • Once the file has a body, many different types of content – including text, images, and buttons – can be added to the body.
  • 12. SELF-CLOSING TAG • Thus far we have only seen HTML elements with an opening and a closing tag. A few types of elements, however, require only one tag. • Self-closing elements contain all the information the browser needs to render the element inside a single tag. Also, because they are single tags, they cannot wrap around raw text or other elements. • The line break element <br /> is one example of a self-closing tag. You can use it anywhere within your HTML code. The result is a line break in the browser. • Without the break tag, the browser would render line one and line two on the same line.
  • 13. HTML STRUCTURE • HTML documents are organized as a collection of parent-child relationships. When an element is contained inside another element, it is considered the child of that element. The child element is said to be nested inside of the parent element.
  翻译: