SlideShare a Scribd company logo
1 of 53
ITA3.2 Structural & Semantic Elements of
Web Pages
ITA3.2 1
Essential Question?
What is “semantics” and how is it a benefit of
HTML?
XPXPXPXPXPDisplaying an HTML File
• As you continue modifying the HTML code, you should
occasionally view it with your Web browser to verify that you
have not introduced any errors
• You may want to view the results using different browsers to
check for compatibility
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 3
XPXPXPXPXP
• Article
• Aside
• Footer
• Header
• Nav
• Section
• Blockquote
• Lists – description, un/ ordered lists
• Character sets
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 4
XPXPXPXPXPWhite Space and HTML
• HTML file documents are composed of text characters and
white space
• White space is the blank space, tabs, and line breaks within the
file
• HTML treats each occurrence of white space as a single blank
space
• You can use white space to make your document more
readable
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 5
Jigsaw: each group will
become the “experts” on
the assigned HTML
element
Groups will then report back to the group and
teach the important concepts to other students.
6
Jigsaw Topics
HTML
Headings
&
HTML
Paragraphs
HTML
Formatting
HTML
Layouts
HTML
Links
HTML
Images
HTML
Lists
HTML
Lines &
Breaks
HTML
Blocks
HTML
Colors
HTML
Tables
XPXPXPXPXPHTML Headings
• Important in HTML documents
• Defined with <h1> to <h6> tags
– <h1> defines the most important heading.
– <h6> defines the least important heading.
• Don't use headings to make text BIG or bold.
• Search engines use headings to index the structure and content
of web pages.
• use headings to show the document structure.
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 8
XPXPXPXPXPHTML Paragraphs <p>
• HTML documents are divided into paragraphs.
• Paragraphs are defined with the <p> tag.
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 9
XPXPXPXPXPHTML Horizontal Line <hr>
• HTML Lines
• The <hr> tag creates a horizontal line in an HTML page.
• The hr element can be used to separate content:
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 10
XPXPXPXPXPHTML Line Breaks <br>
• Use the <br> tag if you want a line break (a new line) without
starting a new paragraph:
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 11
The <br> element is an empty HTML element. It has no end tag.
XPXPXPXPXPHTML Preformatted Text <pre>
• displayed in a fixed-width font (usually Courier)
• preserves both spaces and line breaks.
• Use the <pre> element when displaying text with unusual
formatting, or some sort of computer code.
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 12
XPXPXPXPXPHTML Text Formatting
• To apply bold or italic text
• HTML uses tags like <b> and <i> for formatting output, like text.
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 13
Often <strong> renders as <b>, and <em> renders as <i>.
However, there is a difference in the meaning of these tags:
<b> or <i> defines bold or italic text only.
<strong> or <em> means that you want the text to be rendered in a way that the user
understands as "important". Today, all major browsers render strong as bold and em
as italics. However, if a browser one day wants to make a text highlighted with the
strong feature, it might be cursive for example and not bold!
XPXPXPXPXP
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 14
Tag Description How It Looks
<b> Defines bold text This text is bold
<em> Defines emphasized text This text is emphasized
<i>
Defines a part of text in an
alternate voice or mood
This text is italic
<small> Defines smaller text This text is small
<strong> Defines important text This text is strong
<sub> Defines subscripted text
This is subscript and superscript
<sup> Defines superscripted text
<ins> Defines inserted text
This is inserted and deleted
<del> Defines deleted text
<mark>
Defines marked/highlighted
text
HTML Text Formatting Tags
XPXPXPXPXPHTML Links <a>
• Hyperlink: (link) a word, group of words, or
image that you can click on to jump to another
document; when you move the cursor over a link in a Web
page, the arrow will turn into a little hand.
• href attribute: indicates the link's
destination.
• links will appear as follows in all browsers:
– An unvisited link is underlined and blue
– A visited link is underlined and purple
– An active link is underlined and red
15
XPXPXPXPXPHTML Link Syntax
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 16
Tip:
The "Link text" doesn't have to be text. It can be an image or any other HTML element.
XPXPXPXPXPHTML Hyperlink Attributes
• Target attribute  specifies where to open the linked
document
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 17
“_blank” - will open the linked document in a new browser window or a new tab
XPXPXPXPXPHTML Links - The id Attribute
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 18
The id attribute can be used to create a bookmark inside an HTML document.
Tip:
Bookmarks are not
displayed in any special
way. They are invisible to
the reader.
XPXPXPXPXPHTML Images <img>
• The <img> tag is empty - contains attributes only, and has no
closing tag.
• To display an image on a page, you need to use the src
attribute.
• Src = "source“ The value of the src attribute is the URL of the
image you want to display
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 19
XPXPXPXPXPHTML Layouts
• Multiple columns are created by using <div> or <table>
elements.
• CSS are used to position elements, or to create backgrounds or
colorful look for the pages.
• div element: a block level element used for grouping HTML
elements. <div>
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 20
XPXPXPXPXPHTML Tables
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 21
XPXPXPXPXPHTML Lists
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 22
XPXPXPXPXPHTML Blocks
• HTML elements can be grouped together with <div> and
<span>.
• block level elements: normally start (and end) with a new line
when displayed in a browser.
– Examples: <h1>, <p>, <ul>, <table>
• inline elements: normally displayed without starting a new
line.
– Examples: <b>, <td>, <a>, <img>
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 23
XPXPXPXPXPHTML <div>
• a block level element that can be used as a container for
grouping other HTML elements; browser display a line break
before and after
• When used password1
• with CSS, the <div> element can be used to set style attributes
to large blocks of content.
• common use of the <div> element, document layout.
• It replaces the "old way" of defining layout using tables. Using
<table> elements for layout is not the correct use of <table>.
The purpose of the <table> element is to display tabular data.
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 24
XPXPXPXPXPHTML <span>
• The HTML <span> element is an inline element that can be
used as a container for text.
• The <span> element has no special meaning.
• When used together with CSS, the <span> element can be used
to set style attributes to parts of the text.
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 25
XPXPXPXPXPHTML Colors
• Colors are displayed combining RED, GREEN, and BLUE light.
• Color Values
– CSS colors are defined using a hexadecimal (hex) notation for the combination of
Red, Green, and Blue color values (RGB).
– The lowest value that can be given to one of the light sources is 0 (hex 00).
– The highest value is 255 (hex FF).
– Hex values are written as 3 double digit numbers, starting with a # sign.
26
XPXPXPXPXP
Defining the Structure
of the Page Body
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 27
XPXPXPXPXP
Defining the Structure
of the Page Body
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 28
XPXPXPXPXP
Marking Structural Elements
in HTML5
• To mark the page header, use the header element
• To mark the page footer, use the footer element
• To mark a main section of page content, use the section
element
• To mark a sidebar, use the aside element
• To mark an article, use the article element
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 29
XPXPXPXPXP
Marking a Section
with the div Element
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 30
XPXPXPXPXPPage Content Elements
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 31
XPXPXPXPXPWorking with Grouping Elements
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 32
XPXPXPXPXP
Working with
Grouping Elements
• Grouping elements are elements that contain content that is
viewed as a distinct block within the Web page
• Heading elements are block-level elements that contain the
text of main headings on the Web page
– <hn>content<hn>
– n is an integer between 1 and 6
• <h1> is the largest heading
• <h6> is the smallest heading
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 33
XPXPXPXPXPMarking Grouping Content
• To mark a heading, enter
<hn>content</hn>
where n is an integer from 1 to 6 and content is the text of heading
• To mark a paragraph, enter
<p>content</p>
• To mark a block quote, enter
<blockquote>content</blockquote>
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 34
XPXPXPXPXPAdding Headings
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 35
XPXPXPXPXPMarking Paragraph Elements
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 36
XPXPXPXPXPMarking a Block Quote
• The syntax for making an extended quote is
– <blockquote>content</blockquote>
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 37
XPXPXPXPXPMarking an Address
• <address>content</address>
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 38
XPXPXPXPXPMarking a List
• HTML supports three kinds of lists: ordered, unordered, and
description
• You use an ordered list for items that must appear in a
numerical order
• You use an unordered list for items that do not need to occur
in any special order
• One list can contain another list. This is called a nested list
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 39
XPXPXPXPXPDescription Lists
• The description list contains a list of terms, each followed by
the term’s description
• Web browsers typically display the definition description below
the definition term and slightly indented:
Basic Stick
Easiest stick to learn
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 40
XPXPXPXPXPApplying an External Style Sheet
• Style sheets are written in the Cascading Style Sheet (CSS) language
• To apply an external style sheet to a Web page, you create a link within
the document head to the style sheet file using the link element
<link href=”file” rel=”stylesheet” type=”text/css” />
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 41
XPXPXPXPXPLinking to a JavaScript File
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 42
XPXPXPXPXPMarking Text-Level Elements
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 43
XPXPXPXPXP
Using the Generic Elements
div and span
• HTML supports two such generic elements: div and span
– The div element is used to mark general grouping content
– The span element is used to mark general text-level content
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 44
XPXPXPXPXPMarking a Line Break
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 45
XPXPXPXPXPInserting an Inline Image
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 46
XPXPXPXPXPFigures and Figure Captions
• In books and magazines, figures and figure captions are often placed
within boxes that stand aside from the main content of an article
• HTML5 introduced this type of object to Web page markup with the
figure and figcaption elements
<figure>
content
<figcaption>caption</figcaption>
</figure>
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 47
XPXPXPXPXP
Working with Character Sets
and Special Characters
• Character sets come in a wide variety of sizes, based on the
number of symbols required for communication in the chosen
Language
– ASCII (American Standard Code for Information Interchange)
– Latin-1
– ISO 8859-1
– Unicode
– UTF-8
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 48
XPXPXPXPXP
Working with Character Sets
and Special Characters
• Character encoding associates each symbol from a character
set with a numeric value called the numeric character
reference
• Another way to insert a special symbol is to use a character
entity reference, in which a short memorable name is used in
place of the numeric character reference
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 49
XPXPXPXPXP
Working with Character Sets
and Special Characters
• To insert a symbol based on the encoding number, use the entity
&#code;
where code is the encoding number.
• To insert a symbol based on a character entity reference, use the entity
char;
where char is the name assigned to the character.
• To insert a nonbreaking space, use the following entity:
&nbsp;
• To insert the < symbol, use the following entity:
&lt;
• To insert the > symbol, use the following entity:
&gt;
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 50
XPXPXPXPXP
Working with Character Sets
and Special Characters
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 51
XPXPXPXPXPSpecifying a Character Set
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 52
XPXPXPXPXPESSENTIAL QUESTION ANSWERED:
What are the structural elements
in HTML5 and how are they
used??
Tags, elements, containers,
New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 53

