Documente Academic
Documente Profesional
Documente Cultură
d i g i ta l m e d i a l a n d s c a p e s
from w3c
What is HTML
HTML stands for hyper text markup language. Its
refereed to has a markup language because it consists
of a series of markup tags. HTML tags describe content
and must have an open and close tag.
<tagname>content</tagname>
d i g i ta l m e d i a l a n d s c a p e s
Web Browsers
The purpose of a web browser (such as Google Chrome, Internet
Explorer, Firefox, Safari) is to read HTML documents and display
them as web pages.
The browser does not display the HTML tags, but uses the tags to
determine how the content of the HTML page is to be presented/
displayed to the user
d i g i ta l m e d i a l a n d s c a p e s
<!DOCTYPE html>
<html>
<body>
</body>
</html>
d i g i ta l m e d i a l a n d s c a p e s
Syntax
An HTML element starts with a start tag / opening tag
An HTML element ends with an end tag / closing tag
The element content is everything between the start and the
end tag
Some HTML elements have empty content
Empty elements are closed in the start tag
Most HTML elements can have attributes
header
<h1>This is a heading</h1>
paragraph
<p>This is a paragraph.</p>
link
image
d i g i ta l m e d i a l a n d s c a p e s
Attributes
HTML element attributes provide additional information
about the element. They always are included in the start
tag. They come in name/value pairs like:
name=value
alignment
f o r m at i n g
link
Image Tag
The image tag is whats called an empty tag, which
means it does not have a closing tagit just has
attributes.
<img src=url alt=some_text>
Again the url can be absolute or relative. Alt refers to alt text,
this is the text that shows up when you hover over an image. It
was created so blind people can enjoy images on the internet.
They use screen readers which read describe the image using
the alt text
d i g i ta l m e d i a l a n d s c a p e s
d i g i ta l m e d i a l a n d s c a p e s
Lists
<ol>
<li>Coffee</li>
<li>Milk</li>
</ol>
<ul>
<li>Coffee</li>
<li>Milk</li>
</ul>
d i g i ta l m e d i a l a n d s c a p e s
Head Tag
Most webpages actually have another tag before
the body called the head tag. The head tag includes
scripts, instruct the browser where to find style
sheets, and provide meta information. Common
elements in the head tag.
title of page
d i g i ta l m e d i a l a n d s c a p e s
Colors
Colors on the internet are defined using HEX
(hexadecimal), which is a translation from RGB
(red, green, blue)
rgb (255,0,0)
red
h e x t r a n s l at i o n
#FF000
d i g i ta l m e d i a l a n d s c a p e s
jpg 40%
jpg 60%
jpg 80%
jpg 100%
gif
png