SlideShare a Scribd company logo
1 of 19
HTMLHTML
Programming/Programming/
CodingCoding
What does HTML Stand for?
• Hyper
• Text
• Markup
• Language
Is HTML a programming
language?
(That’s a No.)
What is it then?
Unlike with a programming language, all you can do with
HTML is format information. In this sense, you use HTML for
layout tasks. To cover this weakness, HTML coders use other
languages, like Javascript, to do complex tasks that require
programming.
So do you program in HTML?
HTML is a formatting language.
No.
You write HTML code. (I.E. you code HTML)
How does HTML work?
• Since all HTML can do is manage the
layout of information, it’s not that hard to
use.
• An HTML document has two kinds of
information in it
• Information (Text, etc.)
• HTML code to format that information
So what is HTML code like?
HTML is a tag-based language.
That means that HTML code is made out of little pieces, called
tags, with a particular structure. They surround information that
they manipulate.
Generally, if you have an HTML tag called TAGX, it consists of
two parts:
• An opening tag, <TAGX>
• A closing tag, </TAGX>
How do these tags work?
The tags surround a piece of information that they are
designed to have a formatting effect on. For example, if we
have a piece of text,
“I like to paint xylophones while flying a hang glider.”
and we want to make it bold, we can use an HTML tag, <b> to
do this.
<b> I like to paint xylophones while flying a hang glider.</b>
shows up like this in a browser:
I like to paint xylophones while flying a hang glider.
Notice that in our previous example, all of the text was inside
of the bold tags,
<b> I like to paint xylophones while flying a hang glider.</b>
meaning that all of it was put into bold. If I only wanted to
bold part of it, however, I could put only part of it inside the
tags, like this.
I like to paint <b>xylophones </b> while flying a hang glider.
This would produce:
I like to paint xylophones while flying a hang glider.
Basic Tags
The most basic tag is the <html> tag.
This tag appears at the beginning of every HTML document
(.html or .htm) and the corresponding closing tag,
</html>, appears at the end of every HTML document.
So so far we have:
<html>
***some HTML code and information***
</html>
Basic Tags pt 2
Every HTML document is divided into 2 parts: a head and a
body. The head contains information about the document, like
the title, and the body contains most of the actual code and
information. The tags are: <head> and <body>.
So so far we have:
<html>
<head>***HTML code and information***</head>
<body>
***HTML code and information***
</body>
</html>
<head>
Inside the <head> tags you can put a lot of different tags and
information, but for now we’ll only worry about one thing: the
<title> tag.
This tag allows you to specify the text that appears at the top
of the browser window.
<html>
<head>
<title> My Happy Page </title>
***more HTML code and information***
</head>
…etc
<body>
Things that go inside of the body tags include:
•Text
•Images
•Links
•Multimedia
and such.
Let’s focus on text for now.
Text-related Tags
The first text-related tag we’ll look at is a header tag.
Header tags are used to mark text that heads a section, usually
by making it larger.
We’ll start with the largest one, <h1>.
Try adding <h1> Some Text </h1> into the body of your
document, like this:
….
<body>
<h1> Some Text </h1>
</body>
</html>
Text-related Tags pt 2
Header tags come in several sizes, from <h1> down to <h6>.
Try changing the tag to <h3> and comparing the size.
<html>
<head>
<title> … </title>
</head>
<body>
<h3> Some Text </h3>
</body>
</html>
An additional benefit of header tags is that they add a line break.
Text-related Tags pt 3
We’d like to add several lines of text. To do this we just type
the text, like this:
<html>
<head>
<title> … </title>
</head>
<body>
<h1> Some Text </h1>
This is line 1 of the text.
This is line 2 of the text.
</body>
</html>
What’s the problem with this?
Text-related Tags pt 4
The two lines of text are run together. We’d like to put text on
a new line. The solution? The <br> tag. <br> stands for break,
as in line break. <br> is also an exception in that it doesn’t
have a closing tag.
<html>
<head>
<title> … </title>
</head>
<body>
<h1> Some Text </h1>
This is line 1 of the text.
<br>This is line 2 of the text.
</body>
</html>
Text-related Tags pt 5
What if we have a lot of text in separate paragraphs? Should
we just use a lot of <br> s?
Well, we could….
But what we should really use is the paragraph tag, <p>.
The paragraph tag is roughly equivalent to 2 <br> s, and it has
a closing tag, </p>
<p>
Paragraph 1
</p>
<p>
Paragraph 2
</p>
Text-related Tags pt 6
So now we have text nicely formatted into paragraphs. What if
we want to emphasize some of it by underlining, italicizing, or
bolding it?
Well, we’ve already seen the bold tag, <b>.
Similarly, <i> is the tag for italics and <u> is the tag for
underlining. All three of these can be used at once if you want,
or just by themselves.
This <u>sentence is <i>way <b>confusing</b></i>. </u>
shows up as:
This sentence is way confusing.
<html>
<head>
<title> That’s it for now. </title>
</head>
<body>
<p>But more later!</p>
</body>
</html>

