Semantic Web

Содержание

Слайд 2

Table of Contents

Web Page
HTML, CSS and JavaScript
The Semantic HTML
HTML5 Semantic Tags
Other Semantics

Table of Contents Web Page HTML, CSS and JavaScript The Semantic HTML

Слайд 3

Web Page

Web Page

Слайд 4

The Elements of a Web Page

A Web page consists of:
HTML markup
CSS rules
JavaScript

The Elements of a Web Page A Web page consists of: HTML
code
JS libraries
Images
Other resources
Fonts, audio, video, etc…

Слайд 5

The Elements of a Web Page: HTML Markup

The HTML is used to define the

The Elements of a Web Page: HTML Markup The HTML is used
content of a Web page
Not the layout
Not the decorations
HTML's role is to present the information in a meaningful manner
Like a paper document
Define headers, paragraphs, textboxes, etc…
Not define size, color and/or positioning

Слайд 6

The Elements of a Web Page: CSS Rules

Cascading Style Sheets (CSS) is the

The Elements of a Web Page: CSS Rules Cascading Style Sheets (CSS)
way to make a Web page look pretty
Define styling rules
Fonts, colors, positioning, etc.
Define the layout of the elements
Define the presentation
The CSS files are attached to a web page and the browser applies these styles to elements

Слайд 7

The Elements of a Web Page: JavaScript Code

JavaScript is the programming language for the

The Elements of a Web Page: JavaScript Code JavaScript is the programming
Web
Makes the Web pages dynamic
Dynamically adding / removing HTML elements, applying styles, etc.
Modern JavaScript UI libraries provide UI components like dialog boxes, grids, tabs, etc.
Like CSS the JavaScript files are attached to a web page

Слайд 8

The Elements of a Web Page: Other Resources

Other resources are needed for a

The Elements of a Web Page: Other Resources Other resources are needed
Web page to run properly
Images, audio files, video files
Flash / Silverlight / ActiveX objects

Слайд 9

The Semantic HTML

The Semantic HTML

Слайд 10

Semantic HTML

Semantic HTML is:
The use of HTML markup to reinforce the semantics

Semantic HTML Semantic HTML is: The use of HTML markup to reinforce
of the information in Web pages
Rather than merely to define its presentation
A kind of metadata about the HTML content
Semantic HTML is processed by regular Web browsers and other user agents
CSS is used to suggest its presentation to human users

Слайд 11

Why Use Semantic HTML?

Semantic HTML is:
Easier to read by developers
Easier to render

Why Use Semantic HTML? Semantic HTML is: Easier to read by developers
by browsers
A way to show the search engines the correct content

Слайд 12

How To Write Semantic HTML

Just follow some guidelines when creating a Web site
Use

How To Write Semantic HTML Just follow some guidelines when creating a
HTML5 semantic tags
,

Слайд 13

HTML5 Semantic Tags

HTML5 Semantic Tags

Слайд 14

HTML5 Semantic Tags

HTML5 introduces semantic structure tags
Imagine the following site:
This is a

HTML5 Semantic Tags HTML5 introduces semantic structure tags Imagine the following site:
common Web page structure
Used in 90% of the web sites

Слайд 15

HTML5 Semantic Tags (2)

This can be created using all kind of HTML elements

,

HTML5 Semantic Tags (2) This can be created using all kind of
, even Browsers will render invalid / wrong / pseudo valid HTML
The correct way: use the HTML 5 semantic tags:
More about semantic tags: http://pavelkolev.com/html5-snippets/





Слайд 16

HTML5 Semantic Tags (3)


Site header or section header or article header

Site footer

HTML5 Semantic Tags (3) Site header or section header or article header
(sometime can be a section footer)

Слайд 17

HTML5 Semantic Tags (4)

HTML5 Semantic Tags (4) Sidebar (usually on the left or on the
(a figure, e.g. inside an article)

A caption of a figure (inside the
tag)

Слайд 18

HTML5 Semantic Tags (5)

+
Accordion-like widget (can be open / closed)

Group

HTML5 Semantic Tags (5) + Accordion-like widget (can be open / closed)
article header + subheader (

+

)

Слайд 19

details> +

Example




summary



Информация об

details> + Example summary Информация об авторе Fox Mulder
авторе

Fox Mulder





Слайд 20

Other Semantics

Headings, ems, strongs

Other Semantics Headings, ems, strongs

Слайд 21

Other Semantics

Headings
Always use headings (

) when you need a heading

Other Semantics Headings Always use headings ( – ) when you need
or title
Like in a MS Word document
Google uses it to mark important content
Strong vs. Bold
does not mean anything
It just makes the text bolder
marks the text is "stronger" than the other, surrounding text

Слайд 22

Other Semantics (2)

Emphasis vs. Italic
Emphasis does not always mean, that

Other Semantics (2) Emphasis vs. Italic Emphasis does not always mean, that
the code should be italic
It could be bolder, italic and underlined
The styles for the emphasis text should be given with CSS
Not by HTML
Old browsers (like IE6)?
Use Modernizr or HTML5shiv
IE6-8, Safari 4.x, Firefox 3.x, iphone 3.x

Слайд 23

Homework

Refactor the html web page and make its HTML semantic (use article,

Homework Refactor the html web page and make its HTML semantic (use
header, nav, section, h1…, footer)

Слайд 24

Homework(2)

2. Create a web page using semantic HTML (use nav, header, section,

Homework(2) 2. Create a web page using semantic HTML (use nav, header,
h1). Logo is an image!

Слайд 25

Homework(3)

Create a web page using semantic HTML
Use some kind of approach

Homework(3) Create a web page using semantic HTML Use some kind of
to support old (non-HTML5-compatible) Web browsers like IE6-IE8 for all exercises
Имя файла: Semantic-Web.pptx
Количество просмотров: 36
Количество скачиваний: 0