Язык разметки гипертекста HTML 5

Содержание

Слайд 2

Table of Contents

Hypertext Markup Language
HTML Concepts
HTML Document Structure
HTML Common Elements
Section Elements
Semantic Structural

Table of Contents Hypertext Markup Language HTML Concepts HTML Document Structure HTML
Tags

Слайд 3

Hypertext Markup Language

Hypertext Markup Language

Слайд 4

Hypertext Markup Language

HTML – Hyper Text Markup Language
A notation for describing
document structure

Hypertext Markup Language HTML – Hyper Text Markup Language A notation for
(semantic markup)
formatting (presentation markup)
Looks (looked?) like:
A Microsoft Word document
The markup tags provide information about the page content structure
A HTML document consists of many tags

Слайд 5

Creating HTML Pages

An HTML document must have an .htm or .html file

Creating HTML Pages An HTML document must have an .htm or .html
extension
HTML files can be created with text editors:
NotePad, NotePad ++, Sublime Text
Or HTML editors (WYSIWYG Editors):
Microsoft WebMatrix
Microsoft Expression Web
Microsoft Visual Studio
Adobe Dreamweaver

Слайд 6

HTML – Past, Present, Future

1991 – HTML first mentioned – Tim Berners-Lee

HTML – Past, Present, Future 1991 – HTML first mentioned – Tim
– HTML tags
1993 – HTML (first public version, published at IETF)
1993 – HTML 2 draft
1995 – HTML 2 – W3C
1995 – HTML 3 draft
1997 – HTML 3.2 – “Wilbur”
1997 – HTML 4 – ”Cougar” – CSS
1999 – HTML 4.01 (final)
2000 – XHTML draft
2001 – XHTML (final)
2008 – HTML5 / XHTML5 draft
2011 – feature complete HTML5
2022 – HTML5 – final specification

Слайд 7

HTML Terminology

Tags, Attributes and Elements

HTML Terminology Tags, Attributes and Elements

Слайд 8

HTML Terminology

Concepts in HTML
Tags
Opening tag and closing tag
The smallest piece in HTML
Attributes
Properties

HTML Terminology Concepts in HTML Tags Opening tag and closing tag The
of the tag
Size, color, etc…
Elements
Combination of opening, closing tag and attributes

Слайд 9

HTML Tags

Tags are the smallest piece in HTML Document
Start with "<" and

HTML Tags Tags are the smallest piece in HTML Document Start with
end with ">"
Two kinds of tags
Opening
Mark the start of an HTML element
Closing
Mark the end of an HTML element
Start in "



Hello Pesho!




Opening tag

Closing tag

Opening tag

Opening tag

Closing tag

Closing tag

Слайд 10

Attributes

Attributes are properties of HTML Elements
Used to set size, color, border, etc…
Put

Attributes Attributes are properties of HTML Elements Used to set size, color,
directly in the tags
Has value surrounded by " " or ' '
The value is always a string


go to Google





Some tags don't have closing tag

Some tags don't have closing tag

Слайд 11

Most Common Attributes

There are some attributes that are common for every HTML

Most Common Attributes There are some attributes that are common for every
element
Id, class, name, style
And some attributes are specific
For example the attribute src of the img element
Shows the path to the image to be shown

Слайд 12

HTML Elements

HTML Elements are combination of tags and attributes
Opening tag with some

HTML Elements HTML Elements are combination of tags and attributes Opening tag
or none attributes and a closing tag

go to Google


Слайд 13

HTML Document Structure

Some elements are essential to each HTML Document:
html, head, body,

HTML Document Structure Some elements are essential to each HTML Document: html,
doctype
The html element
Used to mark the beginning and ending of a HTML document
All the content of the web page is inside this tag




Слайд 14

Head Element

The head tag contains markup that is not visible to the

Head Element The head tag contains markup that is not visible to
user (i.e. the person using the browser)
But helps the browser to render correctly the HTML document
What is in there?
Styles, scripts
Declare encodings
Etc..
The title tag - the text in
the tab of a browser

Слайд 15

Body Element and Doctype

body element contains all the visible to the user

Body Element and Doctype body element contains all the visible to the
markup
Headings, text, hyperlinks, images, etc…
Textboxes, sliders, buttons…
Doctype is kind of the validator of the page
Tells the browser in which version of HTML the page is written
HTML 5 Doctype


Слайд 16

HTML Common Elements

Used in 90% of all the sites

