SlideShare a Scribd company logo
1 of 64
What is HTML?
HTML
Hypertext
Markup
Technologies that drive the web
Examples
• …Lecture01structure-only-before.html
• …Lecture01structure-only-after.html
History
WHATWG
• WHATWG is in charge of continuously
shaping HTML and web technologies
• HTML 5-> HTML Living Standard
• Evergreen browsers silently and automatically
update themselves to the latest and greatest
version (all major browsers do that)
Some Links
• https://www.w3.org/TR/html5/
• https://validator.w3.org/
• https://www.w3schools.com/browsers/
• https://caniuse.com/
GEÇERLİ (VALID) ÖRNEK BİR HTML
DOSYASI
W3C VALIDATOR SONUCU
GEÇERSİZ (INVALID) ÖRNEK
BİR HTML DOSYASI
W3C VALIDATOR SONUCU
The doctype Declaration
HTML
• Each HTML document should start with the simple doctype declaration
• Leaving out the doctype declaration causes the browser to treat the HTML code in quirks
mode, which breaks standard behavior
• The <html> tag is the root of the document that contains all other tags
• The <head> tag contains the metadata about the document
• The only required metadata element is the title element
• The <body> tag (or viewport) is the root of all content visible to the user
• Use an HTML validator recommended by WHATWG to make sure the HTML code is valid
HTML Tags
Examples
• …Lecture04doc-structure-before.html
• …Lecture04doc-structure-after.html
Block Level & Inlıne Element
Örnekleri
• <div> block level element (Roughly Flow Content (HTML5
category))
+ Her blok level element kendi satırında yer alır
+ Tüm block level element’ler gibi kendinden önce gelen html
tag’inin üst satırda, kendinden sonra gelen html tag’inin de alt
satırda olmasını garanti eder
• <span> inline element (Roughly Phrasing Content (HTML5 category))
+ Yeni satır eklemeden, kalınan satırdan devam eder. Kendinden sonra
yeni satır eklemez.
• /Lecture05/
Content Model İçin Örnek HTML
Dosyası
Örnek HTML Dosyasının
Görüntülenmesi
<Div> <Span>
• <Div> can contain other <div> or <span>
• <span> cannot contain <div>
Hatalı Content Sonucu
HTML5 Content Kategorileri
+ HTML5 tarafından belirlenen 7 content kategorisi
+ https://www.w3.org/TR/html5/dom.html#kinds-of-content
HTML5 semantic elements
• se·man·tic
+ Relating to meaning in language or logic
Semantic html element
• Element that implies some meaning to the content
• Human and/or machine can understand meaning of
content surrounded by a semantic element better
• May help search engine ranking, i.e., SEO
• /Lecture06/
H1
• Well chosen content of H1 element is crucial
to SEO
• Semantic elements allow for a more
meaningful expression of the structure of our
HTML page
• /Lecture06/…
Lısts
+ İçeriği gruplamak için kullanılır
+ 2 farklı liste tipi bulunmaktadır:
+ Ordered Lists <ol>
+ Unordered Lists<ul>
+ Listelerin içeriği list item’lar ile tanımlanır
+ List item <li>
• /Lecture07/
Unordered List Örneği
Örnek Unordered Lıst
Görünümü
Ordered List Örneği
Örnek Ordered Lıst
Görünümü Google search:
html ordered list
number style
Character Entıty
References
3 Characters You Should Always
Escape
Karakter Kodlarının Yanlış
Kullanımı
Karakter Kodlarının Yanlış
Kullanımı
Karakter Kodlarının Doğru
Kullanımı
Karakter Kodlarının Doğru
Kullanımı
• /Lecture08/…
Lınks
+ 3 farklı bağlantı tipi bulunmaktadır:
+ Internal Links
+ External Links
+ Same-page Links
+ <a> tag’i hem block-level, hem inline element
+ Tek başına kullanılırsa inline
+ İçerisinde block level element tanımlanabiliyor
Internal Lınks
Örnek HTML Dosyası
Görünümü
Internal Lınks
Örnek HTML Dosyası
Görünümü
External Lınks
Lınks to Same Page
Lınks to Same Page
Örnek HTML Dosyası
Görünümü
Örnek HTML Dosyası
Görünümü
Images
+ Image’ler inline elementlerdir.
+ <img> tag’i ile tanımlanırlar.
+ Sayfa görselliğinin zenginleşmesine yardımcı olurlar.
+ Width ve height tanımlayıp boyutunu belirlemek tercih
edilmektedir.
Images Örnek HTML
Dosyası
Örnek HTML Dosyasının
Görüntülenmesi
HTML Documents
• All HTML documents must start with a
document type declaration: <!DOCTYPE
html>.
• The HTML document itself begins
with <html> and ends with </html>.
• The visible part of the HTML document is
between <body> and </body>.
HTML Headings
• HTML headings are defined with
the <h1> to <h6> tags.
• <h1> defines the most important
heading. <h6> defines the least important
heading.
• Example:
+ <h1>This is heading 1</h1>
<h2>This is heading 2</h2>
<h3>This is heading 3</h3>
HTML Images
• HTML images are defined with the <img> tag.
• The source file (src), alternative text (alt), width,
and height are provided as attributes.
• The alt attribute specifies an alternative text to be
used, if an image cannot be displayed.
• The value of the alt attribute can be read by
screen readers. This way, someone "listening" to
the webpage, e.g. a vision impaired person, can
"hear" the element.
HTML Is Not Case Sensitive
• HTML tags are not case sensitive: <P> means
the same as <p>.
• The HTML5 standard does not require
lowercase tags, but
W3C recommends lowercase in HTML,
and demands lowercase for stricter document
types like XHTML.
The lang Attribute
• The language of the document can be
declared in the <html> tag.
• The language is declared with
the lang attribute.
• Declaring a language is important for
accessibility applications (screen readers) and
search engines:
• The first two letters specify the language (en).
If there is a dialect, add two more letters (US).
The title Attribute
• Here, a title attribute is added to the <p>
element.
• The value of the title attribute will be
displayed as a tooltip when you mouse over
the paragraph:
• Example
o <p title="I'm a tooltip">
This is a paragraph.
</p>