More Related Content

What's hot (20)

Elements of html powerpoint
Elements of html powerpointElements of html powerpoint
Elements of html powerpoint
 
HTML basics
HTML basicsHTML basics
HTML basics
 
Html
HtmlHtml
Html
 
Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3
 
Introduction to CSS3
Introduction to CSS3Introduction to CSS3
Introduction to CSS3
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Web development using html 5
Web development using html 5Web development using html 5
Web development using html 5
 
Html tables
Html tablesHtml tables
Html tables
 
Html Basic Tags
Html Basic TagsHtml Basic Tags
Html Basic Tags
 
Unit iv xml dom
Unit iv xml domUnit iv xml dom
Unit iv xml dom
 
Html5
Html5 Html5
Html5
 
Html Simple Tutorial
Html Simple TutorialHtml Simple Tutorial
Html Simple Tutorial
 
Intro webtechstc
Intro webtechstcIntro webtechstc
Intro webtechstc
 
Html5 ppt
Html5 pptHtml5 ppt
Html5 ppt
 
Xhtml
XhtmlXhtml
Xhtml
 
Unit 4 - HTTP and the Web Services - IT
Unit 4 - HTTP and the Web Services - ITUnit 4 - HTTP and the Web Services - IT
Unit 4 - HTTP and the Web Services - IT
 