HTML Common Elements Used in 90% of all the sites

Слайд 17

Text Formatting

Text formatting tags modify the text between the opening tag and

Text Formatting Text formatting tags modify the text between the opening tag
the closing tag
Ex. Hello makes "Hello" bold

Many of the formatting tags are deprecated
Use CSS instead

Слайд 18

Some Simple Tags

Hyperlink Tags
Image Tags
Text formatting tags

title="Telerik">Link to Telerik Web

Some Simple Tags Hyperlink Tags Image Tags Text formatting tags title="Telerik">Link to
site

logo

This text is emphasized.

new line

This one is more emphasized.

Слайд 19

Headings and Paragraphs

Heading Tags (h1 – h6)
Paragraph Tags
Sections: div and span

This is

Headings and Paragraphs Heading Tags (h1 – h6) Paragraph Tags Sections: div
my first paragraph


This is my second paragraph


Heading 1


Sub heading 2


Sub heading 3



This is a div

Слайд 20

Apple
Orange
Grapefruit

Ordered Lists:

    Tag

    Create an Ordered List using

      :
      Attribute values for type

    Apple Orange Grapefruit Ordered Lists: Tag Create an Ordered List using :
    are 1, A, a, I, or i

    Apple
    Orange
    Grapefruit

    Apple
    Orange
    Grapefruit

    Apple
    Orange
    Grapefruit

    Apple
    Orange
    Grapefruit


    1. Apple

    2. Orange

    3. Grapefruit


    Слайд 21

    Unordered Lists:

      Tag

      Create an Unordered List using

        :
        Attribute values for type

      Unordered Lists: Tag Create an Unordered List using : Attribute values for
      are:
      disc, circle or square

      Apple
      Orange
      Pear

      Apple
      Orange
      Pear

      Apple
      Orange
      Pear


      • Apple

      • Orange

      • Grapefruit


      Слайд 22

      Definition lists:

      tag

      Create definition lists using


      Pairs of text and associated

      Definition lists: tag Create definition lists using Pairs of text and associated
      definition; text is in
      tag, definition in
      tag
      Renders without bullets
      Definition is indented


      HTML

      A markup language …

      CSS

      Language used to …


      Слайд 23

      Definition list

      Definition list

      Слайд 24

      Section Elements

      The

      and The

      Section Elements The and The

      Слайд 25

      The

      Tag

      creates logical divisions within a page
      Block element
      Used with CSS
      Example:

      The Tag creates logical divisions within a page Block element Used with
      style="font-size:24px; color:red">DIV example

      This one is only a test.


      Слайд 26


      Live Demo


      Live Demo

      Слайд 27

      The Tag
      Inline style element
      Useful for modifying a specific portion of text

      The Tag Inline style element Useful for modifying a specific portion of

      Don't create a separate area (paragraph) in the document
      Mainly used to style parts of a text

      This one is only a test.


      This one is another TEST.


      Слайд 28


      Live Demo

      some text

      Live Demo some text

      Слайд 29

      Semantic Structural Tags

      Semantic Structural Tags

      Слайд 30

      The Structure of a Web Page

      A sample layout structure of a Web

      The Structure of a Web Page A sample layout structure of a Web Page
      Page

      Слайд 31

      The "HTML 4 and Before" Way

      Using divs with IDs
      The IDs are needed

      The "HTML 4 and Before" Way Using divs with IDs The IDs
      for styling











      Слайд 32

      The HTML 5 Way

      In HTML 5 there are semantic tags for layout

      The HTML 5 Way In HTML 5 there are semantic tags for
      ,
      ,

      Work only on newer browsers











      Слайд 33

      Remember

      It is important to have the correct vision and attitude towards HTML
      HTML

      Remember It is important to have the correct vision and attitude towards
      is only about structure, not appearance
      Browsers tolerate invalid HTML code and parse errors – you should not
      Always think about semantics
      The W3C HTML Validator is a way to validate your HTML
      http://validator.w3.org/

      Слайд 34

      Exercises

      Write an HTML page like the following:
      * Use headings, divs, paragraphs and

      Exercises Write an HTML page like the following: * Use headings, divs, paragraphs and ul
      ul

      Слайд 35

      Exercises (2)

      Write an HTML page like the following:

      Exercises (2) Write an HTML page like the following:
      Имя файла: Язык-разметки-гипертекста-HTML-5.pptx
      Количество просмотров: 143
      Количество скачиваний: 0