SlideShare una empresa de Scribd logo
1 de 62
Descargar para leer sin conexión
HTML Basics
Engr. Esmeraldo T. Guimbarda Jr.
What is HTML?
HTML is a language for describing web
pages. It stands for Hyper Text Markup
Language. A markup language is a set of
markup tags. HTML documents contain
HTML tags and plain texts. They are
also called web pages. HTML is easy to
learn and to create. With HTML, you can
create your own website.
Identifying the Different Parts of an
HTML Code
An HTML code consists of different parts.
Each of these parts plays a big role and a
specific function in controlling the content
and design of your web pages.
HTML TAGS
HTML tags are keywords (tag names)
surrounded by angle brackets like
<html>. HTML tags normally come in
pairs like <b> and </b>. The first tag
in a pair is the start tag, the second tag
is the end tag. The end tag is written
like the start tag, with forward slash
before the tag name. These tags are also
called opening tags and closing tags.
Sample:
HTML <!DOCTYPE> declaration
A well written document begins with a
basic declaration that defines what type
of document it is.
The <!DOCTYPE> declaration is not
an HTML tag; it is an instruction to the
web browser about what version of
HTML the page is written in.
HTML <html> tag
The <html> tag tells the browser that
this is an HTML document. It represents
the root of an HTML document.
The <html> tag is the container for all
other HTML elements (except for the <!
DOCTYPE> tag).
HTML <head> tag
The <head> element is a container for all
the head elements. It must include a title
for the document, and can include
scripts, styles, meta information, and
more.
Syntax:
Example:
Output:
The <title> element defines a title in the
browser toolbar, provides a title for the
page when it is added to favorites and
displays a title for the page in search-
engine results.
HTML <body> tag
The <body> tag defines the document's
body. The <body> element contains all
the contents of an HTML document, such
as text, hyperlinks, images, tables, lists,
etc.
Syntax:
Example:
Output:
Using HTML Tags
HTML tags (otherwise known as "HTML
elements"), and their respective
attributes are used to create HTML
documents so that you can view them in
browsers and other user agents.
HTML Headings
Headings are defined with the <h1> to
<h6> tags. <h1> defines the most
important heading. <h6> defines the
least important heading.
Syntax:
Example
Output:
HTML Paragraphs
An HTML Paragraph is defined by a <p>
tag. Browsers automatically add some
space (margin) before and after each
<p> element.
Syntax:
Example:
Output:
HTML Links
A hyperlink (or link) is a word, group of
words, or image that you can click on to
jump to a new document or a new
section within the current document.
Links are specified in HTML using the
<a> tag.
Syntax:
Example:
This is a link
Output:
HTML Images
In HTML, images are defined with the
<img> tag. To display an image on a
page, you need to use the src (“source”)
attribute.
Syntax:
Example:
HTML <br> Tag
The <br> tag inserts a single line break.
The <br> tag is an empty tag which
means that it has no end tag.
Example
Output:
Text Formatting
HTML uses tags like <b> and <i> for
formatting output, like bold or italic text.
Example:
Output:
Organizing Webpage Content Using
Tables and Lists
HTML can be used to organize data in
tables or list items using the ordered,
unordered and definition lists.
Tables
Tables are defined with the <table> tag.
A table is divided into rows with the <tr>
tag.
Header information in a table is defined
with the <th> tag.
Each row is divided into data cells with
the <td> tag. This tag can contain texts,
links, images, lists, forms, other tables,
etc.
Example:
Output:
List
HTML lists appear in web browsers as
bulleted lines of text. There are actually
three different types of HTML lists,
including unordered lists (bullets),
ordered lists (numbers), and definition
lists.
Unordered List
An unordered list starts with the <ul>
tag. Each list item starts with the <li>
tag. The list items are marked with
bullets (typically small black circles).
Example
Output:
Ordered List
An ordered list starts with the <ol> tag.
Each list item starts with the <li> tag.
The list items are marked with numbers.
Examples
Output:
Definition List
A definition list is a list of items, with a
description of each item. The <dl> tag
defines a definition list.
Examples
Output:
Output
Grouping HTML elements using
<div> and <span>
HTML elements can be grouped together
with <div> and <span>.
HTML <div> Element
The HTML <div> element is a block level
element that can be used as a container
for grouping other HTML elements.
Example
Output
HTML <span> Element
The HTML <span> element is an inline
element that can be used as a container
for text.
Example
Output:
Tools Needed?
Notepad++ - a free source code editor
and Notepad replacement that supports
several languages.
http://notepad-plus-plus.org/
Web Browser(s) – a software application
for retrieving, presenting, and
transferring information resources on the
World Wide Web. Here are some
examples of a web browser:
Activity:
Step 1
Open the webpage file (juan_file.html)
from xampphtdocsjuan folder and
observe what is wrong with the webpage
format.
Step 2
Edit source code using Notepad ++.
Close the file when you’re done taking
notes of what can be improved with the
webpage. Right-click on the same file
(juan_file.html) and click Edit with
Notepad++.
Step 3
Modify heading position.
To put the webpage heading in its proper
place, look for <"h1">Matter<"/h1"> at
the bottommost part of the body’s
contents. Cut it and place it just below
the start tag.
Step 4
Modifying table contents.
All table data are under the wrong columns.
Analyze the code for tables and put the data
on their proper columns. In order to do this,
rearrange the (table data). The first should
be an item under the first column (Solid),
the second data is an item under the Liquid
column and the third should belong to the
Gas column. Cut and paste to change their
positions in the code.
Step 5
Modifying image attributes.
Images are also displayed in the webpage and are placed
inside the tables. Some images cannot be seen but some
are visible. Src is the only attribute used in the code. This
attribute contains the URL of the image that you want to be
displayed on your webpage. For all the images to appear,
make sure that the spelling of the attribute (src) is correct,
no other attribute can be used to contain the URL of the
image but the src, and the image URL is correct especially
the file format (to know the file format of the image
check the Juan’s File folder where the images are placed).
Step 6
Modifying link attributes.
Some links are not directing to another
page. The syntax for links is Link Text.
Make sure that the href attribute is the
only one used in all link tags. Also, check
if all URLs are working.
Step 7
Modifying text format
The texts on the webpage are all on one
paragraph. To make it more readable,
use line breaks
and separate the paragraphs/sentences
which should not be grouped together
using the tag.
Step 8
Save and finalize file.
When done with all the modifications,
click File > Save. Open juan_file.html
from the Juan’s File folder to check your
work if there are still modification that
needs to be done. The webpage that you
edited should look something like the
image on the right. If you wish to add a
little design/style to you work, you can
do so.
Tm   1st quarter - 1st meeting

Más contenido relacionado

La actualidad más candente (20)

Cse html ppt
Cse html pptCse html ppt
Cse html ppt
 
Module 1
Module 1Module 1
Module 1
 
Html
HtmlHtml
Html
 
Diva
DivaDiva
Diva
 
Html Slide Part-1
Html Slide Part-1Html Slide Part-1
Html Slide Part-1
 
Web Fundamentals And Html Chapter 1
Web Fundamentals And Html Chapter 1Web Fundamentals And Html Chapter 1
Web Fundamentals And Html Chapter 1
 
HTML | Computer Science
HTML | Computer ScienceHTML | Computer Science
HTML | Computer Science
 
Web Application and HTML Summary
Web Application and HTML SummaryWeb Application and HTML Summary
Web Application and HTML Summary
 
html tags
html tagshtml tags
html tags
 
Presentation on HTML
Presentation on HTMLPresentation on HTML
Presentation on HTML
 
Css
CssCss
Css
 
The Complete HTML
The Complete HTMLThe Complete HTML
The Complete HTML
 
Html
HtmlHtml
Html
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
Html project
Html projectHtml project
Html project
 
Notes4
Notes4Notes4
Notes4
 
WEB PAGE DESIGN USING HTML
WEB PAGE DESIGN USING HTMLWEB PAGE DESIGN USING HTML
WEB PAGE DESIGN USING 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
 

Destacado

How to create a html webpage using notepad
How to create a html webpage using notepadHow to create a html webpage using notepad
How to create a html webpage using notepadSophieBarwick1999
 
Intro to HTML and CSS
Intro to HTML and CSSIntro to HTML and CSS
Intro to HTML and CSSlexinamer
 
HTML & CSS: Chapter 03
HTML & CSS: Chapter 03HTML & CSS: Chapter 03
HTML & CSS: Chapter 03Steve Guinan
 
LinkedIn SlideShare: Knowledge, Well-Presented
LinkedIn SlideShare: Knowledge, Well-PresentedLinkedIn SlideShare: Knowledge, Well-Presented
LinkedIn SlideShare: Knowledge, Well-PresentedSlideShare
 
State of the Word 2011
State of the Word 2011State of the Word 2011
State of the Word 2011photomatt
 

Destacado (7)

Basics ogHtml
Basics ogHtml Basics ogHtml
Basics ogHtml
 
HTML: Chapter 01
HTML: Chapter 01HTML: Chapter 01
HTML: Chapter 01
 
How to create a html webpage using notepad
How to create a html webpage using notepadHow to create a html webpage using notepad
How to create a html webpage using notepad
 
Intro to HTML and CSS
Intro to HTML and CSSIntro to HTML and CSS
Intro to HTML and CSS
 
HTML & CSS: Chapter 03
HTML & CSS: Chapter 03HTML & CSS: Chapter 03
HTML & CSS: Chapter 03
 
LinkedIn SlideShare: Knowledge, Well-Presented
LinkedIn SlideShare: Knowledge, Well-PresentedLinkedIn SlideShare: Knowledge, Well-Presented
LinkedIn SlideShare: Knowledge, Well-Presented
 
State of the Word 2011
State of the Word 2011State of the Word 2011
State of the Word 2011
 

Similar a Tm 1st quarter - 1st meeting (20)

Introduction to HTML.pptx
Introduction to HTML.pptxIntroduction to HTML.pptx
Introduction to HTML.pptx
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
 
HTML Introduction
HTML IntroductionHTML Introduction
HTML Introduction
 
Html - Tutorial
Html - TutorialHtml - Tutorial
Html - Tutorial
 
Appdev appdev appdev app devAPPDEV 1.2.pptx
Appdev appdev appdev app devAPPDEV 1.2.pptxAppdev appdev appdev app devAPPDEV 1.2.pptx
Appdev appdev appdev app devAPPDEV 1.2.pptx
 
Html basics
Html basicsHtml basics
Html basics
 
Html presentation
Html presentationHtml presentation
Html presentation
 
HTML.pdf
HTML.pdfHTML.pdf
HTML.pdf
 
Html
HtmlHtml
Html
 
About html
About htmlAbout html
About html
 
Learn html from www
Learn html from wwwLearn html from www
Learn html from www
 
Html
HtmlHtml
Html
 
Html
HtmlHtml
Html
 
Html presantation
Html presantationHtml presantation
Html presantation
 
Introduction to HTML- Week 3- HTMLSyntax
Introduction to HTML- Week 3- HTMLSyntaxIntroduction to HTML- Week 3- HTMLSyntax
Introduction to HTML- Week 3- HTMLSyntax
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Html basics NOTE
Html basics NOTEHtml basics NOTE
Html basics NOTE
 
Empowerment Technologies Lecture 10 (Philippines SHS)
Empowerment Technologies Lecture 10 (Philippines SHS)Empowerment Technologies Lecture 10 (Philippines SHS)
Empowerment Technologies Lecture 10 (Philippines SHS)
 

Más de Esmeraldo Jr Guimbarda

TM 2nd qtr-3ndmeeting(java script-functions)
TM 2nd qtr-3ndmeeting(java script-functions)TM 2nd qtr-3ndmeeting(java script-functions)
TM 2nd qtr-3ndmeeting(java script-functions)Esmeraldo Jr Guimbarda
 
TM 2nd qtr-2ndmeeting(java script-animations)
TM 2nd qtr-2ndmeeting(java script-animations)TM 2nd qtr-2ndmeeting(java script-animations)
TM 2nd qtr-2ndmeeting(java script-animations)Esmeraldo Jr Guimbarda
 
2ndQuarter2ndMeeting(formatting number)
2ndQuarter2ndMeeting(formatting number)2ndQuarter2ndMeeting(formatting number)
2ndQuarter2ndMeeting(formatting number)Esmeraldo Jr Guimbarda
 
TM 2nd Quarter - 1st meeting(html backgrounds)
TM 2nd Quarter - 1st meeting(html backgrounds)TM 2nd Quarter - 1st meeting(html backgrounds)
TM 2nd Quarter - 1st meeting(html backgrounds)Esmeraldo Jr Guimbarda
 
1st quarter 5th meeting- spreadsheet (formula- mdas)
1st quarter   5th meeting- spreadsheet (formula- mdas)1st quarter   5th meeting- spreadsheet (formula- mdas)
1st quarter 5th meeting- spreadsheet (formula- mdas)Esmeraldo Jr Guimbarda
 

Más de Esmeraldo Jr Guimbarda (20)

TM 2nd qtr-3ndmeeting(java script-functions)
TM 2nd qtr-3ndmeeting(java script-functions)TM 2nd qtr-3ndmeeting(java script-functions)
TM 2nd qtr-3ndmeeting(java script-functions)
 
TM 2nd qtr-2ndmeeting(java script-animations)
TM 2nd qtr-2ndmeeting(java script-animations)TM 2nd qtr-2ndmeeting(java script-animations)
TM 2nd qtr-2ndmeeting(java script-animations)
 
2nd quarter 1st meeting(autofill)
2nd quarter   1st meeting(autofill)2nd quarter   1st meeting(autofill)
2nd quarter 1st meeting(autofill)
 
2ndQuarter2ndMeeting(formatting number)
2ndQuarter2ndMeeting(formatting number)2ndQuarter2ndMeeting(formatting number)
2ndQuarter2ndMeeting(formatting number)
 
TM 2nd Quarter - 1st meeting(html backgrounds)
TM 2nd Quarter - 1st meeting(html backgrounds)TM 2nd Quarter - 1st meeting(html backgrounds)
TM 2nd Quarter - 1st meeting(html backgrounds)
 
Debugging the mastery test
Debugging the mastery testDebugging the mastery test
Debugging the mastery test
 
TM 1st quarter - 4th meeting
TM   1st quarter - 4th meetingTM   1st quarter - 4th meeting
TM 1st quarter - 4th meeting
 
1st quarter 5th meeting- spreadsheet (formula- mdas)
1st quarter   5th meeting- spreadsheet (formula- mdas)1st quarter   5th meeting- spreadsheet (formula- mdas)
1st quarter 5th meeting- spreadsheet (formula- mdas)
 
1st quarter 5th meeting
1st quarter   5th meeting1st quarter   5th meeting
1st quarter 5th meeting
 
1st qtr 4th meeting-travel
1st qtr   4th meeting-travel1st qtr   4th meeting-travel
1st qtr 4th meeting-travel
 
1st qtr 5th meeting-travel
1st qtr   5th meeting-travel1st qtr   5th meeting-travel
1st qtr 5th meeting-travel
 
1st quarter 4th meeting- spreadsheet
1st quarter   4th meeting- spreadsheet1st quarter   4th meeting- spreadsheet
1st quarter 4th meeting- spreadsheet
 
1st qtr 3rd meeting-travel
1st qtr   3rd meeting-travel1st qtr   3rd meeting-travel
1st qtr 3rd meeting-travel
 
1st quarter 3rd meeting- spreadsheet
1st quarter   3rd meeting- spreadsheet1st quarter   3rd meeting- spreadsheet
1st quarter 3rd meeting- spreadsheet
 
1st quarter 3rd meeting(poet)
1st quarter   3rd meeting(poet)1st quarter   3rd meeting(poet)
1st quarter 3rd meeting(poet)
 
1st quarter 2nd meeting(poet)
1st quarter   2nd meeting(poet)1st quarter   2nd meeting(poet)
1st quarter 2nd meeting(poet)
 
1st quarter 1st meeting(poet)
1st quarter   1st meeting(poet)1st quarter   1st meeting(poet)
1st quarter 1st meeting(poet)
 
1st qtr 2nd metting- travel
1st qtr   2nd metting- travel1st qtr   2nd metting- travel
1st qtr 2nd metting- travel
 
Tm 1st quarter - 3rd meeting
Tm   1st quarter - 3rd meetingTm   1st quarter - 3rd meeting
Tm 1st quarter - 3rd meeting
 
1st quarter 2nd meeting- spreadsheet
1st quarter   2nd meeting- spreadsheet1st quarter   2nd meeting- spreadsheet
1st quarter 2nd meeting- spreadsheet
 

Último

microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 

Último (20)

microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 

Tm 1st quarter - 1st meeting

  • 1. HTML Basics Engr. Esmeraldo T. Guimbarda Jr.
  • 2. What is HTML? HTML is a language for describing web pages. It stands for Hyper Text Markup Language. A markup language is a set of markup tags. HTML documents contain HTML tags and plain texts. They are also called web pages. HTML is easy to learn and to create. With HTML, you can create your own website.
  • 3. Identifying the Different Parts of an HTML Code An HTML code consists of different parts. Each of these parts plays a big role and a specific function in controlling the content and design of your web pages.
  • 4.
  • 5. HTML TAGS HTML tags are keywords (tag names) surrounded by angle brackets like <html>. HTML tags normally come in pairs like <b> and </b>. The first tag in a pair is the start tag, the second tag is the end tag. The end tag is written like the start tag, with forward slash before the tag name. These tags are also called opening tags and closing tags.
  • 7. HTML <!DOCTYPE> declaration A well written document begins with a basic declaration that defines what type of document it is. The <!DOCTYPE> declaration is not an HTML tag; it is an instruction to the web browser about what version of HTML the page is written in.
  • 8. HTML <html> tag The <html> tag tells the browser that this is an HTML document. It represents the root of an HTML document. The <html> tag is the container for all other HTML elements (except for the <! DOCTYPE> tag).
  • 9. HTML <head> tag The <head> element is a container for all the head elements. It must include a title for the document, and can include scripts, styles, meta information, and more. Syntax:
  • 11. The <title> element defines a title in the browser toolbar, provides a title for the page when it is added to favorites and displays a title for the page in search- engine results.
  • 12. HTML <body> tag The <body> tag defines the document's body. The <body> element contains all the contents of an HTML document, such as text, hyperlinks, images, tables, lists, etc. Syntax:
  • 14. Using HTML Tags HTML tags (otherwise known as "HTML elements"), and their respective attributes are used to create HTML documents so that you can view them in browsers and other user agents.
  • 15. HTML Headings Headings are defined with the <h1> to <h6> tags. <h1> defines the most important heading. <h6> defines the least important heading. Syntax:
  • 17. HTML Paragraphs An HTML Paragraph is defined by a <p> tag. Browsers automatically add some space (margin) before and after each <p> element. Syntax:
  • 19. HTML Links A hyperlink (or link) is a word, group of words, or image that you can click on to jump to a new document or a new section within the current document. Links are specified in HTML using the <a> tag. Syntax:
  • 20. Example: This is a link Output:
  • 21. HTML Images In HTML, images are defined with the <img> tag. To display an image on a page, you need to use the src (“source”) attribute. Syntax:
  • 23. HTML <br> Tag The <br> tag inserts a single line break. The <br> tag is an empty tag which means that it has no end tag.
  • 25. Text Formatting HTML uses tags like <b> and <i> for formatting output, like bold or italic text. Example:
  • 27. Organizing Webpage Content Using Tables and Lists HTML can be used to organize data in tables or list items using the ordered, unordered and definition lists. Tables Tables are defined with the <table> tag.
  • 28. A table is divided into rows with the <tr> tag.
  • 29. Header information in a table is defined with the <th> tag.
  • 30. Each row is divided into data cells with the <td> tag. This tag can contain texts, links, images, lists, forms, other tables, etc.
  • 32. List HTML lists appear in web browsers as bulleted lines of text. There are actually three different types of HTML lists, including unordered lists (bullets), ordered lists (numbers), and definition lists.
  • 33. Unordered List An unordered list starts with the <ul> tag. Each list item starts with the <li> tag. The list items are marked with bullets (typically small black circles).
  • 35. Ordered List An ordered list starts with the <ol> tag. Each list item starts with the <li> tag. The list items are marked with numbers.
  • 37. Definition List A definition list is a list of items, with a description of each item. The <dl> tag defines a definition list.
  • 40. Grouping HTML elements using <div> and <span> HTML elements can be grouped together with <div> and <span>. HTML <div> Element The HTML <div> element is a block level element that can be used as a container for grouping other HTML elements.
  • 43. HTML <span> Element The HTML <span> element is an inline element that can be used as a container for text.
  • 45. Tools Needed? Notepad++ - a free source code editor and Notepad replacement that supports several languages. http://notepad-plus-plus.org/
  • 46. Web Browser(s) – a software application for retrieving, presenting, and transferring information resources on the World Wide Web. Here are some examples of a web browser:
  • 47. Activity: Step 1 Open the webpage file (juan_file.html) from xampphtdocsjuan folder and observe what is wrong with the webpage format.
  • 48.
  • 49. Step 2 Edit source code using Notepad ++. Close the file when you’re done taking notes of what can be improved with the webpage. Right-click on the same file (juan_file.html) and click Edit with Notepad++.
  • 50.
  • 51. Step 3 Modify heading position. To put the webpage heading in its proper place, look for <"h1">Matter<"/h1"> at the bottommost part of the body’s contents. Cut it and place it just below the start tag.
  • 52.
  • 53. Step 4 Modifying table contents. All table data are under the wrong columns. Analyze the code for tables and put the data on their proper columns. In order to do this, rearrange the (table data). The first should be an item under the first column (Solid), the second data is an item under the Liquid column and the third should belong to the Gas column. Cut and paste to change their positions in the code.
  • 54.
  • 55. Step 5 Modifying image attributes. Images are also displayed in the webpage and are placed inside the tables. Some images cannot be seen but some are visible. Src is the only attribute used in the code. This attribute contains the URL of the image that you want to be displayed on your webpage. For all the images to appear, make sure that the spelling of the attribute (src) is correct, no other attribute can be used to contain the URL of the image but the src, and the image URL is correct especially the file format (to know the file format of the image check the Juan’s File folder where the images are placed).
  • 56.
  • 57. Step 6 Modifying link attributes. Some links are not directing to another page. The syntax for links is Link Text. Make sure that the href attribute is the only one used in all link tags. Also, check if all URLs are working.
  • 58.
  • 59. Step 7 Modifying text format The texts on the webpage are all on one paragraph. To make it more readable, use line breaks and separate the paragraphs/sentences which should not be grouped together using the tag.
  • 60.
  • 61. Step 8 Save and finalize file. When done with all the modifications, click File > Save. Open juan_file.html from the Juan’s File folder to check your work if there are still modification that needs to be done. The webpage that you edited should look something like the image on the right. If you wish to add a little design/style to you work, you can do so.