HTML By K.Sasidhar
HTML By K.SasidharHTML By K.Sasidhar
HTML By K.Sasidhar
 
Web page concept final ppt
Web page concept  final pptWeb page concept  final ppt
Web page concept final ppt
 
Dom date and objects and event handling
Dom date and objects and event handlingDom date and objects and event handling
Dom date and objects and event handling
 
WEB DEVELOPMENT
WEB DEVELOPMENTWEB DEVELOPMENT
WEB DEVELOPMENT
 

Viewers also liked

Conocimiento del medio, los chicos
Conocimiento del medio, los chicosConocimiento del medio, los chicos
Conocimiento del medio, los chicos97981
 
Papiroflexia Pino M Anso 2010
Papiroflexia  Pino  M Anso 2010Papiroflexia  Pino  M Anso 2010
Papiroflexia Pino M Anso 2010Adela Rodríguez
 
Aiden Levett - Character Reference
Aiden Levett - Character ReferenceAiden Levett - Character Reference
Aiden Levett - Character ReferenceAiden Levett
 
Abordaje por traumatismo en medula espinal
Abordaje por traumatismo en medula espinalAbordaje por traumatismo en medula espinal
Abordaje por traumatismo en medula espinalCarmenZ71
 
2016 HKETA Annual book
2016 HKETA Annual book2016 HKETA Annual book
2016 HKETA Annual bookDaniel Chun
 
