SlideShare une entreprise Scribd logo
1  sur  35
Introduction to HTML
HyperText Markup Language
What is HTML?
What is HTML?
 Hypertext Markup Language
What is HTML?
Hypertext Markup Language
 Hypertext:
 Allows for non-linear linking to other
documents
What is HTML?
Hypertext Markup Language
 Hypertext:
 Allows for non-linear linking to other
documents
 Markup Language:
 Content to be displayed is “marked up” or
tagged to tell the browser how to display
it.
HTML
 are the main code used for creating and
designing web pages.
 is written in the form of HTML elements consisting
of tags enclosed in angle brackets (like: <html> ).
 Elements or tags
<html></html>
 Attributes that modify an element
HTML
 HTML allows images and objects to be
embedded and can be used to
create interactive forms.
 It provides a means to create structured
documents by denoting structural semantics for
text such as headings, paragraphs, lists, links,
quotes and other items.
Elements
 Elements are the fundamental building
blocks of HTML.
 They are the tags that tell the browser
what the enclosed text is.
<title>My first HTML page</title>
The title element tells the browser that
this is the title of the page.
 Elements must be terminated
HTML
The pur pose of a web br owser i s t o r ead
HTML document s and compose t hem i nt o
vi si bl e or audi bl e web pages. The
br owser does not di spl ay t he HTML t ags,
but uses t he t ags t o i nt er pr et t he
cont ent of t he page.
Elements
General format of an element:
<startTag>Target content</endTag>
HTML is NOT case sensitive…
HTML Skeleton
<html>
<head>
<title>My first HTML Page!</title>
</head>
<body>
I Love HTML!
</body>
</html>
What do we need? | How to Save?
 Notepad
 To save:
File > Save As > .txt and .html
HTML Sample
<html>
<head>
<title>My first HTML Page!</title>
</head>
<body>
I Love HTML! Hypertext Markup Language!
</body>
</html>
Activity Time:
1. Open a Notepad
2. Using the basic html tags and
elements, input the paragraph below
and save as:
HTMLDoc1.html
Filename: HTMLDoc1.html
Title: My First HTML Document
Body:
My name is Juan Dela Cruz and my
hobbies are playing online games,
surfing the net, read travelling books
and hang-out with my friends.
Assignment:
Follow-up:
1. Give the other elements and attributes in
html.
References:
Book: World Wide Web Development III, pages 46-48
Website: www.w3schools.com
Common Elements
<html></html>
 All markup must be placed within HTML tags
<head></head>
 Contains information about the page as well
as other non-display content
<body></body>
 All display content should go inside these tags
Common Elements
<p></p>
 Tells the browser that the enclosed text
should be set off in a paragraph.
<h1></h1>
 This is a heading – the number can
range from 1 to 7 for different sizes
Text Display Elements
<b></b> or <strong></strong>
 Bolds the tagged text
<em></em> or <i></i>
 Italicizes the tagged text
<pre></pre>
 Preserves white space and breaks and
stands for “preformatted”
Common Tags
<br>
 Inserts a line break
 This is an empty tag – it does not have
a closing tag.
<hr>
 Inserts a horizontal rule (line)
 This is another empty tag
HTML Comments
An HTML Comment which is NOT
displayed in the page is done like this:
<!-- This is a comment -->
Attributes
Sometimes we need more information for
an element in order to control the way
the content displays
We provide this information with
attributes stated within the element
start tag
Attributes
The generic way of using an attribute looks like
this:
<elementName attribute=“value”>
Target content
</elementName>
Single or double quotes may be used to hold
attribute values
Attribute examples
<p align=“center”>This will appear
centered</p>
<img src=“mypicture.jpg”>
 This tag inserts the image
“mypicture.jpg” into the page.
 Make sure to use the right path!
Hyperlinks
Hyperlinks are created using the <a> tag,
which stands for “anchor”. The format
looks like this:
<a href=“uri_to_document”>Content to
click on for the link</a>
The uri can also be a mailto: link
Tables
Tables require three different tags:
<table></table>
 Defines the table itself
<tr></tr>
 Defines a table row
<td></td>
 Defines a table cell (table data)
Tables
Example table:
<table>
<tr><td>Column One, row one</td>
<td>Column Two, row one</td>
</tr>
<tr><td>Column One, row two</td>
<td>Column Two, row two</td>
</tr>
</table>
Lists
Two main types:
 Unordered list
 <ul></ul>
 Ordered List
 <ol></ol>
 List items are indicated by <li></li>
