SlideShare uma empresa Scribd logo
1 de 13
Baixar para ler offline
Certified HTML5 Developer
Sample Material
Certified HTML5 Developer
www.vskills.in Page 8
1. HTML1. HTML1. HTML1. HTML5555
1.1 Introduction1.1 Introduction1.1 Introduction1.1 Introduction
Printed information around us whether in the form of newspaper, magazine, books or printed
forms; are divided into small parts like a magazine into articles and each article has its own
heading, sometimes a summary and then followed by the article which is further divided into
paragraphs. Similarly a web site has many web pages composed of images, text, links to other pages
and audio or video for an enriching experience.
Web is a collection of documents that all link together, and bear a strong similarity to the printed
documents around us. Web pages are written in HTML (Hypertext Markup Language) or
XHTML (eXtensible Hypertext Markup Language). Both are document-layout and hyperlink-
specification language. They define how to display the contents of the document, including text,
images, and other support media. The language also tells how to make hypertext links, which
connect document with other documents.
In keeping with the principle of separation of concerns, the function of HTML is primarily to add
structural and semantic information to the raw text of a document. Presentation and behavior are
separate functions, which can be added as desired, ideally through links to external documents
such as style sheets, graphics files, and scripts.
1.2 History1.2 History1.2 History1.2 History
Physicist Berners-Lee specified HTML and wrote the browser, server software and the World
Wide Web in the late 1990. World Wide Web's systems enabled hypertext linking, so documents
automatically reference other documents, located anywhere thus, giving convenience and
increasing productivity.
1.3 HTML Versions1.3 HTML Versions1.3 HTML Versions1.3 HTML Versions
There have been several versions of HTML and is overseen by an organization called the W3C
(World Wide Web Consortium). The last major version of HTML was HTML 4.01 in
December 1999. In January 2000, some stricter rules were added to HTML 4.01, called as
XHTML (Extensible Hypertext Markup Language). HTML 5 is the latest revision of the HTML
standard and currently remains under development.
1.4 HTML51.4 HTML51.4 HTML51.4 HTML5 EnhancementsEnhancementsEnhancementsEnhancements
There have been several enhancements in HTML5, which are summarized as
HTML 5 New Doctype and CharsetHTML 5 New Doctype and CharsetHTML 5 New Doctype and CharsetHTML 5 New Doctype and Charset
HTML5 new tagsHTML5 new tagsHTML5 new tagsHTML5 new tags – HTML5 has created tags to support newer structural elements as
<section> - to define sections of pages
<header> - defines the header of a page
<footer> - defines the footer of a page
<nav> - defines the navigation on a page
<article> - defines the article or primary content on a page
<aside> - defines extra content like a sidebar on a page
<figure> - defines images that annotate an article
Certified HTML5 Developer
www.vskills.in Page 9
HTML 5 New Inline ElementsHTML 5 New Inline ElementsHTML 5 New Inline ElementsHTML 5 New Inline Elements - These new inline elements define some basic concepts and keep
them semantically marked up as
<mark> - to indicate content that is marked in some fashion
<time> - to indicate content that is a time or date
<meter> - to indicate content that is a fraction of a known range - such as disk usage
<progress> - to indicate the progress of a task towards completion
HTML 5 New Dynamic Pages SupportHTML 5 New Dynamic Pages SupportHTML 5 New Dynamic Pages SupportHTML 5 New Dynamic Pages Support ---- HTML 5 was developed to help Web application
developers, so there are a lot of new features to make it easy to create dynamic HTML pages as
Context menus creation and use within web pages and applications
async attribute - This is added to the script tag to tell the browser that the script should be
loaded asynchronously so that it doesn't slow down the load and display of the rest of the page.
<details> - provides details about an element like tooltips.
<menu> - an old tag brought back and given new life allowing to create a menu system on your
Web pages
<command> - defines actions that should happen when a dynamic element is activated
HTML 5 New Form TypesHTML 5 New Form TypesHTML 5 New Form TypesHTML 5 New Form Types - HTML 5 adds a few more form input types as datetime, datetime-
local, date, month, week, time, number, range, email and url
HTML 5 New ElementsHTML 5 New ElementsHTML 5 New ElementsHTML 5 New Elements - There are a few exciting new elements in HTML 5 as
<canvas> - an element to give a drawing space in JavaScript on Web pages.
<video> - add video to Web pages with as a tag.
<audio> - add sound to Web pages with as a tag.
1.1.1.1.5555 Elements, Tags and AttributesElements, Tags and AttributesElements, Tags and AttributesElements, Tags and Attributes
HTML is an embedded language, the language's directions or tags are inserted into the HTML
document that browser loads for viewing. The web browser uses the information inside the HTML
tags to decide how to display or otherwise treat the subsequent contents of a HTML document.
Similar to a word processor like MS-Word in which styles are applied to the text; in a HTML
document markups or tags are applied to stylize text as bold or italicize. Specific tags are applied
on the text for specific styling.
HTML documents are composed of a tree of HTML elements. Each element can have attributes
specified. Elements can also have content, including other elements and text. HTML elements
represent semantics, or meaning. For example, the title element represents the title of the
document. In the HTML syntax, most elements are written with a start tag and an end tag, with the
content in between like
<p>In the HTML syntax, most elements are written ...</p>
However, not all of these elements require the end tag, or even the start tag, to be present like the
br element.
HTML elementHTML elementHTML elementHTML element – It represents structure or semantics and generally consists of a start tag, content,
and an end tag for example, following is a bold element
<b> This is in bold or more dark.</b>
Certified HTML5 Developer
www.vskills.in Page 10
HTML tagsHTML tagsHTML tagsHTML tags – They are used to mark the start and end of an HTML element.
Start tagStart tagStart tagStart tag has opening angle bracket (<) followed by element name, zero or more space separated
attribute/value pairs, and a closing angle bracket (>).
A start tag with no attributes: <p>
A start tag with an attribute <p class="info">
End tagEnd tagEnd tagEnd tag has opening angle bracket followed by forward slash, the element name, and a closing
angle bracket
</p>
Empty tEmpty tEmpty tEmpty tagagagag There are also some elements that are empty, meaning that they only consist of a single
tag and do not have any content and look like opening tags
<br>
In XHTML. empty elements must have an end tag or the start tag must end with ‘/>’ so it is used
as
<br />
DifferenceDifferenceDifferenceDifference - A tag consists of a left- and right-angle bracket and letters and numbers between those
brackets, but an element is the opening and closing tags plus anything between the two tags.
HTML AttributesHTML AttributesHTML AttributesHTML Attributes – It defines property for an element, consists of an name and value pair
appearing within the element’s start tag. Multiple name and value pairs are space separated.
All are illustrated in the figure
1.1.1.1.6666 Head and body tagsHead and body tagsHead and body tagsHead and body tags
A web page is contained between the opening <html> and closing </html> tags.
<html> element<html> element<html> element<html> element
Certified HTML5 Developer
www.vskills.in Page 11
This element contains the whole HTML document. HTML document should have one opening
<html> tag and document should end with a closing </html> tag. It has <head> and <body> tags in
it.
<head> element<head> element<head> element<head> element
It is the head of the page, having information about the page but not the content of the page as it
contain a title and a description of the page, or location for CSS and JavaScript files. The element
has an opening <head> tag, the closing </head> tag, and everything in between.
<b<b<b<body> elementody> elementody> elementody> element
It is the body of the web page and has all the content seen on the web page. It consists of the
opening <body> tag, closing </body> tag, and everything in between. Usually it appears after
<head> element and the contents in it are also called as body content. It can have some paragraphs
or complicated layouts having forms and tables for example
<body>
<p>This is a paragraph tag.</p>
</body>
NestingNestingNestingNesting
An element containing other elements, must wholly contain that element. This is called as nesting
elements correctly.
1.1.1.1.7777 HTML EditorHTML EditorHTML EditorHTML Editor
HTML editors are used help a HTML5 developer efficiently and effectively develop web pages in
HTML5 which are not only compliant to standards but also fulfill the user need. Some popular
HTML editors are listed
Amaya (www.w3.org/Amaya) Open-source software on Windows/Mac/Linux and has
WYSIWYG visual editor and Spell-checking
CoffeeCup (www.coffeecup.com) Paid software on Windows only and has WYSIWYG visual
editor, FTP upload, Spell-checking, and Templates
Dreamweaver (www.adobe.com/products/dreamweaver) Paid software on Windows/Mac and
has WYSIWYG visual editor with browser preview, FTP upload, Spell-checking, Templates,
Server-side scripting and Multi-user editing
1.1.1.1.8888 Create a web pageCreate a web pageCreate a web pageCreate a web page
The whole web page with html, head and body tag is made by joining earlier sections as
<html>
<head>
<title>Head tag example </title>
<meta name="Keywords" content=" Head tag, example” />
<meta name="description" content=" Head tag example" />
<base href="http://www.vskills.com" />
Certified HTML5 Developer
www.vskills.in Page 12
<link rel="stylesheet" type="text/css" href="style.css" />
<script type="text/javascript">
function show_alert()
{
alert("This is confidential page!");
}
</script></head>
<body>
<p>This is a paragraph tag.</p>
</body>
</html>
1.1.1.1.9999 Viewing the SViewing the SViewing the SViewing the Sourceourceourceource
People learn about HTML by using the view source facility provided by almost all the browsers.
Following steps are to be taken
In the web browser, open the page whose code we like to see.
Choose View > Page Source or Page > View Source, or View Source.
Viewing existing HTML code usually facilitate an inexperienced person to locate areas that cause
problems. Furthermore it enables to learn various features on existing web pages that may
encounter while surfing the web. There are two ways of viewing source HTML
Right clickingRight clickingRight clickingRight clicking – Right click of mouse on the web page, and then clicking View source. In case of
frames, source of frame is accessed and not that of the web page.
Menu BarMenu BarMenu BarMenu Bar – In view menu which is usually present in all browsers, click the source option to view
the source code.
Right ClickRight ClickRight ClickRight Click View MenuView MenuView MenuView Menu
HTML code can easily be copied to be used for other pages or they can be taken from existing
web pages, and then modifying that code to suite needs.
Certified HTML5 Developer
www.vskills.in Page 13
1.1.1.1.10101010 White Space and FlowWhite Space and FlowWhite Space and FlowWhite Space and Flow
Spaces, tabs and new lines are all called as white spaces. White spaces given in the source HTML
is taken as a single space and would also appear as one space by the browser. This phenomenon is
called white space collapsing. A new line or consecutive empty lines, all these are treated as one
space.
<p>The
lines of
this paragraph
are present on
multiple lines
and also space between
words are
treated as a single space. Also
the large spaces between
some of the
words will also not appear
in the
browser.
This is how white space just collapses as a single space.</p>
Browser displays text in the full width of the screen and wraps the text onto new lines when no
space is present. White space collapsing helps in adding spaces in web page for commenting which
does not show in a browser as shown
1.11.11.11.11111 HTML CommentsHTML CommentsHTML CommentsHTML Comments
It is part of HTML which is ignored by web browser and is used usually for commenting HTML
tag blocks, to indicate sections of a document or any specific instructions about it. It helps to
understand the HTML code more easily by adding comments to them. But if comments are used
around HTML code then, the code block will not be shown hence, commenting is to be done with
care and precaution.
Single Line CommentSingle Line CommentSingle Line CommentSingle Line Comment
It is indicated by special starting tag “<!—“and closing tag “-->” placed at the beginning and end of
line to be treated as a comment. Comments do not nest and there should be no space in the start-
of-comment string like “< !—“ will not be treated as comment but will be shown on the screen. An
example of valid comment is
<!-- This is single line comment. -->
Certified HTML5 Developer
www.vskills.in Page 14
Multi line CommentsMulti line CommentsMulti line CommentsMulti line Comments
Commenting multiple lines is done by placing the multiple or different lines between the starting
tag “<!—“ and closing tag “-->”to be treated as a comment like
<!--
This is multi line comment
and can comment many lines
present in this block.
-->
Conditional CommentsConditional CommentsConditional CommentsConditional Comments
They are supported by Internet Explorer 5 onwards on Windows, and give instructions specific to
Internet Explorer for browser specific instructions. They can also distinguish between different
versions 5.0, 5.5 and 6.0 for example
<!--[if IE 6]>
Special instructions for IE 6 here
<![endif]-->
They are similar to a comment by using “<!-- -->”so that other browsers treat them as comment but
internet explorer recognize it and executes the instructions.
Comment tagComment tagComment tagComment tag
Some browsers support <comment> tag for commenting.
<comment>This is a comment.</comment>
1.11.11.11.12222 HTML Meta TagsHTML Meta TagsHTML Meta TagsHTML Meta Tags
Meta tags specify metadata about the document. Metadata is information about a document and
not the content of document and usually include items like author, keywords, date and time of
publishing the content, etc. Meta element is used and has name/value pairs describing metadata.
The <meta> tag being a empty element does not have a closing tag, but have information in
attributes.
Metadata given by meta tag is important part of webpage as it helps search engines to index the
webpage as per different search criteria so as to find best match for a user search. Search engines
usually scan keywords on the webpage for its relevance. <meta> tags are placed between <head>
and </head> tags and its attributes are discussed
AttributeAttributeAttributeAttribute DetailDetailDetailDetail
Name Name of property like keywords, description, author etc.
content Value of the property'.
scheme How to interpret value of property (given in content attribute).
http-equiv http response message headers details like to refresh the page or to set a
cookie. Values include content-type, expires, refresh and set-cookie.
Attributes with examples are listed
KeywordsKeywordsKeywordsKeywords – It is used by search engines for indexing a web page and is given by
Certified HTML5 Developer
www.vskills.in Page 15
<head>
<meta name="keywords" content="Vskills, HTML, Certification" />
</head>
DescriptionDescriptionDescriptionDescription – It is also used by search engines for indexing the web page as it provides some
information about the web page and it is given by
<head>
<meta name="description" content="Certification in HTML." />
</head>
Revision dateRevision dateRevision dateRevision date – It is to indicate last update time of the document and is given by
<head>
<meta name="revised" content="Vskills, 6/12/2011" />
</head>
RefreshingRefreshingRefreshingRefreshing – It specifies duration after which web page will refresh itself and for a 15 seconds
refresh is given by
<head>
<meta http-equiv="refresh" content="15" />
</head>
Page RedirectionPage RedirectionPage RedirectionPage Redirection – It is for redirecting to another web page using meta tag and usually used with
refresh but if no refresh value is given then redirection takes place immediately.
<head>
<meta http-equiv="refresh"
content="15; url=http://www.vskills.in" />
</head>
CookiesCookiesCookiesCookies - They store data on client computers to be used by web server for tracking a web page
visitor.
<head>
<meta http-equiv="cookie" content="userid=new; course=HTML;
expires=Wednesday, 18-Jun-12 23:59:59 GMT;” /> </head>
If no expiration date and time is given, cookie becomes a session cookie and is deleted when the
user closes the browser.
AuthorAuthorAuthorAuthor – It is given as
<head>
<meta name="author" content="Vskills" />
</head>
1.11.11.11.13333 HTML AttributesHTML AttributesHTML AttributesHTML Attributes
As discussed earlier, attributes specify properties of an element by name and value pairs thus,
attributes are made up of a name and a value.
The name is the property of element like <font> element has an attribute face for telling the
typeface to use. The value is assigned in double quotation marks separated by equals sign to the
Certified HTML5 Developer
www.vskills.in Page 16
name and the value can be arial or courier for face name of font element. Different attributes are
separated by space as in example
<font face="courierl" color="#ffffff">
Some HTML tags have attributes specific to them only but all have some common attributes.
1.11.11.11.14444 XHTML First LineXHTML First LineXHTML First LineXHTML First Line
XHTML language is derived from Extensible Markup Language (XML) which creates markup
languages, and can have an optional XML declaration at start.
<?xml version=”1.0” encoding=”UTF-8” ?>
If included then this declaration should be at the start of document and nothing above it.
Encoding attribute tells about the encoding used in web document to represent characters for
display. Encoding is mentioned as different hardware and software uses different method to
represent character (or encoding).
1.151.151.151.15 DTD (Document Type Declaration)DTD (Document Type Declaration)DTD (Document Type Declaration)DTD (Document Type Declaration)
XHTML is stricter in rule implementation as compared to HTML but being in transition from
HTML, XHTML gives three levels of compliance to a web page which are indicated by Doctype
or Document Type Declaration and which are
Transitional XHTML 1.0 to allow use of outdated markups of HTML 4.1
Strict XHTML 1.0 is used with no outdated markup. It follows XHTML stricter syntax.
Frameset XHTML 1.0 to allow frames in web pages.
Usually transitional XHTML 1.0 is used and the doctype declaration is before <html> tag, and
after optional XML Declaration. Different doctype declarations are
For transitional -
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN”
“http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
For strict -
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN”
“http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
For frameset -
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Frameset//EN”
“http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd”>
1.161.161.161.16 HTML5 newHTML5 newHTML5 newHTML5 new DDDDoctype andoctype andoctype andoctype and CCCCharsetharsetharsetharset
HTML5 defines an HTML syntax that is compatible with HTML4 and XHTML1 documents
published on the Web. The HTML syntax of HTML5 requires a DOCTYPE to be specified to
ensure that the browser renders the page in standards mode. The DOCTYPE declaration is
<!DOCTYPE html> and is case-insensitive in the HTML syntax.
Certified HTML5 Developer
www.vskills.in Page 17
For the HTML syntax of HTML5, setting the character encoding is done by using a meta
element with a charset attribute that specifies the encoding within the first 1024 bytes of the
document. E.g. <meta charset="UTF-8"> could be used to specify the UTF-8 encoding. This
replaces the need for <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
although that syntax is still allowed.
Following example of a HTML5 web page illustrates the usage of new doctype and charset
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Example document</title>
</head>
<body>
<p>Example paragraph</p>
</body>
</html>
1.11.11.11.17777 SpecSpecSpecSpecial Charactersial Charactersial Charactersial Characters
Some characters other than alphanumeric characters have special meaning and some have no
keyboard equivalent to enter like the angle brackets can be thought as markup by the browser.
Hence, for them special characters called character entity or escape character are used. Character
entities can be typed as either a numbered entity or a named entity. All character entities begin
with an ampersand (&) and end with a semicolon (;). Example of them is
CharacterCharacterCharacterCharacter Numbered EntityNumbered EntityNumbered EntityNumbered Entity Named EntityNamed EntityNamed EntityNamed Entity
" &#34; &quot;
& &#38; &amp;
© &#169; &copy;
® &#174; &reg;
< &#60; &lt;
> &#62; &gt;
1.11.11.11.18888 CapitalizationCapitalizationCapitalizationCapitalization
Earlier version of HTML was case-insensitive so <html>, <HTML> or <HTml> were treated
equally but HTML4, HTML 5 and XHTML are case-sensitive and requires all tags to be
lowercase so only <html> is valid. Hence it is recommended to use all-lowercase tags.
1.11.11.11.19999 QuotationsQuotationsQuotationsQuotations
HTML and XHTML requires all values to be in quotation marks, as shown below
Certified HTML5 Developer
www.vskills.in Page 18
1.1.1.1.20202020 NestingNestingNestingNesting
It refers to the process of containing one HTML tag inside another like <body> and <head> tags
are nested in <html> tag as shown
All tags should close as they have been opened within the tag it was opened.
1.1.1.1.22221111 Spacing and BreaksSpacing and BreaksSpacing and BreaksSpacing and Breaks
Spacing is needed between tags and attributes and more rules need to be followed in applying
spacing which is illustrated by the image
1.211.211.211.21 HTML5 Global attributesHTML5 Global attributesHTML5 Global attributesHTML5 Global attributes
Attributes which apply to all elements are called global attributes like accesskey, class, dir, id, lang,
style, tabindex and title. There are also several new global attributes in HTML5 as
The contenteditable attribute for an editable area.
The contextmenu attribute for a context menu.
The data-* collection of author-defined attributes.
The draggable and dropzone attributes.
The hidden attribute for an element which is not yet, relevant.
The role and aria-* collection attributes.
The spellcheck attribute.
HTML5 also makes all event handler attributes from HTML4, which take the form onevent-
name, global attributes and adds several new event handler attributes for new events it defines. E.g.
the play event which is used by the API for the media elements (video and audio).
Certified HTML5 Developer
www.vskills.in Page 19
Self Assessment QuestionsSelf Assessment QuestionsSelf Assessment QuestionsSelf Assessment Questions
Q.1 XHTML standard came before HTML 4.0
A. True
B. False
C. Can not say
D. None
Q.2 XHTML standard came before HTML 5.0
A. True
B. False
C. Can not say
D. None
Q.3 All elements should have a closing tag
A. True
B. False
C. Can not say
D. None
AnswersAnswersAnswersAnswers :::: 1-B, 2-A,3-B