Intranet, Extranet e Internet como entornos Web.
Intranet, Extranet e Internet como entornos Web.Intranet, Extranet e Internet como entornos Web.
Intranet, Extranet e Internet como entornos Web.Maria Pardenilla
 
Powerful Integrated Marketing Strategies for Communicators
Powerful Integrated Marketing Strategies for CommunicatorsPowerful Integrated Marketing Strategies for Communicators
Powerful Integrated Marketing Strategies for CommunicatorsWax Marketing, Inc.
 
Proteomica y bioinformatica
Proteomica y bioinformaticaProteomica y bioinformatica
Proteomica y bioinformaticaMichelle Santos
 
Srilanka Fact Sheet Travellers tour packages
Srilanka Fact Sheet Travellers tour packagesSrilanka Fact Sheet Travellers tour packages
Srilanka Fact Sheet Travellers tour packagesPradeep Ehan
 
Power Plants and Aquatic Life
Power Plants and Aquatic LifePower Plants and Aquatic Life
Power Plants and Aquatic Lifeguest58d157
 
Strategic Brand Management - Campaign Analysis of Old Spice Man 2010
Strategic Brand Management - Campaign Analysis of Old Spice Man 2010Strategic Brand Management - Campaign Analysis of Old Spice Man 2010
Strategic Brand Management - Campaign Analysis of Old Spice Man 2010Infosys
 
Old Spice campaign - a closer look
Old Spice campaign - a closer lookOld Spice campaign - a closer look
Old Spice campaign - a closer lookFRIENDS Advertising
 

Viewers also liked (19)

Conocimiento del medio, los chicos
Conocimiento del medio, los chicosConocimiento del medio, los chicos
Conocimiento del medio, los chicos
 
Papiroflexia Pino M Anso 2010
Papiroflexia  Pino  M Anso 2010Papiroflexia  Pino  M Anso 2010
Papiroflexia Pino M Anso 2010
 
Tableau des activités avril
Tableau des  activités avrilTableau des  activités avril
Tableau des activités avril
 
Aiden Levett - Character Reference
Aiden Levett - Character ReferenceAiden Levett - Character Reference
Aiden Levett - Character Reference
 
2. ders
2. ders2. ders
2. ders
 
Hidraulica
HidraulicaHidraulica
Hidraulica
 
Abordaje por traumatismo en medula espinal
Abordaje por traumatismo en medula espinalAbordaje por traumatismo en medula espinal
Abordaje por traumatismo en medula espinal
 
2016 HKETA Annual book
2016 HKETA Annual book2016 HKETA Annual book
2016 HKETA Annual book
 
Intranet, Extranet e Internet como entornos Web.
Intranet, Extranet e Internet como entornos Web.Intranet, Extranet e Internet como entornos Web.
Intranet, Extranet e Internet como entornos Web.
 
Framing - Igartua
Framing - IgartuaFraming - Igartua
Framing - Igartua
 
La materia oscura
La materia oscuraLa materia oscura
La materia oscura
 