More Related Content

What's hot

Lecture 2 introduction to html
Lecture 2  introduction to htmlLecture 2  introduction to html
Lecture 2 introduction to htmlpalhaftab
 
Title, heading and paragraph tags
Title, heading and paragraph tagsTitle, heading and paragraph tags
Title, heading and paragraph tagsSara Corpuz
 
Html ppt by Fathima faculty Hasanath college for women bangalore
Html ppt by Fathima faculty Hasanath college for women bangaloreHtml ppt by Fathima faculty Hasanath college for women bangalore
Html ppt by Fathima faculty Hasanath college for women bangalorefathima12
 
Adding text in html
Adding text in htmlAdding text in html
Adding text in htmlnobel mujuji
 
Introduction to basic HTML [Librarian edition]
Introduction to basic HTML [Librarian edition]Introduction to basic HTML [Librarian edition]
Introduction to basic HTML [Librarian edition]Kosie Eloff
 
Learn HTML Step By Step
Learn HTML Step By StepLearn HTML Step By Step
Learn HTML Step By StepSatish Chandra
 

What's hot (20)

Html tag
Html tagHtml tag
Html tag
 
Basic html
Basic htmlBasic html
Basic html
 
Lecture 2 introduction to html
Lecture 2  introduction to htmlLecture 2  introduction to html
Lecture 2 introduction to html
 
Title, heading and paragraph tags
Title, heading and paragraph tagsTitle, heading and paragraph tags
Title, heading and paragraph tags
 
HTML5 and DHTML
HTML5 and DHTMLHTML5 and DHTML
HTML5 and DHTML
 
Html ppt by Fathima faculty Hasanath college for women bangalore
Html ppt by Fathima faculty Hasanath college for women bangaloreHtml ppt by Fathima faculty Hasanath college for women bangalore
Html ppt by Fathima faculty Hasanath college for women bangalore
 
Learn HTML Easier
Learn HTML EasierLearn HTML Easier
Learn HTML Easier
 
Html1
Html1Html1
Html1
 
Html example
Html exampleHtml example
Html example
 
Html presantation
Html presantationHtml presantation
Html presantation
 
Lectuer html1
Lectuer  html1Lectuer  html1
Lectuer html1
 
Html intro
Html introHtml intro
Html intro
 
Adding text in html
Adding text in htmlAdding text in html
Adding text in html
 
Introduction to basic HTML [Librarian edition]
Introduction to basic HTML [Librarian edition]Introduction to basic HTML [Librarian edition]
Introduction to basic HTML [Librarian edition]
 
Html Ppt
Html PptHtml Ppt
Html Ppt
 
Html - Tutorial
Html - TutorialHtml - Tutorial
Html - Tutorial
 
html tags
html tagshtml tags
html tags
 
Learn HTML Step By Step
Learn HTML Step By StepLearn HTML Step By Step
Learn HTML Step By Step
 
Html basics
Html basicsHtml basics
Html basics
 
Html basics
Html basicsHtml basics
Html basics
 

Viewers also liked

The 99.999 percent cybersecurity problem
The 99.999 percent cybersecurity problemThe 99.999 percent cybersecurity problem
The 99.999 percent cybersecurity problemSherry Jones
 
