Lesson 12 Introduction to Web Technologies
Lesson 12 Introduction to Web Technologies
Lesson 12 Introduction to Web Technologies
Technologies
HTML (Hyper Text Markup Language)
● HTML stands for Hyper Text Markup Language
● HTML is the standard markup language for creating Web pages
● HTML describes the structure of a Web page
● HTML consists of a series of elements
● HTML elements tell the browser how to display the content
● HTML elements label pieces of content such as "this is a heading",
"this is a paragraph", "this is a link", etc.
Text Editors
The <head> element contains meta information about the HTML page
The <title> element specifies a title for the HTML page (which is shown in
the browser's title bar or in the page's tab)
The <body> element defines the document's body, and is a container for all
the visible contents, such as headings, paragraphs, images, hyperlinks,
tables, lists, etc.
Tag:
Attribute
:
HTML Element
Element: The HTML element is everything from the start tag to the end
tag:
HTML Page Structure
HTML images are defined with the <img> tag.
The source file (src), alternative text (alt), width, and height are
provided as attributes:
HTML div Element
The <div> element is by default a block element, meaning that it takes all
available width, and comes with line breaks before and after.
Difference between class and id
class
The class attribute is often used to point to a class name in a style sheet. It can also
be used by a JavaScript to access and manipulate elements with the specific class
name.
id
The HTML id attribute is used to specify a unique id for an HTML element.
You cannot have more than one element with the same id in an HTML document.
Comments are used to explain the code, and may help when you edit the source code at a later date.
CSS Background
The CSS background properties are used to add background effects for
elements.
CSS Margin
Margins are used to create space around elements, outside of any
defined borders.
CSS Padding
Padding is used to create space around an element's content, inside of
any defined borders.
CSS Float Value
The float property is used for positioning and formatting content e.g. let
an image float left to the text in a container.