Powerful Integrated Marketing Strategies for Communicators
Powerful Integrated Marketing Strategies for CommunicatorsPowerful Integrated Marketing Strategies for Communicators
Powerful Integrated Marketing Strategies for Communicators
 
Proteomica y bioinformatica
Proteomica y bioinformaticaProteomica y bioinformatica
Proteomica y bioinformatica
 
Materia oscura
Materia oscuraMateria oscura
Materia oscura
 
Srilanka Fact Sheet Travellers tour packages
Srilanka Fact Sheet Travellers tour packagesSrilanka Fact Sheet Travellers tour packages
Srilanka Fact Sheet Travellers tour packages
 
Power Plants and Aquatic Life
Power Plants and Aquatic LifePower Plants and Aquatic Life
Power Plants and Aquatic Life
 
Strategic Brand Management - Campaign Analysis of Old Spice Man 2010
Strategic Brand Management - Campaign Analysis of Old Spice Man 2010Strategic Brand Management - Campaign Analysis of Old Spice Man 2010
Strategic Brand Management - Campaign Analysis of Old Spice Man 2010
 
India
IndiaIndia
India
 
Old Spice campaign - a closer look
Old Spice campaign - a closer lookOld Spice campaign - a closer look
Old Spice campaign - a closer look
 

Similar to Ita3.2 structural and semantic element theory

Using HTML to Create Web Pages
Using HTML to Create Web PagesUsing HTML to Create Web Pages
Using HTML to Create Web PagesBravocash
 
web development.pdf
web development.pdfweb development.pdf
web development.pdfBagHarki
 
MTA html5 text_graphics_media
MTA html5 text_graphics_mediaMTA html5 text_graphics_media
MTA html5 text_graphics_mediaDhairya Joshi
 
Workshop 2 Slides.pptx
Workshop 2 Slides.pptxWorkshop 2 Slides.pptx
Workshop 2 Slides.pptxDaniyalSardar
 
Introducing Cascading Style Sheets
Introducing Cascading Style SheetsIntroducing Cascading Style Sheets
Introducing Cascading Style SheetsBravocash
 
Chapter 1 Getting Started with HTML5
Chapter 1 Getting Started with HTML5Chapter 1 Getting Started with HTML5
Chapter 1 Getting Started with HTML5Dr. Ahmed Al Zaidy
 
SDP_-_Module_4.ppt
SDP_-_Module_4.pptSDP_-_Module_4.ppt
SDP_-_Module_4.pptssuser568d77
 
HTML (Hypertext Mark-Up Language)
HTML (Hypertext Mark-Up Language)HTML (Hypertext Mark-Up Language)
HTML (Hypertext Mark-Up Language)Bidisha Paul
 
4THseminar ppt on HTML-5.pptx
4THseminar ppt on HTML-5.pptx4THseminar ppt on HTML-5.pptx
4THseminar ppt on HTML-5.pptxAmanJoshi86
 
basic programming language AND HTML CSS JAVApdf
basic programming language AND HTML CSS JAVApdfbasic programming language AND HTML CSS JAVApdf
basic programming language AND HTML CSS JAVApdfelayelily
 
Internet Programming
Internet ProgrammingInternet Programming
Internet ProgrammingFkdiMl
 
Web fundamental concept and tags
Web fundamental concept and tags Web fundamental concept and tags
Web fundamental concept and tags shameen khan
 

Similar to Ita3.2 structural and semantic element theory (20)

Using HTML to Create Web Pages
Using HTML to Create Web PagesUsing HTML to Create Web Pages
Using HTML to Create Web Pages
 
web development.pdf
web development.pdfweb development.pdf
web development.pdf
 
MTA html5 text_graphics_media
MTA html5 text_graphics_mediaMTA html5 text_graphics_media
MTA html5 text_graphics_media
 
Workshop 2 Slides.pptx
Workshop 2 Slides.pptxWorkshop 2 Slides.pptx
Workshop 2 Slides.pptx
 
Introducing Cascading Style Sheets
Introducing Cascading Style SheetsIntroducing Cascading Style Sheets
Introducing Cascading Style Sheets
 
Html
HtmlHtml
Html
 
html
htmlhtml
html
 