Font
You can modify more exactly the way text
looks by using the <font></font> tag:
<font color=“red” size=“3”
face=“Garamond”>
This is red, size 3, and in Garamond!
</font>
Entities
Some content characters may not show
up properly if simply placed inside tags.
How would you mark up the following:
Is 3<4 ?
Entities
In order to display these characters, we
use entities to represent them:
Character: Entity:
< &lt;
> &gt;
& &amp;
[space] &nbsp;

Contenu connexe

Tendances

Tendances (20)

HTML Basics 1 workshop
HTML Basics 1 workshopHTML Basics 1 workshop
HTML Basics 1 workshop
 
Html introduction by ikram niaz
Html introduction by ikram niazHtml introduction by ikram niaz
Html introduction by ikram niaz
 
Html grade 11
Html grade 11Html grade 11
Html grade 11
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Css
CssCss
Css
 
Html programing
Html programingHtml programing
Html programing
 
Html
HtmlHtml
Html
 
Html Intro2
Html Intro2Html Intro2
Html Intro2
 
Lesson 1: Introduction to HTML
Lesson 1: Introduction to HTMLLesson 1: Introduction to HTML
Lesson 1: Introduction to HTML
 
Basic Html for beginners.
Basic Html for beginners.Basic Html for beginners.
Basic Html for beginners.
 
HTML Basics 2 workshop
HTML Basics 2 workshopHTML Basics 2 workshop
HTML Basics 2 workshop
 
Html basics NOTE
Html basics NOTEHtml basics NOTE
Html basics NOTE
 
Web Development 1 (HTML & CSS)
Web Development 1 (HTML & CSS)Web Development 1 (HTML & CSS)
Web Development 1 (HTML & CSS)
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Html2
Html2Html2
Html2
 
Getting into HTML
Getting into HTMLGetting into HTML
Getting into HTML
 
Web designing (1) - Html Basic Codding
Web designing (1) - Html Basic CoddingWeb designing (1) - Html Basic Codding
Web designing (1) - Html Basic Codding
 
What is HTML - An Introduction to HTML (Hypertext Markup Language)
What is HTML - An Introduction to HTML (Hypertext Markup Language)What is HTML - An Introduction to HTML (Hypertext Markup Language)
What is HTML - An Introduction to HTML (Hypertext Markup Language)
 
Html
HtmlHtml
Html
 
Html introduction
Html introductionHtml introduction
Html introduction
 

En vedette

Html 5-tables-forms-frames (1)
Html 5-tables-forms-frames (1)Html 5-tables-forms-frames (1)
Html 5-tables-forms-frames (1)club23
 
Html table tags
Html table tagsHtml table tags
Html table tagseShikshak
 
Html - Tables, Forms and Frames by Telerik Academy
Html - Tables, Forms and Frames by Telerik AcademyHtml - Tables, Forms and Frames by Telerik Academy
Html - Tables, Forms and Frames by Telerik AcademyOgnyan Penkov
 
Types of operating system
Types of operating systemTypes of operating system
Types of operating systemMohammad Alam
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTMLMayaLisa
 
Functions Of Operating System
Functions Of Operating SystemFunctions Of Operating System
Functions Of Operating SystemDr.Suresh Isave
 
Operating system overview concepts ppt
Operating system overview concepts pptOperating system overview concepts ppt
Operating system overview concepts pptRajendraPrasad Alladi
 
Operating system.ppt (1)
Operating system.ppt (1)Operating system.ppt (1)
Operating system.ppt (1)Vaibhav Bajaj
 
Html 5 tutorial - By Bally Chohan
Html 5 tutorial - By Bally ChohanHtml 5 tutorial - By Bally Chohan
Html 5 tutorial - By Bally Chohanballychohanuk
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS PresentationShawn Calvert
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to htmlvikasgaur31
 

En vedette (19)

Html 5-tables-forms-frames (1)
Html 5-tables-forms-frames (1)Html 5-tables-forms-frames (1)
Html 5-tables-forms-frames (1)
 
Html table tags
Html table tagsHtml table tags
Html table tags
 
Html Basic Tags
Html Basic TagsHtml Basic Tags
Html Basic Tags
 
Html tables examples
Html tables   examplesHtml tables   examples
Html tables examples
 
Html - Tables, Forms and Frames by Telerik Academy
Html - Tables, Forms and Frames by Telerik AcademyHtml - Tables, Forms and Frames by Telerik Academy
Html - Tables, Forms and Frames by Telerik Academy
 
Table tags 2
Table tags 2Table tags 2
Table tags 2
 