Mais conteúdo relacionado

Mais procurados

Web technology practical list
Web technology practical listWeb technology practical list
Web technology practical list
desaipratu10
 

Mais procurados (18)

Css 2010
Css 2010Css 2010
Css 2010
 
Html css java script basics All about you need
Html css java script basics All about you needHtml css java script basics All about you need
Html css java script basics All about you need
 
CSS Comprehensive Overview
CSS Comprehensive OverviewCSS Comprehensive Overview
CSS Comprehensive Overview
 
4. html css-java script-basics
4. html css-java script-basics4. html css-java script-basics
4. html css-java script-basics
 
Vskills certified html designer Notes
Vskills certified html designer NotesVskills certified html designer Notes
Vskills certified html designer Notes
 
Session4
Session4Session4
Session4
 
Introduction to Web Design
Introduction to Web DesignIntroduction to Web Design
Introduction to Web Design
 
Practical file on web technology(html)
Practical file on web technology(html)Practical file on web technology(html)
Practical file on web technology(html)
 
Html viva questions
Html viva questionsHtml viva questions
Html viva questions
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Web technology practical list
Web technology practical listWeb technology practical list
Web technology practical list
 
Hyper text markup Language
Hyper text markup LanguageHyper text markup Language
Hyper text markup Language
 