CGA Millennials in the Workforce
CGA Millennials in the WorkforceCGA Millennials in the Workforce
CGA Millennials in the WorkforceRyan Mekech
 
Java- JDBC- Mazenet Solution
Java- JDBC- Mazenet SolutionJava- JDBC- Mazenet Solution
Java- JDBC- Mazenet SolutionMazenetsolution
 
Medición del radio terrestre Proyecto Eratóstenes
Medición del radio terrestre Proyecto EratóstenesMedición del radio terrestre Proyecto Eratóstenes
Medición del radio terrestre Proyecto EratóstenesSole Pomilio
 
Nassi Shneiderman Diagrams: Algorithms Made Easier (at least a little bit)
Nassi Shneiderman Diagrams: Algorithms Made Easier (at least a little bit)Nassi Shneiderman Diagrams: Algorithms Made Easier (at least a little bit)
Nassi Shneiderman Diagrams: Algorithms Made Easier (at least a little bit)Richard Schwarz
 
HTML5 - Just the basics
HTML5 - Just the basicsHTML5 - Just the basics
HTML5 - Just the basicsJames VanDyke
 
Computer (Q BASIC)
Computer (Q BASIC) Computer (Q BASIC)
Computer (Q BASIC) Ujjal Sharma
 
How to Make HTML and CSS Files
How to Make HTML and CSS FilesHow to Make HTML and CSS Files
How to Make HTML and CSS FilesLearningNerd
 
Introduction to Java programming - Java tutorial for beginners to teach Java ...
Introduction to Java programming - Java tutorial for beginners to teach Java ...Introduction to Java programming - Java tutorial for beginners to teach Java ...
Introduction to Java programming - Java tutorial for beginners to teach Java ...Duckademy IT courses
 
Learn HTML & CSS From Scratch in 30 Days
Learn HTML & CSS From Scratch in 30 DaysLearn HTML & CSS From Scratch in 30 Days
Learn HTML & CSS From Scratch in 30 DaysJonathan Grover
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to htmlvikasgaur31
 
Introduction to visual basic programming
Introduction to visual basic programmingIntroduction to visual basic programming
Introduction to visual basic programmingRoger Argarin
 
Praca.pl sytuacja na rynku pracy w I kw.2016 raport
Praca.pl sytuacja na rynku pracy w I kw.2016 raportPraca.pl sytuacja na rynku pracy w I kw.2016 raport
Praca.pl sytuacja na rynku pracy w I kw.2016 raportPraca.pl
 

Viewers also liked (20)

The 99.999 percent cybersecurity problem
The 99.999 percent cybersecurity problemThe 99.999 percent cybersecurity problem
The 99.999 percent cybersecurity problem
 
CGA Millennials in the Workforce
CGA Millennials in the WorkforceCGA Millennials in the Workforce
CGA Millennials in the Workforce
 
Java- JDBC- Mazenet Solution
Java- JDBC- Mazenet SolutionJava- JDBC- Mazenet Solution
Java- JDBC- Mazenet Solution
 
The Live Online Class
The Live Online ClassThe Live Online Class
The Live Online Class
 
Medición del radio terrestre Proyecto Eratóstenes
Medición del radio terrestre Proyecto EratóstenesMedición del radio terrestre Proyecto Eratóstenes
Medición del radio terrestre Proyecto Eratóstenes
 
Html basic
Html basicHtml basic
Html basic
 
RESUME
RESUMERESUME
RESUME
 
Nassi Shneiderman Diagrams: Algorithms Made Easier (at least a little bit)
Nassi Shneiderman Diagrams: Algorithms Made Easier (at least a little bit)Nassi Shneiderman Diagrams: Algorithms Made Easier (at least a little bit)
Nassi Shneiderman Diagrams: Algorithms Made Easier (at least a little bit)
 
Basic html
Basic htmlBasic html
Basic html
 
HTML5 - Just the basics
HTML5 - Just the basicsHTML5 - Just the basics
HTML5 - Just the basics
 
HTML5 Basic
HTML5 BasicHTML5 Basic
HTML5 Basic
 
Computer (Q BASIC)
Computer (Q BASIC) Computer (Q BASIC)
Computer (Q BASIC)
 