Chapter 1 Getting Started with HTML5
Chapter 1 Getting Started with HTML5Chapter 1 Getting Started with HTML5
Chapter 1 Getting Started with HTML5
 
HTML
HTMLHTML
HTML
 
CSS
CSSCSS
CSS
 
SDP_-_Module_4.ppt
SDP_-_Module_4.pptSDP_-_Module_4.ppt
SDP_-_Module_4.ppt
 
HTML (Hypertext Mark-Up Language)
HTML (Hypertext Mark-Up Language)HTML (Hypertext Mark-Up Language)
HTML (Hypertext Mark-Up Language)
 
Lab1_HTML.pptx
Lab1_HTML.pptxLab1_HTML.pptx
Lab1_HTML.pptx
 
4THseminar ppt on HTML-5.pptx
4THseminar ppt on HTML-5.pptx4THseminar ppt on HTML-5.pptx
4THseminar ppt on HTML-5.pptx
 
Kick start @ html5
Kick start @ html5Kick start @ html5
Kick start @ html5
 
basic programming language AND HTML CSS JAVApdf
basic programming language AND HTML CSS JAVApdfbasic programming language AND HTML CSS JAVApdf
basic programming language AND HTML CSS JAVApdf
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
Internet Programming
Internet ProgrammingInternet Programming
Internet Programming
 
HTML and DHTML
HTML and DHTMLHTML and DHTML
HTML and DHTML
 
Web fundamental concept and tags
Web fundamental concept and tags Web fundamental concept and tags
Web fundamental concept and tags
 

Recently uploaded

🐬 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
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
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
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
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
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
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
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
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
 
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
 
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
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
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
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
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
 

Recently uploaded (20)

🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
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
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
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
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
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
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
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
 
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...
 
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
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
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
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
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...
 