HTML Basic, CSS Basic, JavaScript basic.
HTML Basic, CSS Basic, JavaScript basic.HTML Basic, CSS Basic, JavaScript basic.
HTML Basic, CSS Basic, JavaScript basic.
 
Lecture1
Lecture1Lecture1
Lecture1
 
HTML 5 Topic 2
HTML 5 Topic 2HTML 5 Topic 2
HTML 5 Topic 2
 
Html
HtmlHtml
Html
 
HTML5 Topic 1
HTML5 Topic 1HTML5 Topic 1
HTML5 Topic 1
 
HTML + CSS Examples
HTML + CSS ExamplesHTML + CSS Examples
HTML + CSS Examples
 

Destaque

Destaque (13)

Solution Architecture Cassandra
Solution Architecture CassandraSolution Architecture Cassandra
Solution Architecture Cassandra
 
Amazon Redshift Analytical functions
Amazon Redshift Analytical functionsAmazon Redshift Analytical functions
Amazon Redshift Analytical functions
 
Cassandra data modelling best practices
Cassandra data modelling best practicesCassandra data modelling best practices
Cassandra data modelling best practices
 
Apache Cassandra Certification
Apache Cassandra CertificationApache Cassandra Certification
Apache Cassandra Certification
 
Time-Evolving Graph Processing On Commodity Clusters
Time-Evolving Graph Processing On Commodity ClustersTime-Evolving Graph Processing On Commodity Clusters
Time-Evolving Graph Processing On Commodity Clusters
 
