HTML 5 Overview Document Structure, Basic Tags, Common Elements SoftUni Team Technical Trainers Software University

Slides:



Advertisements
Similar presentations
HTML Basics Customizing your site using the basics of HTML.
Advertisements

HTML popo.
HTML: HyperText Markup Language Hello World Welcome to the world!
1 eVenzia Technologies Learning HTML, XHTML & CSS Chapter 1.
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML
XHTML and CSS Overview. Hypertext Markup Language A set of markup tags and associated syntax rules Unlike a programming language, you cannot describe.
XHTML and CSS Overview. Hypertext Markup Language A set of markup tags and associated syntax rules Unlike a programming language, you cannot describe.
Tutorial 3: Adding and Formatting Text. 2 Objectives Session 3.1 Type text into a page Copy text from a document and paste it into a page Check for spelling.
Introduction to HTML academy.zariba.com 1. Lecture Content 1.What is HTML? 2.The HTML Tag 3.Most popular HTML tags 2.
Creating a Simple Page: HTML Overview
Multimedia and Web Technology Prepared by: Asst. Prof. Maryam Eskandari.
HTML. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is a markup language A markup language.
Creating a Basic Web Page
Week 1.  Phillip Chee   Ext.1214 
AngularJS Routing Routes, Route Parameters, Templates, Location, Navigation SoftUni Team Technical Trainers Software University
HTML (HyperText Markup Language)
HTML history, Tags, Element. HTML: HyperText Markup Language Hello World Welcome to the world!
HTML Hyper Text Markup Language It is used for describing web documents or web pages. A markup language is set of markup tags. HTML documents are described.
CS134 Web Design & Development Creating a Basic Web Page Exerted from Mehmud Abliz slides.
Learning Web Design: Chapter 4. HTML  Hypertext Markup Language (HTML)  Uses tags to tell the browser the start and end of a certain kind of formatting.
Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and attributes Create.
Copyright © 2013 MyGraphicsLab / Pearson Education STRUCTURE AND HTML TAGS MyGraphicsLab: Adobe Dreamweaver CS6 ACA Certification Preparation for Web Communication.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
HTML Structure & syntax. Introduction This presentation introduces the following: Doctype declaration HTML Tags, Elements and Attributes Sections of a.
Svetlin Nakov Technical Trainer Software University
HTML: Hyptertext Markup Language Doman’s Sections.
Copyright © Osmosys O S M O S Y SO S M O S Y S D e p l o y i n g E x p e r i e n c e & E x p e r t i s e™ HTML Training.
XHTML By Trevor Adams. Topics Covered XHTML eXtensible HyperText Mark-up Language The beginning – HTML Web Standards Concept and syntax Elements (tags)
Ali Alshowaish. What is HTML? HTML stands for Hyper Text Markup Language Specifically created to make World Wide Web pages Web authoring software language.
Introduction to HTML Xiangming Mu 9/23/ Learning Objectives Understand basic HTML tags and their attributes Learn to create a simple HTML page.
The past, the present, the future Telerik School Academy HTML, CSS and JavaScript.
SASS & LESS Syntactically Awesome StyleSheets Dynamic StyleSheet Language Svetlin Nakov Technical Trainer Software University
4 HTML Basics Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and.
Web Fundamentals (HTML and CSS) Course Introduction SoftUni Team Technical Trainers Software University
HTML – Other Tags Semantic Tags, Frames, Embed Multimedia Content, Others SoftUni Team Technical Trainers Software University
HTML – Other Tags Semantic Tags, Frames, Embed Multimedia Content, Others SoftUni Team Technical Trainers Software University
Jekyll Static Site Generator Template-Based Site Generation Svetlin Nakov Technical Trainer Software University
Web Fundamentals (HTML and CSS) Course Introduction Svetlin Nakov Technical Trainer Software University
Web Development Tools Tools for Front-End Developers Writing HTML and CSS Code SoftUni Team Technical Trainers Software University
The past, the present, the future Learning & Development Team Telerik Software Academy.
Web Fundamentals (HTML and CSS)
Responsive Design Design that Adapts to Different Devices SoftUni Team Technical Trainers Software University
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
Tables, Rows, Columns, Cells, Header, Footer, Colspan, Rowspan
CSS Transitions and Animations Animated HTML Elements SoftUni Team Technical Trainers Software University
Bootstrap Front-End Framework for Responsive Web Sites Svetlin Nakov Technical Trainer Software University
HTML HYPER TEXT MARKUP LANGUAGE. INTRODUCTION Normal text” surrounded by bracketed tags that tell browsers how to display web pages Pages end with “.htm”
XP Review 1 New Perspectives on JavaScript, Comprehensive1 Introducing HTML and XHTML Creating Web Pages with HTML.
What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
Tutorial #1 Using HTML to Create Web Pages. HTML, XHTML, and CSS HTML – HyperText Markup Language The tags the browser uses to define the content of the.
HTML Tutorial. What is HTML HTML is a markup language for describing web documents (web pages) HTML documents are described by HTML tags Each HTML tag.
Creating Content Defining Topic, Creating Technical Training Materials SoftUni Team Technical Trainers Software University
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML.
First Steps in PHP Creating Very Simple PHP Scripts SoftUni Team Technical Trainers Software University
Presented By Presented By Tanveera Akhter Class:CA 2 nd year Dated:12/12/3456 Dept of Comp. Science.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
HTML Basics Text, Images, Tables, Forms. HTML Structure HTML is comprised of “elements” and “tags” – Begins with and ends with Elements (tags) are nested.
HTML Basics.
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
HTML: HyperText Markup Language
Basic HTML and Embed Codes
Understand basic HTML and CSS terminology, concepts, and basic operations. Objective 3.01.
CS3220 Web and Internet Programming HTML and XML Basics
Lesson 2: HTML5 Coding.
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML
Presentation transcript:

HTML 5 Overview Document Structure, Basic Tags, Common Elements SoftUni Team Technical Trainers Software University

Table of Contents 1.Hypertext Markup Language (HTML) 2.HTML Terminology: Tags, Attributes, Elements 3.HTML Document Structure:,,, DOCTYPE 4.HTML Common Elements: Text, Paragraphs, Headings, Hyperlinks, Images, Lists 5.Section Elements: and 6.Semantic Structural Tags 2

Hypertext Markup Language What is HTML?

Hypertext Markup Language  HTML – Hyper Text Markup Language  A notation for describing  document structure (semantic markup)  formatting (presentation markup)  Looks (looked?) like:  A Microsoft Word document  The markup tags provide meta-information about the page content and define its structure  A HTML document consists of many tags (with nesting) 4

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

HTML – Past, Present, Future  1991 – HTML first mentioned – Tim Berners-Lee – 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  6

HTML Terminology Tags, Attributes and Elements

HTML Terminology  Concepts in HTML  Tags  Opening tag and closing tag  The smallest piece in HTML  Attributes  Properties of the tag, e.g. size, color, etc…  Elements  Combination of opening, closing tag and attributes 8

HTML Tags  Tags are the smallest piece in HTML Document  Start with " "  Two kinds of tags  Opening  Mark the start of an HTML element  Closing  Mark the end of an HTML element  Start with " " 9 Hello HTML5! Hello HTML5! Opening tag Closing tag Opening tag

 Attributes are properties of the HTML elements  Used to specify size, color, borders, etc…  Has value surrounded by " " or ' ' (always a string) go to SoftUni go to SoftUni Attributes 10 Some tags don't have closing tag Some tags don't have s closing tag

Most Common Attributes  Common attributes for every HTML element  id – assigns a unique element identifier (ID)  class – assigns CSS class to styling  name – assigns a name (for form elements)  style – defines inline CSS style definitions  Specific attributes for certain elements  E.g. attribute src of the img element  Shows the path to the image to be shown 11

Custom Attributes  The data- attributes gives us the ability to embed custom data attributes on all HTML elements.  The stored (custom) data can then be used in the page's JavaScript.  Note: Custom attributes prefixed with "data-" will be completely ignored by the user agent. 12

HTML Elements  HTML elements are tags with content  Opening tag (+ attributes) + content + closing tag 13 SoftUni SoftUni Books Books </div> HTML element Opening tag Closing tag Element body (content)

HTML Terminology Live Demo

HTML Document Structure HTML Document, Doctype, Head, Body

HTML Document Structure  Essential elements for each HTML document:  html, head, body, doctype  The element  Used to mark the start and ending of the HTML document  All the content of the web page is inside this tag 16 <html> …</html>

Head Element  The contains markup not visible to the user  But helps the browser to render correctly the HTML document  What is in there?  Styles declarations  Scripts declarations  Encoding specification  Metadata definitions  The title tag – the text in the title (tab title) of the browser 17

DOCTYPE and Body Element  The DOCTYPE declaration is kind of the validator of the page  Tells the browser which version of HTML to use  Prefer the HTML 5 Doctype:  The element contains the entire visible markup  Headings, paragraphs, text, hyperlinks, images, etc…  Forms, textboxes, sliders, buttons, … 18

HTML Document Structure Live Demo

HTML Common Elements Used in 90% of All Internet Sites

 The text formatting tags modify the text inside them  Ex. Hello makes the text "Hello" bold  Most of them are deprecated  use CSS instead! 21 HTML Element Result<strong></strong> strong (bold) <em></em>emphasized <sub></sub> Sample subscript <sup></sup> Sample superscript <b></b>bold <i></i>italicized <u></u>underlined <pre></pre> Preformatted text

Some Simple Tags  Hyperlink tag  Image tag  Text formatting tags 22 SoftUni SoftUni This text is emphasized. This text is emphasized. new line new line This one is more emphasized. This one is more emphasized.

