SlideShare ist ein Scribd-Unternehmen logo
1 von 26
Web Development:
{ Basic HTML Structure }
Presented by:
Mr. Jhaun Paul G. Enriquez
MIS Coordinator
What is HTML?
Web Development: Using HTML5 & CSS3 2
• describes the structure of Web pages using
markup
• elements are the building blocks of HTML pages
• File extension must be .html or .htm
World Wide Web
Consortium (W3C)
Web Hypertext Application
Technology Working Group
(WHATWG)
What is HTML?
Web Development: Using HTML5 & CSS3 3
Using Markup Tags or Elements:
• Use keywords or tag names
• Enclosed within angle brackets (< >)
Opening Tag Closing Tag
<tagname> content </tagname>
<h1> … </h1>
<p> … </p>
<a> … </a>
<body> … </body>
<header> … </header>
Examples:
<hr>
<br>
<img>
<meta>
<input>
Empty
Tags
HTML Basic Structure: Syntax
Web Development: Using HTML5 & CSS3 4
• has a "custom" HTML syntax that is compatible
with HTML 4 and XHTML1 documents
XHTML Rules:
• Lower case tag names
• Quoting our attributes
• An attribute had to
have a value
• Close all empty
elements
HTML5 Support:
• Uppercase tag names.
• Quotes are optional
for attributes.
• Attribute values are
optional.
• Closing empty
elements are optional
HTML Basic Structure: Documents
Web Development: Using HTML5 & CSS3 5
HTML
Web Document
XHTML Web Document
HTML Basic Structure: Documents
Web Development: Using HTML5 & CSS3 6
HTML5 Web Document
• used by the web browser to understand the
version of the HTML used in the document
• Older HTML versions was SGML based and
requires a reference to the DTD.
HTML Basic Structure: Documents
Web Development: Using HTML5 & CSS3 7
DOCTYPE Declaration
<!DOCTYPE html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd>
Basic Web Document Elements
Tags Description
<html> root element of an HTML page
<head> represents the document's header
<title> mention the document title
<meta> provides metadata about the HTML
document like character encoding,
page description, or keywords
<body> represents the document’s body and
contains the visible page content
Web Development: Using HTML5 & CSS3 8
Web Development: Using HTML5 & CSS3 9
Using Block and Inline Elements
• Block-level - always starts on a new line and takes
up the full width available
– <h1> to <h6>, <p>, <div>, <table> or <form>
• Inline - does not start on a new line and only
takes up as much width as necessary
– <strong>, <em>, <b>, <i>, <span>, <img> or <a>
Nesting Elements on a Web Page
<p>This is a <b>paragraph</b>.</p>
<p>This is a <b>paragraph.</p></b>


HTML Basic Structure: Attributes
Web Development: Using HTML5 & CSS3 10
• provide additional info about HTML elements
• placed within the opening tag
• Paired with a "value"
Example:
HTML Basic Structure: Guidelines
Web Development: Using HTML5 & CSS3 11
• All markup tags must be lowercase
 <p>, <strong>, <em>, <blockquote>, <br>, <hr>
• All elements must have both an opening and
closing tag except for empty or void tags
 <p>This is a paragraph tag</p>
 This is a forced line break <br>
• All tags must be properly nested
 <p><strong>This is a paragraph tag</strong></p>
• Attributes can be assigned a value
 <img src="school.jpg" alt="school image" disabled>