Solution Architecture - AWS
Solution Architecture - AWSSolution Architecture - AWS
Solution Architecture - AWS
 
The Governance Framework For Managing Change
The Governance Framework For Managing ChangeThe Governance Framework For Managing Change
The Governance Framework For Managing Change
 
RISELab:Enabling Intelligent Real-Time Decisions
RISELab:Enabling Intelligent Real-Time DecisionsRISELab:Enabling Intelligent Real-Time Decisions
RISELab:Enabling Intelligent Real-Time Decisions
 
Efficient State Management With Spark 2.0 And Scale-Out Databases
Efficient State Management With Spark 2.0 And Scale-Out DatabasesEfficient State Management With Spark 2.0 And Scale-Out Databases
Efficient State Management With Spark 2.0 And Scale-Out Databases
 
Spark And Cassandra: 2 Fast, 2 Furious
Spark And Cassandra: 2 Fast, 2 FuriousSpark And Cassandra: 2 Fast, 2 Furious
Spark And Cassandra: 2 Fast, 2 Furious
 
Re-Architecting Spark For Performance Understandability
Re-Architecting Spark For Performance UnderstandabilityRe-Architecting Spark For Performance Understandability
Re-Architecting Spark For Performance Understandability
 
Livy: A REST Web Service For Apache Spark
Livy: A REST Web Service For Apache SparkLivy: A REST Web Service For Apache Spark
Livy: A REST Web Service For Apache Spark
 
Credit Fraud Prevention with Spark and Graph Analysis
Credit Fraud Prevention with Spark and Graph AnalysisCredit Fraud Prevention with Spark and Graph Analysis
Credit Fraud Prevention with Spark and Graph Analysis
 