How to Make HTML and CSS Files
How to Make HTML and CSS FilesHow to Make HTML and CSS Files
How to Make HTML and CSS Files
 
HTML Basic
HTML BasicHTML Basic
HTML Basic
 
Introduction to Java programming - Java tutorial for beginners to teach Java ...
Introduction to Java programming - Java tutorial for beginners to teach Java ...Introduction to Java programming - Java tutorial for beginners to teach Java ...
Introduction to Java programming - Java tutorial for beginners to teach Java ...
 
Learn HTML & CSS From Scratch in 30 Days
Learn HTML & CSS From Scratch in 30 DaysLearn HTML & CSS From Scratch in 30 Days
Learn HTML & CSS From Scratch in 30 Days
 
Abdel Hamied Lotfy cv
Abdel Hamied Lotfy cvAbdel Hamied Lotfy cv
Abdel Hamied Lotfy cv
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
Introduction to visual basic programming
Introduction to visual basic programmingIntroduction to visual basic programming
Introduction to visual basic programming
 
Praca.pl sytuacja na rynku pracy w I kw.2016 raport
Praca.pl sytuacja na rynku pracy w I kw.2016 raportPraca.pl sytuacja na rynku pracy w I kw.2016 raport
Praca.pl sytuacja na rynku pracy w I kw.2016 raport
 

Similar to Basics of Html (20)

HTML
HTMLHTML
HTML
 
HTML.pdf
HTML.pdfHTML.pdf
HTML.pdf
 
Html basics NOTE
Html basics NOTEHtml basics NOTE
Html basics NOTE
 
html.pdf
html.pdfhtml.pdf
html.pdf
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
 
Basic HTML
Basic HTMLBasic HTML
Basic HTML
 
Learning html. (Part- 1)
Learning html. (Part- 1)Learning html. (Part- 1)
Learning html. (Part- 1)
 
Html presentation
Html presentationHtml presentation
Html presentation
 
Html
HtmlHtml
Html
 
Html (hyper text markup language)
Html (hyper text markup language)Html (hyper text markup language)
Html (hyper text markup language)
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
 
Basic Html Notes
Basic Html NotesBasic Html Notes
Basic Html Notes
 
Basic Html Knowledge for students
Basic Html Knowledge for studentsBasic Html Knowledge for students
Basic Html Knowledge for students
 
Introduction to HTML.pptx
Introduction to HTML.pptxIntroduction to HTML.pptx
Introduction to HTML.pptx
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Tm 1st quarter - 1st meeting
Tm   1st quarter - 1st meetingTm   1st quarter - 1st meeting
Tm 1st quarter - 1st meeting
 
An introduction to html
An introduction to htmlAn introduction to html
An introduction to html
 
Html basics
Html basicsHtml basics
Html basics
 

Recently uploaded

WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyviewmasabamasaba
 
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...WSO2
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...Jittipong Loespradit
 
Artyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxArtyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxAnnaArtyushina1
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...masabamasaba
 
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...WSO2
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in sowetomasabamasaba
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...masabamasaba
 
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...masabamasaba
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...Health
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024VictoriaMetrics
 
WSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaSWSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaSWSO2
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareJim McKeeth
 
What Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationWhat Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationJuha-Pekka Tolvanen
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park masabamasaba
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisamasabamasaba
 
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfonteinmasabamasaba
 

Recently uploaded (20)

WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
 
Artyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxArtyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptx
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
 
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
WSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaSWSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaS
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
What Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationWhat Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the Situation
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 