Validating Web Documents
• to take away some of the uncertainty of HTML
• The most important validator is the W3C validator at
https://validator.w3.org
Quick Check:
1. What tag always begins an HTML document?
2. What tags are used to contain data that will not display
on the page?
3. Where will the text you type between the <title> tags
be displayed in the browser?
4. What would happen if you did not code the end </title>
tag properly?
5. What tag serve as a container for all the text and
images on a web page?
6. What would you code to make a statement that is not
displayed on a web page?
Exercise 1: Creating a Validated Web Page
Template
Web Development: Using HTML5 & CSS3 14
1. Create a template for developing web pages using HTML5.
2. Save the HTML document as webtemplate.html in a folder
and view using a web browser.
3. Validate the web page template using an W3C’s Markup
Validation Service.
Creating and Editing Web Page
Web Development: Using HTML5 & CSS3 15
Using Heading Tags:
• Increase the size of text and measured in points (pt)
• Six heading tags: <h1>, <h2>, <h3>, <h4>, <h5>, <h6>
• Heading tags make text bold
HTML Code
Browser Display
Creating and Editing Web Page
Web Development: Using HTML5 & CSS3 16
Using Paragraph and Break Tags:
• Control line endings in an HTML document
• <p>…</p> - inserts a blank line between text
• <br> - inserts a line break
HTML Code
Browser Display
Creating and Editing Web Page
Web Development: Using HTML5 & CSS3 17
Using Text Formatting Tags:
• Logical tags – let the browser determine how to
display the text in an HTML document
– <strong>…</strong> and <em>…</em>
• Physical tags – state how text should be displayed
– <b>…</b> and <i>…</i>
HTML Code
Browser
Display
Creating and Editing Web Page
Web Development: Using HTML5 & CSS3 18
Using Text Formatting Tags:
• <sup>…</sup> - makes text a superscript
• <sub>…</sub> - makes text a subscript
HTML Code
Browser Display
Creating and Editing Web Page
Web Development: Using HTML5 & CSS3 19
Using Blockquote Tags:
• Sets enclosed text to appear as a quotation,
indented on the right and left
– <blockquote>…</blockquote>
HTML Code
Browser
Display
Creating and Editing Web Page
Web Development: Using HTML5 & CSS3 20
Using Horizontal Rule:
• <hr> - used to create lines that are used to visually
divide a page into sections
HTML Code
Browser
Display
Creating and Editing Web Page
Web Development: Using HTML5 & CSS3 21
Using Preserve Formatting Tags:
• <pre>…</pre> - preserve the formatting of the
source document the exact way it was written
HTML Code
Browser Display
Creating and Editing Web Page
Web Development: Using HTML5 & CSS3 22
Using Abbreviations and Address:
• <abbr>…</abbr> - abbreviation or acronym
• <address>…</address> - contact information
HTML Code
Browser
Display
Creating and Editing Web Page
Web Development: Using HTML5 & CSS3 23
Inserting Reserved Characters:
Browser Display
Named Entity
Reference
Character
Reference
Symbol
Displayed
Description
&lt; &#60; < Less than
&gt; &#62; > Greater than
&copy; &#169;  Copyright
&nbsp; &#160; (a space) space
&middot; &#183;  Round bullet
HTML Code
• Characters in HTML cannot be created by using a keyboard
Creating and Editing Web Page
Web Development: Using HTML5 & CSS3 24
Using Comments Tag:
• <!–– comment --> - insert comments in HTML
• Not displayed by the browser
HTML Code
Browser
Display
Deprecated Tags
• <acronym>
• <applet>
• <basefont>
• <big>
• <center>
• <dir>
• <font>
• <frame>
• <frameset>
• <isindex>
• <noframes>
• <strike>
• <u>
• <tt>
Web Development: Using HTML5 & CSS3 25
• elements are not available in HTML5 anymore and
their function is better handled by CSS
Exercise 2: Creating a Landing Page in HTML
for a Website
Web Development: Using HTML5 & CSS3 26
1. Create a home page as a landing page of a web site.
2. Format various text contained on a web page.
3. Use HTML elements and attributes to create the home page.

Weitere ähnliche Inhalte

Was ist angesagt?

Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)Chris Poteet
 
Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5Gil Fink
 
Basic HTML
Basic HTMLBasic HTML
Basic HTMLSayan De
 
Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)AakankshaR
 
Basic Html Notes
Basic Html NotesBasic Html Notes
Basic Html NotesNextGenr
 
Presentation on HTML
Presentation on HTMLPresentation on HTML
Presentation on HTMLsatvirsandhu9
 