Semelhante a Vskills certified html5 developer Notes

Semelhante a Vskills certified html5 developer Notes (20)

What is html xml and xhtml
What is html xml and xhtmlWhat is html xml and xhtml
What is html xml and xhtml
 
Introduction to HTML- Week 3- HTMLSyntax
Introduction to HTML- Week 3- HTMLSyntaxIntroduction to HTML- Week 3- HTMLSyntax
Introduction to HTML- Week 3- HTMLSyntax
 
Introduction to HTML.pptx
Introduction to HTML.pptxIntroduction to HTML.pptx
Introduction to HTML.pptx
 
Grade 10 COMPUTER
Grade 10 COMPUTERGrade 10 COMPUTER
Grade 10 COMPUTER
 
Presentation html
Presentation   htmlPresentation   html
Presentation html
 
Html presentation
Html presentationHtml presentation
Html presentation
 
Html - Tutorial
Html - TutorialHtml - Tutorial
Html - Tutorial
 
About html
About htmlAbout html
About html
 
WHAT IS HTML.pdf
WHAT IS HTML.pdfWHAT IS HTML.pdf
WHAT IS HTML.pdf
 
WHAT IS HTML.pdf
WHAT IS HTML.pdfWHAT IS HTML.pdf
WHAT IS HTML.pdf
 
WHAT IS HTML.pdf
WHAT IS HTML.pdfWHAT IS HTML.pdf
WHAT IS HTML.pdf
 
Tm 1st quarter - 1st meeting
Tm   1st quarter - 1st meetingTm   1st quarter - 1st meeting
Tm 1st quarter - 1st meeting
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
 
HTML/HTML5
HTML/HTML5HTML/HTML5
HTML/HTML5
 
HTML.pptx
HTML.pptxHTML.pptx
HTML.pptx
 
Html5 css3
Html5 css3Html5 css3
Html5 css3
 
WT Module-1.pdf
WT Module-1.pdfWT Module-1.pdf
WT Module-1.pdf
 
CSE-HTML-PPT.pptx
CSE-HTML-PPT.pptxCSE-HTML-PPT.pptx
CSE-HTML-PPT.pptx
 

Mais de Vskills

Mais de Vskills (20)

Vskills certified administrative support professional sample material
Vskills certified administrative support professional sample materialVskills certified administrative support professional sample material
Vskills certified administrative support professional sample material
 
vskills customer service professional sample material
vskills customer service professional sample materialvskills customer service professional sample material
vskills customer service professional sample material
 
Vskills certified operations manager sample material
Vskills certified operations manager sample materialVskills certified operations manager sample material
Vskills certified operations manager sample material
 
Vskills certified six sigma yellow belt sample material
Vskills certified six sigma yellow belt sample materialVskills certified six sigma yellow belt sample material
Vskills certified six sigma yellow belt sample material
 
Vskills production and operations management sample material
Vskills production and operations management sample materialVskills production and operations management sample material
Vskills production and operations management sample material
 
vskills leadership skills professional sample material
vskills leadership skills professional sample materialvskills leadership skills professional sample material
vskills leadership skills professional sample material
 
vskills facility management expert sample material
vskills facility management expert sample materialvskills facility management expert sample material
vskills facility management expert sample material
 
Vskills international trade and forex professional sample material
Vskills international trade and forex professional sample materialVskills international trade and forex professional sample material
Vskills international trade and forex professional sample material
 
Vskills production planning and control professional sample material
Vskills production planning and control professional sample materialVskills production planning and control professional sample material
Vskills production planning and control professional sample material
 
Vskills purchasing and material management professional sample material
Vskills purchasing and material management professional sample materialVskills purchasing and material management professional sample material
Vskills purchasing and material management professional sample material
 
Vskills manufacturing technology management professional sample material
Vskills manufacturing technology management professional sample materialVskills manufacturing technology management professional sample material
Vskills manufacturing technology management professional sample material
 
certificate in agile project management sample material
certificate in agile project management sample materialcertificate in agile project management sample material
certificate in agile project management sample material
 
Vskills angular js sample material
Vskills angular js sample materialVskills angular js sample material
Vskills angular js sample material
 
Vskills c++ developer sample material
Vskills c++ developer sample materialVskills c++ developer sample material
Vskills c++ developer sample material
 
Vskills c developer sample material
Vskills c developer sample materialVskills c developer sample material
Vskills c developer sample material
 
Vskills financial modelling professional sample material
Vskills financial modelling professional sample materialVskills financial modelling professional sample material
Vskills financial modelling professional sample material
 
Vskills basel iii professional sample material
Vskills basel iii professional sample materialVskills basel iii professional sample material
Vskills basel iii professional sample material
 
Vskills telecom management professional sample material
Vskills telecom management professional sample materialVskills telecom management professional sample material
Vskills telecom management professional sample material
 
Vskills retail management professional sample material
Vskills retail management professional sample materialVskills retail management professional sample material
Vskills retail management professional sample material
 
Vskills contract law analyst sample material
Vskills contract law analyst sample materialVskills contract law analyst sample material
Vskills contract law analyst sample material
 

Último

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 

Último (20)

Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 