Ita3.2 structural and semantic element theory

  • 1. ITA3.2 Structural & Semantic Elements of Web Pages ITA3.2 1
  • 2. Essential Question? What is “semantics” and how is it a benefit of HTML?
  • 3. XPXPXPXPXPDisplaying an HTML File • As you continue modifying the HTML code, you should occasionally view it with your Web browser to verify that you have not introduced any errors • You may want to view the results using different browsers to check for compatibility New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 3
  • 4. XPXPXPXPXP • Article • Aside • Footer • Header • Nav • Section • Blockquote • Lists – description, un/ ordered lists • Character sets New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 4
  • 5. XPXPXPXPXPWhite Space and HTML • HTML file documents are composed of text characters and white space • White space is the blank space, tabs, and line breaks within the file • HTML treats each occurrence of white space as a single blank space • You can use white space to make your document more readable New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 5
  • 6. Jigsaw: each group will become the “experts” on the assigned HTML element Groups will then report back to the group and teach the important concepts to other students. 6
  • 8. XPXPXPXPXPHTML Headings • Important in HTML documents • Defined with <h1> to <h6> tags – <h1> defines the most important heading. – <h6> defines the least important heading. • Don't use headings to make text BIG or bold. • Search engines use headings to index the structure and content of web pages. • use headings to show the document structure. New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 8
  • 9. XPXPXPXPXPHTML Paragraphs <p> • HTML documents are divided into paragraphs. • Paragraphs are defined with the <p> tag. New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 9
  • 10. XPXPXPXPXPHTML Horizontal Line <hr> • HTML Lines • The <hr> tag creates a horizontal line in an HTML page. • The hr element can be used to separate content: New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 10
  • 11. XPXPXPXPXPHTML Line Breaks <br> • Use the <br> tag if you want a line break (a new line) without starting a new paragraph: New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 11 The <br> element is an empty HTML element. It has no end tag.
  • 12. XPXPXPXPXPHTML Preformatted Text <pre> • displayed in a fixed-width font (usually Courier) • preserves both spaces and line breaks. • Use the <pre> element when displaying text with unusual formatting, or some sort of computer code. New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 12
  • 13. XPXPXPXPXPHTML Text Formatting • To apply bold or italic text • HTML uses tags like <b> and <i> for formatting output, like text. New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 13 Often <strong> renders as <b>, and <em> renders as <i>. However, there is a difference in the meaning of these tags: <b> or <i> defines bold or italic text only. <strong> or <em> means that you want the text to be rendered in a way that the user understands as "important". Today, all major browsers render strong as bold and em as italics. However, if a browser one day wants to make a text highlighted with the strong feature, it might be cursive for example and not bold!
  • 14. XPXPXPXPXP New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 14 Tag Description How It Looks <b> Defines bold text This text is bold <em> Defines emphasized text This text is emphasized <i> Defines a part of text in an alternate voice or mood This text is italic <small> Defines smaller text This text is small <strong> Defines important text This text is strong <sub> Defines subscripted text This is subscript and superscript <sup> Defines superscripted text <ins> Defines inserted text This is inserted and deleted <del> Defines deleted text <mark> Defines marked/highlighted text HTML Text Formatting Tags
  • 15. XPXPXPXPXPHTML Links <a> • Hyperlink: (link) a word, group of words, or image that you can click on to jump to another document; when you move the cursor over a link in a Web page, the arrow will turn into a little hand. • href attribute: indicates the link's destination. • links will appear as follows in all browsers: – An unvisited link is underlined and blue – A visited link is underlined and purple – An active link is underlined and red 15
  • 16. XPXPXPXPXPHTML Link Syntax New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 16 Tip: The "Link text" doesn't have to be text. It can be an image or any other HTML element.
  • 17. XPXPXPXPXPHTML Hyperlink Attributes • Target attribute  specifies where to open the linked document New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 17 “_blank” - will open the linked document in a new browser window or a new tab
  • 18. XPXPXPXPXPHTML Links - The id Attribute New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 18 The id attribute can be used to create a bookmark inside an HTML document. Tip: Bookmarks are not displayed in any special way. They are invisible to the reader.
  • 19. XPXPXPXPXPHTML Images <img> • The <img> tag is empty - contains attributes only, and has no closing tag. • To display an image on a page, you need to use the src attribute. • Src = "source“ The value of the src attribute is the URL of the image you want to display New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 19
  • 20. XPXPXPXPXPHTML Layouts • Multiple columns are created by using <div> or <table> elements. • CSS are used to position elements, or to create backgrounds or colorful look for the pages. • div element: a block level element used for grouping HTML elements. <div> New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 20
  • 21. XPXPXPXPXPHTML Tables New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 21
  • 22. XPXPXPXPXPHTML Lists New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 22
  • 23. XPXPXPXPXPHTML Blocks • HTML elements can be grouped together with <div> and <span>. • block level elements: normally start (and end) with a new line when displayed in a browser. – Examples: <h1>, <p>, <ul>, <table> • inline elements: normally displayed without starting a new line. – Examples: <b>, <td>, <a>, <img> New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 23
  • 24. XPXPXPXPXPHTML <div> • a block level element that can be used as a container for grouping other HTML elements; browser display a line break before and after • When used password1 • with CSS, the <div> element can be used to set style attributes to large blocks of content. • common use of the <div> element, document layout. • It replaces the "old way" of defining layout using tables. Using <table> elements for layout is not the correct use of <table>. The purpose of the <table> element is to display tabular data. New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 24
  • 25. XPXPXPXPXPHTML <span> • The HTML <span> element is an inline element that can be used as a container for text. • The <span> element has no special meaning. • When used together with CSS, the <span> element can be used to set style attributes to parts of the text. New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 25
  • 26. XPXPXPXPXPHTML Colors • Colors are displayed combining RED, GREEN, and BLUE light. • Color Values – CSS colors are defined using a hexadecimal (hex) notation for the combination of Red, Green, and Blue color values (RGB). – The lowest value that can be given to one of the light sources is 0 (hex 00). – The highest value is 255 (hex FF). – Hex values are written as 3 double digit numbers, starting with a # sign. 26
  • 27. XPXPXPXPXP Defining the Structure of the Page Body New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 27
  • 28. XPXPXPXPXP Defining the Structure of the Page Body New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 28
  • 29. XPXPXPXPXP Marking Structural Elements in HTML5 • To mark the page header, use the header element • To mark the page footer, use the footer element • To mark a main section of page content, use the section element • To mark a sidebar, use the aside element • To mark an article, use the article element New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 29
  • 30. XPXPXPXPXP Marking a Section with the div Element New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 30
  • 31. XPXPXPXPXPPage Content Elements New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 31
  • 32. XPXPXPXPXPWorking with Grouping Elements New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 32
  • 33. XPXPXPXPXP Working with Grouping Elements • Grouping elements are elements that contain content that is viewed as a distinct block within the Web page • Heading elements are block-level elements that contain the text of main headings on the Web page – <hn>content<hn> – n is an integer between 1 and 6 • <h1> is the largest heading • <h6> is the smallest heading New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 33
  • 34. XPXPXPXPXPMarking Grouping Content • To mark a heading, enter <hn>content</hn> where n is an integer from 1 to 6 and content is the text of heading • To mark a paragraph, enter <p>content</p> • To mark a block quote, enter <blockquote>content</blockquote> New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 34
  • 35. XPXPXPXPXPAdding Headings New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 35
  • 36. XPXPXPXPXPMarking Paragraph Elements New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 36
  • 37. XPXPXPXPXPMarking a Block Quote • The syntax for making an extended quote is – <blockquote>content</blockquote> New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 37
  • 38. XPXPXPXPXPMarking an Address • <address>content</address> New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 38
  • 39. XPXPXPXPXPMarking a List • HTML supports three kinds of lists: ordered, unordered, and description • You use an ordered list for items that must appear in a numerical order • You use an unordered list for items that do not need to occur in any special order • One list can contain another list. This is called a nested list New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 39
  • 40. XPXPXPXPXPDescription Lists • The description list contains a list of terms, each followed by the term’s description • Web browsers typically display the definition description below the definition term and slightly indented: Basic Stick Easiest stick to learn New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 40
  • 41. XPXPXPXPXPApplying an External Style Sheet • Style sheets are written in the Cascading Style Sheet (CSS) language • To apply an external style sheet to a Web page, you create a link within the document head to the style sheet file using the link element <link href=”file” rel=”stylesheet” type=”text/css” /> New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 41
  • 42. XPXPXPXPXPLinking to a JavaScript File New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 42
  • 43. XPXPXPXPXPMarking Text-Level Elements New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 43
  • 44. XPXPXPXPXP Using the Generic Elements div and span • HTML supports two such generic elements: div and span – The div element is used to mark general grouping content – The span element is used to mark general text-level content New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 44
  • 45. XPXPXPXPXPMarking a Line Break New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 45
  • 46. XPXPXPXPXPInserting an Inline Image New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 46
  • 47. XPXPXPXPXPFigures and Figure Captions • In books and magazines, figures and figure captions are often placed within boxes that stand aside from the main content of an article • HTML5 introduced this type of object to Web page markup with the figure and figcaption elements <figure> content <figcaption>caption</figcaption> </figure> New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 47
  • 48. XPXPXPXPXP Working with Character Sets and Special Characters • Character sets come in a wide variety of sizes, based on the number of symbols required for communication in the chosen Language – ASCII (American Standard Code for Information Interchange) – Latin-1 – ISO 8859-1 – Unicode – UTF-8 New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 48
  • 49. XPXPXPXPXP Working with Character Sets and Special Characters • Character encoding associates each symbol from a character set with a numeric value called the numeric character reference • Another way to insert a special symbol is to use a character entity reference, in which a short memorable name is used in place of the numeric character reference New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 49
  • 50. XPXPXPXPXP Working with Character Sets and Special Characters • To insert a symbol based on the encoding number, use the entity &#code; where code is the encoding number. • To insert a symbol based on a character entity reference, use the entity char; where char is the name assigned to the character. • To insert a nonbreaking space, use the following entity: &nbsp; • To insert the < symbol, use the following entity: &lt; • To insert the > symbol, use the following entity: &gt; New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 50
  • 51. XPXPXPXPXP Working with Character Sets and Special Characters New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 51
  • 52. XPXPXPXPXPSpecifying a Character Set New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 52
  • 53. XPXPXPXPXPESSENTIAL QUESTION ANSWERED: What are the structural elements in HTML5 and how are they used?? Tags, elements, containers, New Perspectives on HTML, CSS, and Dynamic HTML 5th Edition 53