Complete Lecture on Css presentation
Complete Lecture on Css presentation Complete Lecture on Css presentation
Complete Lecture on Css presentation Salman Memon
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to htmlvikasgaur31
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSSMario Hernandez
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to htmlvikasgaur31
 
Introduction of Html/css/js
Introduction of Html/css/jsIntroduction of Html/css/js
Introduction of Html/css/jsKnoldus Inc.
 
Html5 tutorial for beginners
Html5 tutorial for beginnersHtml5 tutorial for beginners
Html5 tutorial for beginnersSingsys Pte Ltd
 

Was ist angesagt? (20)

Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)
 
Css Ppt
Css PptCss Ppt
Css Ppt
 
Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
 
Basic html
Basic htmlBasic html
Basic html
 
How to learn HTML in 10 Days
How to learn HTML in 10 DaysHow to learn HTML in 10 Days
How to learn HTML in 10 Days
 
Basic HTML
Basic HTMLBasic HTML
Basic HTML
 
Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)
 
Basic Html Notes
Basic Html NotesBasic Html Notes
Basic Html Notes
 
Presentation on HTML
Presentation on HTMLPresentation on HTML
Presentation on HTML
 
Complete Lecture on Css presentation
Complete Lecture on Css presentation Complete Lecture on Css presentation
Complete Lecture on Css presentation
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSS
 
HTML (Web) basics for a beginner
HTML (Web) basics for a beginnerHTML (Web) basics for a beginner
HTML (Web) basics for a beginner
 
HTML CSS Basics
HTML CSS BasicsHTML CSS Basics
HTML CSS Basics
 
Html ppt
Html pptHtml ppt
Html ppt
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
HTML Introduction
HTML IntroductionHTML Introduction
HTML Introduction
 
Introduction of Html/css/js
Introduction of Html/css/jsIntroduction of Html/css/js
Introduction of Html/css/js
 
Html5 tutorial for beginners
Html5 tutorial for beginnersHtml5 tutorial for beginners
Html5 tutorial for beginners
 

Ähnlich wie Basic html structure

Understanding the Web Page Layout
Understanding the Web Page LayoutUnderstanding the Web Page Layout
Understanding the Web Page LayoutJhaun Paul Enriquez
 
Introduction to html course digital markerters
Introduction to html course digital markertersIntroduction to html course digital markerters
Introduction to html course digital markertersSEO SKills
 
Intro to html revised2
Intro to html revised2Intro to html revised2
Intro to html revised2mmvidanes29
 
How the Web Works Using HTML
How the Web Works Using HTMLHow the Web Works Using HTML
How the Web Works Using HTMLMarlon Jamera
 
MTA html5 text_graphics_media
MTA html5 text_graphics_mediaMTA html5 text_graphics_media
MTA html5 text_graphics_mediaDhairya Joshi
 
Basics of html for web development by software outsourcing company india
Basics of html for web development   by software outsourcing company indiaBasics of html for web development   by software outsourcing company india
Basics of html for web development by software outsourcing company indiaJignesh Aakoliya
 
Web Concepts - an introduction - introduction
Web Concepts - an introduction - introductionWeb Concepts - an introduction - introduction
Web Concepts - an introduction - introductionclement swarnappa
 
SDP_-_Module_4.ppt
SDP_-_Module_4.pptSDP_-_Module_4.ppt
SDP_-_Module_4.pptssuser568d77
 
DESIGN THINKING SYLLABUS MATERIAL NOTES UNIT 1 .pptx
DESIGN THINKING SYLLABUS MATERIAL NOTES UNIT 1 .pptxDESIGN THINKING SYLLABUS MATERIAL NOTES UNIT 1 .pptx
DESIGN THINKING SYLLABUS MATERIAL NOTES UNIT 1 .pptxbmit1
 
HTML CSS and Web Development
HTML CSS and Web DevelopmentHTML CSS and Web Development
HTML CSS and Web DevelopmentRahul Mishra
 