Basics of Html

  • 2. What does HTML Stand for? • Hyper • Text • Markup • Language
  • 3. Is HTML a programming language? (That’s a No.)
  • 4. What is it then? Unlike with a programming language, all you can do with HTML is format information. In this sense, you use HTML for layout tasks. To cover this weakness, HTML coders use other languages, like Javascript, to do complex tasks that require programming. So do you program in HTML? HTML is a formatting language. No. You write HTML code. (I.E. you code HTML)
  • 5. How does HTML work? • Since all HTML can do is manage the layout of information, it’s not that hard to use. • An HTML document has two kinds of information in it • Information (Text, etc.) • HTML code to format that information
  • 6. So what is HTML code like? HTML is a tag-based language. That means that HTML code is made out of little pieces, called tags, with a particular structure. They surround information that they manipulate. Generally, if you have an HTML tag called TAGX, it consists of two parts: • An opening tag, <TAGX> • A closing tag, </TAGX>
  • 7. How do these tags work? The tags surround a piece of information that they are designed to have a formatting effect on. For example, if we have a piece of text, “I like to paint xylophones while flying a hang glider.” and we want to make it bold, we can use an HTML tag, <b> to do this. <b> I like to paint xylophones while flying a hang glider.</b> shows up like this in a browser: I like to paint xylophones while flying a hang glider.
  • 8. Notice that in our previous example, all of the text was inside of the bold tags, <b> I like to paint xylophones while flying a hang glider.</b> meaning that all of it was put into bold. If I only wanted to bold part of it, however, I could put only part of it inside the tags, like this. I like to paint <b>xylophones </b> while flying a hang glider. This would produce: I like to paint xylophones while flying a hang glider.
  • 9. Basic Tags The most basic tag is the <html> tag. This tag appears at the beginning of every HTML document (.html or .htm) and the corresponding closing tag, </html>, appears at the end of every HTML document. So so far we have: <html> ***some HTML code and information*** </html>
  • 10. Basic Tags pt 2 Every HTML document is divided into 2 parts: a head and a body. The head contains information about the document, like the title, and the body contains most of the actual code and information. The tags are: <head> and <body>. So so far we have: <html> <head>***HTML code and information***</head> <body> ***HTML code and information*** </body> </html>
  • 11. <head> Inside the <head> tags you can put a lot of different tags and information, but for now we’ll only worry about one thing: the <title> tag. This tag allows you to specify the text that appears at the top of the browser window. <html> <head> <title> My Happy Page </title> ***more HTML code and information*** </head> …etc
  • 12. <body> Things that go inside of the body tags include: •Text •Images •Links •Multimedia and such. Let’s focus on text for now.
  • 13. Text-related Tags The first text-related tag we’ll look at is a header tag. Header tags are used to mark text that heads a section, usually by making it larger. We’ll start with the largest one, <h1>. Try adding <h1> Some Text </h1> into the body of your document, like this: …. <body> <h1> Some Text </h1> </body> </html>
  • 14. Text-related Tags pt 2 Header tags come in several sizes, from <h1> down to <h6>. Try changing the tag to <h3> and comparing the size. <html> <head> <title> … </title> </head> <body> <h3> Some Text </h3> </body> </html> An additional benefit of header tags is that they add a line break.
  • 15. Text-related Tags pt 3 We’d like to add several lines of text. To do this we just type the text, like this: <html> <head> <title> … </title> </head> <body> <h1> Some Text </h1> This is line 1 of the text. This is line 2 of the text. </body> </html> What’s the problem with this?
  • 16. Text-related Tags pt 4 The two lines of text are run together. We’d like to put text on a new line. The solution? The <br> tag. <br> stands for break, as in line break. <br> is also an exception in that it doesn’t have a closing tag. <html> <head> <title> … </title> </head> <body> <h1> Some Text </h1> This is line 1 of the text. <br>This is line 2 of the text. </body> </html>
  • 17. Text-related Tags pt 5 What if we have a lot of text in separate paragraphs? Should we just use a lot of <br> s? Well, we could…. But what we should really use is the paragraph tag, <p>. The paragraph tag is roughly equivalent to 2 <br> s, and it has a closing tag, </p> <p> Paragraph 1 </p> <p> Paragraph 2 </p>
  • 18. Text-related Tags pt 6 So now we have text nicely formatted into paragraphs. What if we want to emphasize some of it by underlining, italicizing, or bolding it? Well, we’ve already seen the bold tag, <b>. Similarly, <i> is the tag for italics and <u> is the tag for underlining. All three of these can be used at once if you want, or just by themselves. This <u>sentence is <i>way <b>confusing</b></i>. </u> shows up as: This sentence is way confusing.
  • 19. <html> <head> <title> That’s it for now. </title> </head> <body> <p>But more later!</p> </body> </html>