HTML: Tables and Forms
HTML: Tables and FormsHTML: Tables and Forms
HTML: Tables and Forms
 
Types of operating system
Types of operating systemTypes of operating system
Types of operating system
 
html5.ppt
html5.ppthtml5.ppt
html5.ppt
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Functions Of Operating System
Functions Of Operating SystemFunctions Of Operating System
Functions Of Operating System
 
Operating Systems
Operating SystemsOperating Systems
Operating Systems
 
Operating system overview concepts ppt
Operating system overview concepts pptOperating system overview concepts ppt
Operating system overview concepts ppt
 
Operating system.ppt (1)
Operating system.ppt (1)Operating system.ppt (1)
Operating system.ppt (1)
 
Html 5 tutorial - By Bally Chohan
Html 5 tutorial - By Bally ChohanHtml 5 tutorial - By Bally Chohan
Html 5 tutorial - By Bally Chohan
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS Presentation
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
Html Ppt
Html PptHtml Ppt
Html Ppt
 
Up to Speed on HTML 5 and CSS 3
Up to Speed on HTML 5 and CSS 3Up to Speed on HTML 5 and CSS 3
Up to Speed on HTML 5 and CSS 3
 

Similaire à Intro to html

Similaire à Intro to html (20)

Html Workshop
Html WorkshopHtml Workshop
Html Workshop
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
 
Introduction to HTML.pptx
Introduction to HTML.pptxIntroduction to HTML.pptx
Introduction to HTML.pptx
 
Html notes
Html notesHtml notes
Html notes
 
HTML Presentation
HTML Presentation HTML Presentation
HTML Presentation
 
htmlnotes-180924151434.pdf dafdkzndsvkdvdd
htmlnotes-180924151434.pdf dafdkzndsvkdvddhtmlnotes-180924151434.pdf dafdkzndsvkdvdd
htmlnotes-180924151434.pdf dafdkzndsvkdvdd
 
htmlnotes Which tells about all the basic
htmlnotes Which tells about all the basichtmlnotes Which tells about all the basic
htmlnotes Which tells about all the basic
 
HTML : INTRODUCTION TO WEB DESIGN Presentation
HTML : INTRODUCTION TO WEB DESIGN PresentationHTML : INTRODUCTION TO WEB DESIGN Presentation
HTML : INTRODUCTION TO WEB DESIGN Presentation
 
Html 5
Html 5Html 5
Html 5
 
Html tutorials by www.dmdiploma.com
Html tutorials by www.dmdiploma.comHtml tutorials by www.dmdiploma.com
Html tutorials by www.dmdiploma.com
 
Html basics
Html basicsHtml basics
Html basics
 
Tm 1st quarter - 1st meeting
Tm   1st quarter - 1st meetingTm   1st quarter - 1st meeting
Tm 1st quarter - 1st meeting
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Html - Tutorial
Html - TutorialHtml - Tutorial
Html - Tutorial
 
Introduction to Html
Introduction to HtmlIntroduction to Html
Introduction to Html
 
Html
HtmlHtml
Html
 
Learn html from www
Learn html from wwwLearn html from www
Learn html from www
 
HTML5 Topic 1
HTML5 Topic 1HTML5 Topic 1
HTML5 Topic 1
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
 

Plus de cherrybear2014

Plus de cherrybear2014 (11)

Excel.t01
Excel.t01Excel.t01
Excel.t01
 
Excel functions
Excel functionsExcel functions
Excel functions
 
Basics excel 20102
Basics excel 20102Basics excel 20102
Basics excel 20102
 
Uml
UmlUml
Uml
 
Session2
Session2Session2
Session2
 
11 scripting languages
11 scripting languages11 scripting languages
11 scripting languages
 
5 software design
5 software design5 software design
5 software design
 
Designing the product page
Designing the product pageDesigning the product page
Designing the product page
 
Conditional statements
Conditional statementsConditional statements
Conditional statements
 
Check,combo,list,picture box
Check,combo,list,picture boxCheck,combo,list,picture box
Check,combo,list,picture box
 
Forms and buttons
Forms and buttonsForms and buttons
Forms and buttons
 

Dernier

How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGSujit Pal
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 

Dernier (20)

How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAG
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 