Popping the Hood: How to Create Custom SharePoint Branding by Randy Drisgill ...
Popping the Hood: How to Create Custom SharePoint Branding by Randy Drisgill ...Popping the Hood: How to Create Custom SharePoint Branding by Randy Drisgill ...
Popping the Hood: How to Create Custom SharePoint Branding by Randy Drisgill ...SPTechCon
 
3 1-html-fundamentals-110302100520-phpapp02
3 1-html-fundamentals-110302100520-phpapp023 1-html-fundamentals-110302100520-phpapp02
3 1-html-fundamentals-110302100520-phpapp02Aditya Varma
 
Html css crash course may 11th, atlanta
Html css crash course may 11th, atlantaHtml css crash course may 11th, atlanta
Html css crash course may 11th, atlantaThinkful
 
Html:css crash course (4:5)
Html:css crash course (4:5)Html:css crash course (4:5)
Html:css crash course (4:5)Thinkful
 

Ähnlich wie Basic html structure (20)

Understanding the Web Page Layout
Understanding the Web Page LayoutUnderstanding the Web Page Layout
Understanding the Web Page Layout
 
Introduction to html course digital markerters
Introduction to html course digital markertersIntroduction to html course digital markerters
Introduction to html course digital markerters
 
Intro to html revised2
Intro to html revised2Intro to html revised2
Intro to html revised2
 
How the Web Works Using HTML
How the Web Works Using HTMLHow the Web Works Using HTML
How the Web Works Using HTML
 
MTA html5 text_graphics_media
MTA html5 text_graphics_mediaMTA html5 text_graphics_media
MTA html5 text_graphics_media
 
Basics of html for web development by software outsourcing company india
Basics of html for web development   by software outsourcing company indiaBasics of html for web development   by software outsourcing company india
Basics of html for web development by software outsourcing company india
 
Html and html5 cheat sheets
Html and html5 cheat sheetsHtml and html5 cheat sheets
Html and html5 cheat sheets
 
Web Concepts - an introduction - introduction
Web Concepts - an introduction - introductionWeb Concepts - an introduction - introduction
Web Concepts - an introduction - introduction
 
SDP_-_Module_4.ppt
SDP_-_Module_4.pptSDP_-_Module_4.ppt
SDP_-_Module_4.ppt
 
DESIGN THINKING SYLLABUS MATERIAL NOTES UNIT 1 .pptx
DESIGN THINKING SYLLABUS MATERIAL NOTES UNIT 1 .pptxDESIGN THINKING SYLLABUS MATERIAL NOTES UNIT 1 .pptx
DESIGN THINKING SYLLABUS MATERIAL NOTES UNIT 1 .pptx
 
Html Workshop
Html WorkshopHtml Workshop
Html Workshop
 
HTML & CSS.ppt
HTML & CSS.pptHTML & CSS.ppt
HTML & CSS.ppt
 
Lab_Ex1.pptx
Lab_Ex1.pptxLab_Ex1.pptx
Lab_Ex1.pptx
 
HTML CSS and Web Development
HTML CSS and Web DevelopmentHTML CSS and Web Development
HTML CSS and Web Development
 
html
htmlhtml
html
 
Popping the Hood: How to Create Custom SharePoint Branding by Randy Drisgill ...
Popping the Hood: How to Create Custom SharePoint Branding by Randy Drisgill ...Popping the Hood: How to Create Custom SharePoint Branding by Randy Drisgill ...
Popping the Hood: How to Create Custom SharePoint Branding by Randy Drisgill ...
 
HTML Fundamentals
HTML FundamentalsHTML Fundamentals
HTML Fundamentals
 
3 1-html-fundamentals-110302100520-phpapp02
3 1-html-fundamentals-110302100520-phpapp023 1-html-fundamentals-110302100520-phpapp02
3 1-html-fundamentals-110302100520-phpapp02
 
Html css crash course may 11th, atlanta
Html css crash course may 11th, atlantaHtml css crash course may 11th, atlanta
Html css crash course may 11th, atlanta
 
