Introduction to HTML+CSS+Javascript
Introduction to HTML+CSS+Javascript
technologies
HTML + CSS + Javascript
Introduction to web technologies:
● HTML
● CSS
● Javascript
HTML
HTML means Hyper Text Markup Language.
<html>
The HTML allow us to define the structure of a document or a <head>
website. </head>
<body>
HTML is NOT a programming language, it’s a markup language,
<div>
which means its purpose is to give structure to the content of the
website, not to define an algorithm. <p>Hi</p>
</
It is a series of nested tags (it is a subset of XML) that contain all div>
the website information (like texts, images and videos). Here is an </body>
</html>
example of tags:
<title>This is a title</title>
The HTML defines the page structure. A website can have several
HTMLs to different pages.
HTML: basic rules
Some rules about HTML:
● It uses XML syntax (tags with attributes, can contain other tags).
<tag_name attribute="value"> content </tag_name>
● It stores all the information that must be shown to the user.
● There are different HTML elements for different types of information and behaviour.
● The information is stored in a tree-like structure (nodes that contain nodes inside) called
DOM (Document Object Model).
● It gives the document some semantic structure (pe. this is a title, this is a section, this is
a form) which is helpful for computers to understand websites content.
● It must not contain information related to how it should be displayed (that information
belongs to the CSS), so no color information, font size, position, etc.
CSS
CSS allows us to specify how to present
(render) the document info stored in the
HTML.
This will change all the tags in my web ( ‘*‘ means all) to look blue with font Tahoma with
14px, and leaving a margin of 10px around.
Technologies
● HTML
● CSS
● Javascript
Javascript
A regular programming language, easy to start, hard to var my_number = 10;
master.
function say( str )
Allows to give some interactivity to the elements on the web. {
console.log( str
Syntax similar to C or Java but with no types. );
}
You can change the content of the HTML or the CSS applied
to an element. say("hello");