More Related Content

Similar to HTML Introduction - Key Concepts Explained in 40 Characters

1-22-24 INFO 2106.pptx
1-22-24 INFO 2106.pptx1-22-24 INFO 2106.pptx
1-22-24 INFO 2106.pptxMattMarino13
 
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
 
Computer fundamentals-internet p2
Computer fundamentals-internet p2Computer fundamentals-internet p2
Computer fundamentals-internet p2Leo Mark Villar
 
WT Module-1.pdf
WT Module-1.pdfWT Module-1.pdf
WT Module-1.pdfRamyaH11
 
FFW Gabrovo PMG - HTML
FFW Gabrovo PMG - HTMLFFW Gabrovo PMG - HTML
FFW Gabrovo PMG - HTMLToni Kolev
 
web development.pdf
web development.pdfweb development.pdf
web development.pdfBagHarki
 
Html&Browser
Html&BrowserHtml&Browser
Html&BrowserAlipay
 
HTML? What is Hyper Text Mark Up Language
HTML? What is Hyper Text Mark Up  LanguageHTML? What is Hyper Text Mark Up  Language
HTML? What is Hyper Text Mark Up LanguageAnujaJape2
 
Eye catching HTML BASICS tips: Learn easily
Eye catching HTML BASICS tips: Learn easilyEye catching HTML BASICS tips: Learn easily
Eye catching HTML BASICS tips: Learn easilyshabab shihan
 
Web Concepts - an introduction - introduction
Web Concepts - an introduction - introductionWeb Concepts - an introduction - introduction
Web Concepts - an introduction - introductionclement swarnappa
 
HTML Comprehensive Overview
HTML Comprehensive OverviewHTML Comprehensive Overview
HTML Comprehensive OverviewMohamed Loey
 
INTRODUCTION TO HTML.pptx
INTRODUCTION TO HTML.pptxINTRODUCTION TO HTML.pptx
INTRODUCTION TO HTML.pptxSaurabh821709
 
Introduction to html course digital markerters
Introduction to html course digital markertersIntroduction to html course digital markerters
Introduction to html course digital markertersSEO SKills
 

Similar to HTML Introduction - Key Concepts Explained in 40 Characters (20)

1-22-24 INFO 2106.pptx
1-22-24 INFO 2106.pptx1-22-24 INFO 2106.pptx
1-22-24 INFO 2106.pptx
 
Web forms and html (lect 1)
Web forms and html (lect 1)Web forms and html (lect 1)
Web forms and html (lect 1)
 
Computer fundamentals-internet p2
Computer fundamentals-internet p2Computer fundamentals-internet p2
Computer fundamentals-internet p2
 
Html presentation
Html presentationHtml presentation
Html presentation
 
Html5
Html5 Html5
Html5
 
WT Module-1.pdf
WT Module-1.pdfWT Module-1.pdf
WT Module-1.pdf
 
FFW Gabrovo PMG - HTML
FFW Gabrovo PMG - HTMLFFW Gabrovo PMG - HTML
FFW Gabrovo PMG - HTML
 
web development.pdf
web development.pdfweb development.pdf
web development.pdf
 
Grade 10 COMPUTER
Grade 10 COMPUTERGrade 10 COMPUTER
Grade 10 COMPUTER
 
mst_unit1.pptx
mst_unit1.pptxmst_unit1.pptx
mst_unit1.pptx
 
Html&Browser
Html&BrowserHtml&Browser
Html&Browser
 
HTML? What is Hyper Text Mark Up Language
HTML? What is Hyper Text Mark Up  LanguageHTML? What is Hyper Text Mark Up  Language
HTML? What is Hyper Text Mark Up Language
 
Eye catching HTML BASICS tips: Learn easily
Eye catching HTML BASICS tips: Learn easilyEye catching HTML BASICS tips: Learn easily
Eye catching HTML BASICS tips: Learn easily
 
Web Concepts - an introduction - introduction
Web Concepts - an introduction - introductionWeb Concepts - an introduction - introduction
Web Concepts - an introduction - introduction
 
HTML Comprehensive Overview
HTML Comprehensive OverviewHTML Comprehensive Overview
HTML Comprehensive Overview
 
HTML 5
HTML 5HTML 5
HTML 5
 
Learn html from www
Learn html from wwwLearn html from www
Learn html from www
 
INTRODUCTION TO HTML.pptx
INTRODUCTION TO HTML.pptxINTRODUCTION TO HTML.pptx
INTRODUCTION TO HTML.pptx
 
Introduction to html course digital markerters
Introduction to html course digital markertersIntroduction to html course digital markerters
Introduction to html course digital markerters
 
html
htmlhtml
html
 

Recently uploaded

University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxfenichawla
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesPrabhanshu Chaturvedi
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdfKamal Acharya
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 

Recently uploaded (20)

University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 

HTML Introduction - Key Concepts Explained in 40 Characters