23  External hyperlink  Local hyperlink  Relative hyperlink Hyperlinks SoftUni SoftUni Exercises Exercises … See the exercises See the exercises presentation presentation

24  Images are inserted by the tag  Recommended attributes for all images:  alt – image alternative text (acts like a description)  title – image description (shown on mouse hover)  width, height – the image size  Avoid using width and height attributes. Use CSS instead!  Always assign size to all images! Images <img src="logo.gif" alt="company logo" width="150px" height="150px" title="Company Slogan" /> width="150px" height="150px" title="Company Slogan" />

25  Embedded images have special src attribute:  Use embedded images only as last resort  Not cached  Hard to modify / maintain Embedded Images

Headings and Paragraphs  Heading Tags: –  Paragraph Tags:  Sections: and 26 This is my first paragraph This is my first paragraph This is my second paragraph This is my second paragraph Heading 1 Heading 1 Sub heading 2 Sub heading 2 Sub heading 3 Sub heading 3 This is a div This is a div

Ordered Lists: Tag  Create an Ordered List using :  Attribute values for type are 1, A, a, I, or i 27 Java Java PHP PHP C++ C++ </ol> a.Java b.PHP c.C++ 1.Java 2.PHP 3.C++ A.Java B.PHP C.C++ I.Java II.PHP III.C++ i.Java ii.PHP iii.C++

Unordered Lists: Tag  Create an U nordered L ist using :  Attribute values for type are: disc, circle and square 28 Java PHP C++ o Java o PHP o C++  Java  PHP  C++ Java Java PHP PHP C++ C++ </ul>

Definition lists: tag  Create definition lists using  Pairs of text ( ) and associated definition ( )  Renders without bullets  Definition is indented 29 <dl><dt>HTML</dt> A markup language … A markup language … <dt>CSS</dt> Language used to … Language used to … </dl>

HTML Common Elements Live Demo

Section Elements and

The Tag  creates logical divisions within a page  Block element (rendered as rectangle)  Typically used with CSS classes  s can be nested as blocks  Example: 32 DIV example DIV example This one is only a test. This one is only a test.

Live Demo

The Tag  is inline styling element  Useful for modifying a specific portion of text  Inline element  doesn't create a separate area (paragraph) in the document  Used to style pieces of text 34 This one is only a test. This one is only a test. This one is another TEST. This one is another TEST.

Live Demo

Semantic Structural Tags

The Structure of a Web Page  A typical layout structure of a Web page

The "HTML 4 and Before" Way  Using s with ID s (the IDs are needed for styling) 38 <html> … … <body> </body></html>

The HTML 4 Way Live Demo

The HTML 5 Way  In HTML 5 there are semantic tags for layout ,,,, 40 <html> … … <body> </body></html>

Semantic Structural Tags Live Demo

42  HTML should be well formatted  Nested tags should be indented on the right, but not always!  Any sequence of whitespace converts to a single space HTML Code Formatting </div> </div> We have a space after the image! We have a space before the image!

43  Character entities are used to display reserved characters in HTML.  Characters, not present on your keyboard, can also be replaced by entities.  Entities can be presented by name or by number. HTML Entities <div> <div></div> <div></div></div> Result will be a div with content as text start (&) name end (;)

HTML Tips and Practices  Have the correct vision and attitude towards HTML  HTML is only about structure, not appearance  Browsers tolerate invalid HTML code and parse errors  You should always write correct HTML  Format your HTML code  Always think about semantics  The W3C HTML Validator is a way to validate your HTML 

45  HTML describe structured content (text, images, tables, figures, etc.) in HTML elements  Elements consist of open / closing tag + content  HTML documents consist of +  Commonly used HTML tags: ,,,,,,, …,,,,,,,  are block elements  is inline element Summary

? ? ? ? ? ? ? ? ? HTML 5 - Overview

License  This course (slides, examples, demos, videos, homework, etc.) is licensed under the "Creative Commons Attribution- NonCommercial-ShareAlike 4.0 International" licenseCreative Commons Attribution- NonCommercial-ShareAlike 4.0 International 47  Attribution: this work may contain portions from  "HTML Basics" course by Telerik Academy under CC-BY-NC-SA licenseHTML BasicsCC-BY-NC-SA  "CSS Styling" course by Telerik Academy under CC-BY-NC-SA licenseCSS StylingCC-BY-NC-SA

Free Software University  Software University Foundation – softuni.orgsoftuni.org  Software University – High-Quality Education, Profession and Job for Software Developers  softuni.bg softuni.bg  Software Facebook  facebook.com/SoftwareUniversity facebook.com/SoftwareUniversity  Software YouTube  youtube.com/SoftwareUniversity youtube.com/SoftwareUniversity  Software University Forums – forum.softuni.bgforum.softuni.bg