Html:css crash course (4:5)
Html:css crash course (4:5)Html:css crash course (4:5)
Html:css crash course (4:5)
 

Kürzlich hochgeladen

ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
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
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdfChristopherTHyatt
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
🐬 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
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
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
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfhans926745
 
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
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 

Kürzlich hochgeladen (20)

ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 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...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
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
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
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
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 

Basic html structure

  • 1. Web Development: { Basic HTML Structure } Presented by: Mr. Jhaun Paul G. Enriquez MIS Coordinator
  • 2. What is HTML? Web Development: Using HTML5 & CSS3 2 • describes the structure of Web pages using markup • elements are the building blocks of HTML pages • File extension must be .html or .htm World Wide Web Consortium (W3C) Web Hypertext Application Technology Working Group (WHATWG)
  • 3. What is HTML? Web Development: Using HTML5 & CSS3 3 Using Markup Tags or Elements: • Use keywords or tag names • Enclosed within angle brackets (< >) Opening Tag Closing Tag <tagname> content </tagname> <h1> … </h1> <p> … </p> <a> … </a> <body> … </body> <header> … </header> Examples: <hr> <br> <img> <meta> <input> Empty Tags
  • 4. HTML Basic Structure: Syntax Web Development: Using HTML5 & CSS3 4 • has a "custom" HTML syntax that is compatible with HTML 4 and XHTML1 documents XHTML Rules: • Lower case tag names • Quoting our attributes • An attribute had to have a value • Close all empty elements HTML5 Support: • Uppercase tag names. • Quotes are optional for attributes. • Attribute values are optional. • Closing empty elements are optional
  • 5. HTML Basic Structure: Documents Web Development: Using HTML5 & CSS3 5 HTML Web Document XHTML Web Document
  • 6. HTML Basic Structure: Documents Web Development: Using HTML5 & CSS3 6 HTML5 Web Document
  • 7. • used by the web browser to understand the version of the HTML used in the document • Older HTML versions was SGML based and requires a reference to the DTD. HTML Basic Structure: Documents Web Development: Using HTML5 & CSS3 7 DOCTYPE Declaration <!DOCTYPE html> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd>
  • 8. Basic Web Document Elements Tags Description <html> root element of an HTML page <head> represents the document's header <title> mention the document title <meta> provides metadata about the HTML document like character encoding, page description, or keywords <body> represents the document’s body and contains the visible page content Web Development: Using HTML5 & CSS3 8
  • 9. Web Development: Using HTML5 & CSS3 9 Using Block and Inline Elements • Block-level - always starts on a new line and takes up the full width available – <h1> to <h6>, <p>, <div>, <table> or <form> • Inline - does not start on a new line and only takes up as much width as necessary – <strong>, <em>, <b>, <i>, <span>, <img> or <a> Nesting Elements on a Web Page <p>This is a <b>paragraph</b>.</p> <p>This is a <b>paragraph.</p></b>  
  • 10. HTML Basic Structure: Attributes Web Development: Using HTML5 & CSS3 10 • provide additional info about HTML elements • placed within the opening tag • Paired with a "value" Example:
  • 11. HTML Basic Structure: Guidelines Web Development: Using HTML5 & CSS3 11 • All markup tags must be lowercase  <p>, <strong>, <em>, <blockquote>, <br>, <hr> • All elements must have both an opening and closing tag except for empty or void tags  <p>This is a paragraph tag</p>  This is a forced line break <br> • All tags must be properly nested  <p><strong>This is a paragraph tag</strong></p> • Attributes can be assigned a value  <img src="school.jpg" alt="school image" disabled>
  • 12. Validating Web Documents • to take away some of the uncertainty of HTML • The most important validator is the W3C validator at https://validator.w3.org
  • 13. Quick Check: 1. What tag always begins an HTML document? 2. What tags are used to contain data that will not display on the page? 3. Where will the text you type between the <title> tags be displayed in the browser? 4. What would happen if you did not code the end </title> tag properly? 5. What tag serve as a container for all the text and images on a web page? 6. What would you code to make a statement that is not displayed on a web page?
  • 14. Exercise 1: Creating a Validated Web Page Template Web Development: Using HTML5 & CSS3 14 1. Create a template for developing web pages using HTML5. 2. Save the HTML document as webtemplate.html in a folder and view using a web browser. 3. Validate the web page template using an W3C’s Markup Validation Service.
  • 15. Creating and Editing Web Page Web Development: Using HTML5 & CSS3 15 Using Heading Tags: • Increase the size of text and measured in points (pt) • Six heading tags: <h1>, <h2>, <h3>, <h4>, <h5>, <h6> • Heading tags make text bold HTML Code Browser Display
  • 16. Creating and Editing Web Page Web Development: Using HTML5 & CSS3 16 Using Paragraph and Break Tags: • Control line endings in an HTML document • <p>…</p> - inserts a blank line between text • <br> - inserts a line break HTML Code Browser Display
  • 17. Creating and Editing Web Page Web Development: Using HTML5 & CSS3 17 Using Text Formatting Tags: • Logical tags – let the browser determine how to display the text in an HTML document – <strong>…</strong> and <em>…</em> • Physical tags – state how text should be displayed – <b>…</b> and <i>…</i> HTML Code Browser Display
  • 18. Creating and Editing Web Page Web Development: Using HTML5 & CSS3 18 Using Text Formatting Tags: • <sup>…</sup> - makes text a superscript • <sub>…</sub> - makes text a subscript HTML Code Browser Display
  • 19. Creating and Editing Web Page Web Development: Using HTML5 & CSS3 19 Using Blockquote Tags: • Sets enclosed text to appear as a quotation, indented on the right and left – <blockquote>…</blockquote> HTML Code Browser Display
  • 20. Creating and Editing Web Page Web Development: Using HTML5 & CSS3 20 Using Horizontal Rule: • <hr> - used to create lines that are used to visually divide a page into sections HTML Code Browser Display
  • 21. Creating and Editing Web Page Web Development: Using HTML5 & CSS3 21 Using Preserve Formatting Tags: • <pre>…</pre> - preserve the formatting of the source document the exact way it was written HTML Code Browser Display
  • 22. Creating and Editing Web Page Web Development: Using HTML5 & CSS3 22 Using Abbreviations and Address: • <abbr>…</abbr> - abbreviation or acronym • <address>…</address> - contact information HTML Code Browser Display
  • 23. Creating and Editing Web Page Web Development: Using HTML5 & CSS3 23 Inserting Reserved Characters: Browser Display Named Entity Reference Character Reference Symbol Displayed Description &lt; &#60; < Less than &gt; &#62; > Greater than &copy; &#169;  Copyright &nbsp; &#160; (a space) space &middot; &#183;  Round bullet HTML Code • Characters in HTML cannot be created by using a keyboard
  • 24. Creating and Editing Web Page Web Development: Using HTML5 & CSS3 24 Using Comments Tag: • <!–– comment --> - insert comments in HTML • Not displayed by the browser HTML Code Browser Display
  • 25. Deprecated Tags • <acronym> • <applet> • <basefont> • <big> • <center> • <dir> • <font> • <frame> • <frameset> • <isindex> • <noframes> • <strike> • <u> • <tt> Web Development: Using HTML5 & CSS3 25 • elements are not available in HTML5 anymore and their function is better handled by CSS
  • 26. Exercise 2: Creating a Landing Page in HTML for a Website Web Development: Using HTML5 & CSS3 26 1. Create a home page as a landing page of a web site. 2. Format various text contained on a web page. 3. Use HTML elements and attributes to create the home page.

Hinweis der Redaktion

  1. Deprecated - a deprecated language entity is one that is tolerated or supported but not recommended. For example, a number of elements and attributes are deprecated in HTML 4.0 , meaning that other means of accomplishing the task are preferred.