Intro to html

  • 1.
  • 2.
  • 3.
  • 6. What is HTML?  Hypertext Markup Language
  • 7. What is HTML? Hypertext Markup Language  Hypertext:  Allows for non-linear linking to other documents
  • 8. What is HTML? Hypertext Markup Language  Hypertext:  Allows for non-linear linking to other documents  Markup Language:  Content to be displayed is “marked up” or tagged to tell the browser how to display it.
  • 9. HTML  are the main code used for creating and designing web pages.  is written in the form of HTML elements consisting of tags enclosed in angle brackets (like: <html> ).  Elements or tags <html></html>  Attributes that modify an element
  • 10. HTML  HTML allows images and objects to be embedded and can be used to create interactive forms.  It provides a means to create structured documents by denoting structural semantics for text such as headings, paragraphs, lists, links, quotes and other items.
  • 11. Elements  Elements are the fundamental building blocks of HTML.  They are the tags that tell the browser what the enclosed text is. <title>My first HTML page</title> The title element tells the browser that this is the title of the page.  Elements must be terminated
  • 12. HTML The pur pose of a web br owser i s t o r ead HTML document s and compose t hem i nt o vi si bl e or audi bl e web pages. The br owser does not di spl ay t he HTML t ags, but uses t he t ags t o i nt er pr et t he cont ent of t he page.
  • 13. Elements General format of an element: <startTag>Target content</endTag> HTML is NOT case sensitive…
  • 14. HTML Skeleton <html> <head> <title>My first HTML Page!</title> </head> <body> I Love HTML! </body> </html>
  • 15. What do we need? | How to Save?  Notepad  To save: File > Save As > .txt and .html
  • 16. HTML Sample <html> <head> <title>My first HTML Page!</title> </head> <body> I Love HTML! Hypertext Markup Language! </body> </html>
  • 17. Activity Time: 1. Open a Notepad 2. Using the basic html tags and elements, input the paragraph below and save as: HTMLDoc1.html
  • 18. Filename: HTMLDoc1.html Title: My First HTML Document Body: My name is Juan Dela Cruz and my hobbies are playing online games, surfing the net, read travelling books and hang-out with my friends.
  • 19. Assignment: Follow-up: 1. Give the other elements and attributes in html. References: Book: World Wide Web Development III, pages 46-48 Website: www.w3schools.com
  • 20.
  • 21. Common Elements <html></html>  All markup must be placed within HTML tags <head></head>  Contains information about the page as well as other non-display content <body></body>  All display content should go inside these tags
  • 22. Common Elements <p></p>  Tells the browser that the enclosed text should be set off in a paragraph. <h1></h1>  This is a heading – the number can range from 1 to 7 for different sizes
  • 23. Text Display Elements <b></b> or <strong></strong>  Bolds the tagged text <em></em> or <i></i>  Italicizes the tagged text <pre></pre>  Preserves white space and breaks and stands for “preformatted”
  • 24. Common Tags <br>  Inserts a line break  This is an empty tag – it does not have a closing tag. <hr>  Inserts a horizontal rule (line)  This is another empty tag
  • 25. HTML Comments An HTML Comment which is NOT displayed in the page is done like this: <!-- This is a comment -->
  • 26. Attributes Sometimes we need more information for an element in order to control the way the content displays We provide this information with attributes stated within the element start tag
  • 27. Attributes The generic way of using an attribute looks like this: <elementName attribute=“value”> Target content </elementName> Single or double quotes may be used to hold attribute values
  • 28. Attribute examples <p align=“center”>This will appear centered</p> <img src=“mypicture.jpg”>  This tag inserts the image “mypicture.jpg” into the page.  Make sure to use the right path!
  • 29. Hyperlinks Hyperlinks are created using the <a> tag, which stands for “anchor”. The format looks like this: <a href=“uri_to_document”>Content to click on for the link</a> The uri can also be a mailto: link
  • 30. Tables Tables require three different tags: <table></table>  Defines the table itself <tr></tr>  Defines a table row <td></td>  Defines a table cell (table data)
  • 31. Tables Example table: <table> <tr><td>Column One, row one</td> <td>Column Two, row one</td> </tr> <tr><td>Column One, row two</td> <td>Column Two, row two</td> </tr> </table>
  • 32. Lists Two main types:  Unordered list  <ul></ul>  Ordered List  <ol></ol>  List items are indicated by <li></li>
  • 33. Font You can modify more exactly the way text looks by using the <font></font> tag: <font color=“red” size=“3” face=“Garamond”> This is red, size 3, and in Garamond! </font>
  • 34. Entities Some content characters may not show up properly if simply placed inside tags. How would you mark up the following: Is 3<4 ?
  • 35. Entities In order to display these characters, we use entities to represent them: Character: Entity: < &lt; > &gt; & &amp; [space] &nbsp;