Julia Dizhak
HTML is the standard markup language used to create Web pages
Front end development is the development of those elements of a website that the customer sees and interacts with directly
Back end development responsible for logic of the project ( deals with dynamic content)
Each tag can also have attributes with values
Attributes appear inside the opening tag and their values sit inside the quotation marks.
Some tags can't use without attributes
Attributes come in name/value pairs like: name="value"
Attribute class: class="value"
Attribute id: id="value"
standart convention for
representing and interacting with elements in HTML
The document written in HTML defines the structure and content of the page. To define the style you have to use another language CSS
<!Doctype>
<html>
<head>
<title> HTML </title>
</head>
<body>
...
</body>
</html>
<!Doctype>
document type declaration
used to let the browser know
what version of HTML you are using
<html>
the root element that specifies of the document is HTML
the openning tag immediately follows
the DOCTYPE declaration
the closing tag is the last thing in the document
the html element must contain the head and the body
</html>
<head>
the header of HTML where information
about the document placed
</head>
<title>
defines the title of page
you must have a title element to produce
a valid document
and it must be placed within the head element
</title>
<body>
the main body of HTMl document
where all of content is placed
it should be used just once
it must start immediately after the closing tag /head
and end directly before the closing /html
</body>
<div> </div>
<h2> </h2>
<strong> </strong>
<p> </p>
<br>
<a> </a>
<div>
defines a block of HTML
or division
or a section in an HTML document
The tag is used to group block-elements
to format them with CSS
</div>
Heading are defined with the <h1> to <h6> tags
<h1> defines the most important heading
...
<h6> defines the least important heading
h1 headings should be main headings,
followed by h2 headings
then the less important h3, and so on.
<p>
element defines a paragraph
</p>
Browsers automatically add an empty line before and after a paragraph.
<strong>
It defines important text
</strong>
<br>
defines a line break
use if you want a new line without starting a new paragraph
The <br> element is an empty HTML element. It has no end tag.
Each Tag can also have attributes with values
Attributes appear inside the opening tag and their values sit inside the quotation marks.
Some tags can't use without attributes
Attributes come in name/value pairs like: name="value"
<a href="http://www.moneypark.ch">
MoneyPark
</a>
The <a> tag defines a hyperlink, which is used to link from one page to another.
The required attribute of the <a> element is the "href" attribute, which indicates the link's destination - address.
The <img> tag defines an image
The <img>tag has two required attributes: "src" and "alt".
<img src="pictures/moneypark-logo.png" alt="MoneyPark" >
"src" - specifies the URL of the image
"alt" - specifies an alternate text for an image,
if the image cannot be displayed.
<ul>
<li> first line item </li>
<li> second line item
<ul>
<li> first nested line item </li>
</ul>
</li>
<li> third line item </li>
</ul>
<ol>
<li> first line item </li>
<li> second line item
<ul>
<li> first nested line item </li>
</ul>
</li>
<li> third line item </li>
</ol>
<base> <link>
<meta> <noscript> <script>
<style> <title>
The <meta> tag provides metadata about the HTML document. Metadata will not be displayed on the page, but will be machine parsable.
Meta elements used to specify page description, keywords, author of the document, last modified, and other metadata.
<html> <head>
<div> <body> <span>
<article> <aside> <section> <nav>
Structure tag - element which define the structure of the document
<header>
Used to contain the header content of a site
<header>
<footer>
Contains the footer content of a site.
<footer>
<nav>
Contains the navigation menu,
or other navigation functionality for the page.
<nav>
<aside>
Defines a block of content that is related
to the main content
around it, but not central to the flow of it
<aside>
<h1> <h2> <h3> <h4> <h5> <h6>
<hgroup>
Heading tag - element which define the head of part document
<h1> defines the most important heading
<h6> defines the least important heading
<a> <abbr> <b>
<cite> <code> <command>
<del> <dfn> <em> <i> <input>
<ins> <kbd> <keygen> <label> <map> <mark> <meter>
<output> <progress> <q> …
Text tag - content element
<img> <iframe> <embed> <math> <object>
<canvas> <audio> <svg> <video>
<iframe> - a nested browsing context
<canvas> - represents a bitmap area that scripts can be used
to render graphics, graphs, game graphics on the fly.
<audio> - represents a sound , or an audio stream
<svg> - defines an embedded vectorial image
<video> - a video, with the necessary interface to play it.
<a> <button> <input> <label> <menu>
<img> <iframe>
<select> <textarea> <video>
Interactive tag - element designed to interact with user
The HyperTextMarkup Language was created by Sir Tim Berners-Lee In 1991 he wrote a document called “HTML Tags” and proposed two dozen elements that could be used for writing web pages.
Extensible
Mozila Foundation
Apple
Opera
The Web Hypertext Application Technology Working Group
IETF (the Internet Engineering Task Force)
W3C (the World Wide Web Consortium)
WHATWG (The Web Hypertext Application Technology Working Group)
One goal is
make the Internet work better by producing high quality, relevant technical documents that influence the way people design, use, and manage the Internet
Why do we have an <img>
element?
Why we use <div>
element?
Why we use <p>
element?
...
* in progressive browsers
(except Internet Explorer)