Vskills certified html5 developer Notes

  • 2. Certified HTML5 Developer www.vskills.in Page 8 1. HTML1. HTML1. HTML1. HTML5555 1.1 Introduction1.1 Introduction1.1 Introduction1.1 Introduction Printed information around us whether in the form of newspaper, magazine, books or printed forms; are divided into small parts like a magazine into articles and each article has its own heading, sometimes a summary and then followed by the article which is further divided into paragraphs. Similarly a web site has many web pages composed of images, text, links to other pages and audio or video for an enriching experience. Web is a collection of documents that all link together, and bear a strong similarity to the printed documents around us. Web pages are written in HTML (Hypertext Markup Language) or XHTML (eXtensible Hypertext Markup Language). Both are document-layout and hyperlink- specification language. They define how to display the contents of the document, including text, images, and other support media. The language also tells how to make hypertext links, which connect document with other documents. In keeping with the principle of separation of concerns, the function of HTML is primarily to add structural and semantic information to the raw text of a document. Presentation and behavior are separate functions, which can be added as desired, ideally through links to external documents such as style sheets, graphics files, and scripts. 1.2 History1.2 History1.2 History1.2 History Physicist Berners-Lee specified HTML and wrote the browser, server software and the World Wide Web in the late 1990. World Wide Web's systems enabled hypertext linking, so documents automatically reference other documents, located anywhere thus, giving convenience and increasing productivity. 1.3 HTML Versions1.3 HTML Versions1.3 HTML Versions1.3 HTML Versions There have been several versions of HTML and is overseen by an organization called the W3C (World Wide Web Consortium). The last major version of HTML was HTML 4.01 in December 1999. In January 2000, some stricter rules were added to HTML 4.01, called as XHTML (Extensible Hypertext Markup Language). HTML 5 is the latest revision of the HTML standard and currently remains under development. 1.4 HTML51.4 HTML51.4 HTML51.4 HTML5 EnhancementsEnhancementsEnhancementsEnhancements There have been several enhancements in HTML5, which are summarized as HTML 5 New Doctype and CharsetHTML 5 New Doctype and CharsetHTML 5 New Doctype and CharsetHTML 5 New Doctype and Charset HTML5 new tagsHTML5 new tagsHTML5 new tagsHTML5 new tags – HTML5 has created tags to support newer structural elements as <section> - to define sections of pages <header> - defines the header of a page <footer> - defines the footer of a page <nav> - defines the navigation on a page <article> - defines the article or primary content on a page <aside> - defines extra content like a sidebar on a page <figure> - defines images that annotate an article
  • 3. Certified HTML5 Developer www.vskills.in Page 9 HTML 5 New Inline ElementsHTML 5 New Inline ElementsHTML 5 New Inline ElementsHTML 5 New Inline Elements - These new inline elements define some basic concepts and keep them semantically marked up as <mark> - to indicate content that is marked in some fashion <time> - to indicate content that is a time or date <meter> - to indicate content that is a fraction of a known range - such as disk usage <progress> - to indicate the progress of a task towards completion HTML 5 New Dynamic Pages SupportHTML 5 New Dynamic Pages SupportHTML 5 New Dynamic Pages SupportHTML 5 New Dynamic Pages Support ---- HTML 5 was developed to help Web application developers, so there are a lot of new features to make it easy to create dynamic HTML pages as Context menus creation and use within web pages and applications async attribute - This is added to the script tag to tell the browser that the script should be loaded asynchronously so that it doesn't slow down the load and display of the rest of the page. <details> - provides details about an element like tooltips. <menu> - an old tag brought back and given new life allowing to create a menu system on your Web pages <command> - defines actions that should happen when a dynamic element is activated HTML 5 New Form TypesHTML 5 New Form TypesHTML 5 New Form TypesHTML 5 New Form Types - HTML 5 adds a few more form input types as datetime, datetime- local, date, month, week, time, number, range, email and url HTML 5 New ElementsHTML 5 New ElementsHTML 5 New ElementsHTML 5 New Elements - There are a few exciting new elements in HTML 5 as <canvas> - an element to give a drawing space in JavaScript on Web pages. <video> - add video to Web pages with as a tag. <audio> - add sound to Web pages with as a tag. 1.1.1.1.5555 Elements, Tags and AttributesElements, Tags and AttributesElements, Tags and AttributesElements, Tags and Attributes HTML is an embedded language, the language's directions or tags are inserted into the HTML document that browser loads for viewing. The web browser uses the information inside the HTML tags to decide how to display or otherwise treat the subsequent contents of a HTML document. Similar to a word processor like MS-Word in which styles are applied to the text; in a HTML document markups or tags are applied to stylize text as bold or italicize. Specific tags are applied on the text for specific styling. HTML documents are composed of a tree of HTML elements. Each element can have attributes specified. Elements can also have content, including other elements and text. HTML elements represent semantics, or meaning. For example, the title element represents the title of the document. In the HTML syntax, most elements are written with a start tag and an end tag, with the content in between like <p>In the HTML syntax, most elements are written ...</p> However, not all of these elements require the end tag, or even the start tag, to be present like the br element. HTML elementHTML elementHTML elementHTML element – It represents structure or semantics and generally consists of a start tag, content, and an end tag for example, following is a bold element <b> This is in bold or more dark.</b>
  • 4. Certified HTML5 Developer www.vskills.in Page 10 HTML tagsHTML tagsHTML tagsHTML tags – They are used to mark the start and end of an HTML element. Start tagStart tagStart tagStart tag has opening angle bracket (<) followed by element name, zero or more space separated attribute/value pairs, and a closing angle bracket (>). A start tag with no attributes: <p> A start tag with an attribute <p class="info"> End tagEnd tagEnd tagEnd tag has opening angle bracket followed by forward slash, the element name, and a closing angle bracket </p> Empty tEmpty tEmpty tEmpty tagagagag There are also some elements that are empty, meaning that they only consist of a single tag and do not have any content and look like opening tags <br> In XHTML. empty elements must have an end tag or the start tag must end with ‘/>’ so it is used as <br /> DifferenceDifferenceDifferenceDifference - A tag consists of a left- and right-angle bracket and letters and numbers between those brackets, but an element is the opening and closing tags plus anything between the two tags. HTML AttributesHTML AttributesHTML AttributesHTML Attributes – It defines property for an element, consists of an name and value pair appearing within the element’s start tag. Multiple name and value pairs are space separated. All are illustrated in the figure 1.1.1.1.6666 Head and body tagsHead and body tagsHead and body tagsHead and body tags A web page is contained between the opening <html> and closing </html> tags. <html> element<html> element<html> element<html> element
  • 5. Certified HTML5 Developer www.vskills.in Page 11 This element contains the whole HTML document. HTML document should have one opening <html> tag and document should end with a closing </html> tag. It has <head> and <body> tags in it. <head> element<head> element<head> element<head> element It is the head of the page, having information about the page but not the content of the page as it contain a title and a description of the page, or location for CSS and JavaScript files. The element has an opening <head> tag, the closing </head> tag, and everything in between. <b<b<b<body> elementody> elementody> elementody> element It is the body of the web page and has all the content seen on the web page. It consists of the opening <body> tag, closing </body> tag, and everything in between. Usually it appears after <head> element and the contents in it are also called as body content. It can have some paragraphs or complicated layouts having forms and tables for example <body> <p>This is a paragraph tag.</p> </body> NestingNestingNestingNesting An element containing other elements, must wholly contain that element. This is called as nesting elements correctly. 1.1.1.1.7777 HTML EditorHTML EditorHTML EditorHTML Editor HTML editors are used help a HTML5 developer efficiently and effectively develop web pages in HTML5 which are not only compliant to standards but also fulfill the user need. Some popular HTML editors are listed Amaya (www.w3.org/Amaya) Open-source software on Windows/Mac/Linux and has WYSIWYG visual editor and Spell-checking CoffeeCup (www.coffeecup.com) Paid software on Windows only and has WYSIWYG visual editor, FTP upload, Spell-checking, and Templates Dreamweaver (www.adobe.com/products/dreamweaver) Paid software on Windows/Mac and has WYSIWYG visual editor with browser preview, FTP upload, Spell-checking, Templates, Server-side scripting and Multi-user editing 1.1.1.1.8888 Create a web pageCreate a web pageCreate a web pageCreate a web page The whole web page with html, head and body tag is made by joining earlier sections as <html> <head> <title>Head tag example </title> <meta name="Keywords" content=" Head tag, example” /> <meta name="description" content=" Head tag example" /> <base href="http://www.vskills.com" />
  • 6. Certified HTML5 Developer www.vskills.in Page 12 <link rel="stylesheet" type="text/css" href="style.css" /> <script type="text/javascript"> function show_alert() { alert("This is confidential page!"); } </script></head> <body> <p>This is a paragraph tag.</p> </body> </html> 1.1.1.1.9999 Viewing the SViewing the SViewing the SViewing the Sourceourceourceource People learn about HTML by using the view source facility provided by almost all the browsers. Following steps are to be taken In the web browser, open the page whose code we like to see. Choose View > Page Source or Page > View Source, or View Source. Viewing existing HTML code usually facilitate an inexperienced person to locate areas that cause problems. Furthermore it enables to learn various features on existing web pages that may encounter while surfing the web. There are two ways of viewing source HTML Right clickingRight clickingRight clickingRight clicking – Right click of mouse on the web page, and then clicking View source. In case of frames, source of frame is accessed and not that of the web page. Menu BarMenu BarMenu BarMenu Bar – In view menu which is usually present in all browsers, click the source option to view the source code. Right ClickRight ClickRight ClickRight Click View MenuView MenuView MenuView Menu HTML code can easily be copied to be used for other pages or they can be taken from existing web pages, and then modifying that code to suite needs.
  • 7. Certified HTML5 Developer www.vskills.in Page 13 1.1.1.1.10101010 White Space and FlowWhite Space and FlowWhite Space and FlowWhite Space and Flow Spaces, tabs and new lines are all called as white spaces. White spaces given in the source HTML is taken as a single space and would also appear as one space by the browser. This phenomenon is called white space collapsing. A new line or consecutive empty lines, all these are treated as one space. <p>The lines of this paragraph are present on multiple lines and also space between words are treated as a single space. Also the large spaces between some of the words will also not appear in the browser. This is how white space just collapses as a single space.</p> Browser displays text in the full width of the screen and wraps the text onto new lines when no space is present. White space collapsing helps in adding spaces in web page for commenting which does not show in a browser as shown 1.11.11.11.11111 HTML CommentsHTML CommentsHTML CommentsHTML Comments It is part of HTML which is ignored by web browser and is used usually for commenting HTML tag blocks, to indicate sections of a document or any specific instructions about it. It helps to understand the HTML code more easily by adding comments to them. But if comments are used around HTML code then, the code block will not be shown hence, commenting is to be done with care and precaution. Single Line CommentSingle Line CommentSingle Line CommentSingle Line Comment It is indicated by special starting tag “<!—“and closing tag “-->” placed at the beginning and end of line to be treated as a comment. Comments do not nest and there should be no space in the start- of-comment string like “< !—“ will not be treated as comment but will be shown on the screen. An example of valid comment is <!-- This is single line comment. -->
  • 8. Certified HTML5 Developer www.vskills.in Page 14 Multi line CommentsMulti line CommentsMulti line CommentsMulti line Comments Commenting multiple lines is done by placing the multiple or different lines between the starting tag “<!—“ and closing tag “-->”to be treated as a comment like <!-- This is multi line comment and can comment many lines present in this block. --> Conditional CommentsConditional CommentsConditional CommentsConditional Comments They are supported by Internet Explorer 5 onwards on Windows, and give instructions specific to Internet Explorer for browser specific instructions. They can also distinguish between different versions 5.0, 5.5 and 6.0 for example <!--[if IE 6]> Special instructions for IE 6 here <![endif]--> They are similar to a comment by using “<!-- -->”so that other browsers treat them as comment but internet explorer recognize it and executes the instructions. Comment tagComment tagComment tagComment tag Some browsers support <comment> tag for commenting. <comment>This is a comment.</comment> 1.11.11.11.12222 HTML Meta TagsHTML Meta TagsHTML Meta TagsHTML Meta Tags Meta tags specify metadata about the document. Metadata is information about a document and not the content of document and usually include items like author, keywords, date and time of publishing the content, etc. Meta element is used and has name/value pairs describing metadata. The <meta> tag being a empty element does not have a closing tag, but have information in attributes. Metadata given by meta tag is important part of webpage as it helps search engines to index the webpage as per different search criteria so as to find best match for a user search. Search engines usually scan keywords on the webpage for its relevance. <meta> tags are placed between <head> and </head> tags and its attributes are discussed AttributeAttributeAttributeAttribute DetailDetailDetailDetail Name Name of property like keywords, description, author etc. content Value of the property'. scheme How to interpret value of property (given in content attribute). http-equiv http response message headers details like to refresh the page or to set a cookie. Values include content-type, expires, refresh and set-cookie. Attributes with examples are listed KeywordsKeywordsKeywordsKeywords – It is used by search engines for indexing a web page and is given by
  • 9. Certified HTML5 Developer www.vskills.in Page 15 <head> <meta name="keywords" content="Vskills, HTML, Certification" /> </head> DescriptionDescriptionDescriptionDescription – It is also used by search engines for indexing the web page as it provides some information about the web page and it is given by <head> <meta name="description" content="Certification in HTML." /> </head> Revision dateRevision dateRevision dateRevision date – It is to indicate last update time of the document and is given by <head> <meta name="revised" content="Vskills, 6/12/2011" /> </head> RefreshingRefreshingRefreshingRefreshing – It specifies duration after which web page will refresh itself and for a 15 seconds refresh is given by <head> <meta http-equiv="refresh" content="15" /> </head> Page RedirectionPage RedirectionPage RedirectionPage Redirection – It is for redirecting to another web page using meta tag and usually used with refresh but if no refresh value is given then redirection takes place immediately. <head> <meta http-equiv="refresh" content="15; url=http://www.vskills.in" /> </head> CookiesCookiesCookiesCookies - They store data on client computers to be used by web server for tracking a web page visitor. <head> <meta http-equiv="cookie" content="userid=new; course=HTML; expires=Wednesday, 18-Jun-12 23:59:59 GMT;” /> </head> If no expiration date and time is given, cookie becomes a session cookie and is deleted when the user closes the browser. AuthorAuthorAuthorAuthor – It is given as <head> <meta name="author" content="Vskills" /> </head> 1.11.11.11.13333 HTML AttributesHTML AttributesHTML AttributesHTML Attributes As discussed earlier, attributes specify properties of an element by name and value pairs thus, attributes are made up of a name and a value. The name is the property of element like <font> element has an attribute face for telling the typeface to use. The value is assigned in double quotation marks separated by equals sign to the
  • 10. Certified HTML5 Developer www.vskills.in Page 16 name and the value can be arial or courier for face name of font element. Different attributes are separated by space as in example <font face="courierl" color="#ffffff"> Some HTML tags have attributes specific to them only but all have some common attributes. 1.11.11.11.14444 XHTML First LineXHTML First LineXHTML First LineXHTML First Line XHTML language is derived from Extensible Markup Language (XML) which creates markup languages, and can have an optional XML declaration at start. <?xml version=”1.0” encoding=”UTF-8” ?> If included then this declaration should be at the start of document and nothing above it. Encoding attribute tells about the encoding used in web document to represent characters for display. Encoding is mentioned as different hardware and software uses different method to represent character (or encoding). 1.151.151.151.15 DTD (Document Type Declaration)DTD (Document Type Declaration)DTD (Document Type Declaration)DTD (Document Type Declaration) XHTML is stricter in rule implementation as compared to HTML but being in transition from HTML, XHTML gives three levels of compliance to a web page which are indicated by Doctype or Document Type Declaration and which are Transitional XHTML 1.0 to allow use of outdated markups of HTML 4.1 Strict XHTML 1.0 is used with no outdated markup. It follows XHTML stricter syntax. Frameset XHTML 1.0 to allow frames in web pages. Usually transitional XHTML 1.0 is used and the doctype declaration is before <html> tag, and after optional XML Declaration. Different doctype declarations are For transitional - <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”> For strict - <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”> For frameset - <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Frameset//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd”> 1.161.161.161.16 HTML5 newHTML5 newHTML5 newHTML5 new DDDDoctype andoctype andoctype andoctype and CCCCharsetharsetharsetharset HTML5 defines an HTML syntax that is compatible with HTML4 and XHTML1 documents published on the Web. The HTML syntax of HTML5 requires a DOCTYPE to be specified to ensure that the browser renders the page in standards mode. The DOCTYPE declaration is <!DOCTYPE html> and is case-insensitive in the HTML syntax.
  • 11. Certified HTML5 Developer www.vskills.in Page 17 For the HTML syntax of HTML5, setting the character encoding is done by using a meta element with a charset attribute that specifies the encoding within the first 1024 bytes of the document. E.g. <meta charset="UTF-8"> could be used to specify the UTF-8 encoding. This replaces the need for <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> although that syntax is still allowed. Following example of a HTML5 web page illustrates the usage of new doctype and charset <!doctype html> <html> <head> <meta charset="UTF-8"> <title>Example document</title> </head> <body> <p>Example paragraph</p> </body> </html> 1.11.11.11.17777 SpecSpecSpecSpecial Charactersial Charactersial Charactersial Characters Some characters other than alphanumeric characters have special meaning and some have no keyboard equivalent to enter like the angle brackets can be thought as markup by the browser. Hence, for them special characters called character entity or escape character are used. Character entities can be typed as either a numbered entity or a named entity. All character entities begin with an ampersand (&) and end with a semicolon (;). Example of them is CharacterCharacterCharacterCharacter Numbered EntityNumbered EntityNumbered EntityNumbered Entity Named EntityNamed EntityNamed EntityNamed Entity " &#34; &quot; & &#38; &amp; © &#169; &copy; ® &#174; &reg; < &#60; &lt; > &#62; &gt; 1.11.11.11.18888 CapitalizationCapitalizationCapitalizationCapitalization Earlier version of HTML was case-insensitive so <html>, <HTML> or <HTml> were treated equally but HTML4, HTML 5 and XHTML are case-sensitive and requires all tags to be lowercase so only <html> is valid. Hence it is recommended to use all-lowercase tags. 1.11.11.11.19999 QuotationsQuotationsQuotationsQuotations HTML and XHTML requires all values to be in quotation marks, as shown below
  • 12. Certified HTML5 Developer www.vskills.in Page 18 1.1.1.1.20202020 NestingNestingNestingNesting It refers to the process of containing one HTML tag inside another like <body> and <head> tags are nested in <html> tag as shown All tags should close as they have been opened within the tag it was opened. 1.1.1.1.22221111 Spacing and BreaksSpacing and BreaksSpacing and BreaksSpacing and Breaks Spacing is needed between tags and attributes and more rules need to be followed in applying spacing which is illustrated by the image 1.211.211.211.21 HTML5 Global attributesHTML5 Global attributesHTML5 Global attributesHTML5 Global attributes Attributes which apply to all elements are called global attributes like accesskey, class, dir, id, lang, style, tabindex and title. There are also several new global attributes in HTML5 as The contenteditable attribute for an editable area. The contextmenu attribute for a context menu. The data-* collection of author-defined attributes. The draggable and dropzone attributes. The hidden attribute for an element which is not yet, relevant. The role and aria-* collection attributes. The spellcheck attribute. HTML5 also makes all event handler attributes from HTML4, which take the form onevent- name, global attributes and adds several new event handler attributes for new events it defines. E.g. the play event which is used by the API for the media elements (video and audio).
  • 13. Certified HTML5 Developer www.vskills.in Page 19 Self Assessment QuestionsSelf Assessment QuestionsSelf Assessment QuestionsSelf Assessment Questions Q.1 XHTML standard came before HTML 4.0 A. True B. False C. Can not say D. None Q.2 XHTML standard came before HTML 5.0 A. True B. False C. Can not say D. None Q.3 All elements should have a closing tag A. True B. False C. Can not say D. None AnswersAnswersAnswersAnswers :::: 1-B, 2-A,3-B