Frontend Introduction. HTML - CSS
Frontend Introduction. HTML - CSS
HTML/CSS
Created by:
The HTML <h1> - <h6> elements represent six levels of section headings.
<h1> - is the highest level and <h6> - the lowest one.
Buttons
Tip: Always specify the type attribute for a <button> element, to tell browsers what type of
button it is.
The <button> tag also supports both the Global Attributes and Event Attributes in HTML5
Paragraphs
Large or small screens, and resized windows will create different results.
With HTML, you cannot change the display by adding extra spaces or extra lines in your
HTML code.
Lists
The list items will be marked with bullets The list items will be marked with
(small black circles) by default: numbers by default:
Forms
Links
The href attribute specifies the destination address, In our case it is a Google site!
Short quoatations
Blockquote
Images
Images are not technically inserted into a web page; images are linked to web pages. The <img> tag
creates a holding space for the referenced image.
The <img> tag is empty, it contains attributes only, and does not have a closing tag.
● What is CSS
● Ways to include css in your page
● CSS basic terms
● CSS selectors (priority levels)
● Font styles (font families)
● Sizes, units of measurement
● Background styles
● Box Model
● Flexbox
● Positioning CSS
● Pseudo Classes / Elements
What is CSS?
without
and
with
CSS
CSS Terminology and example
Let’s code!
Ways to include css in html document
● Inline CSS ● External CSS
(used for most cases)
● Internal CSS
● px - pixels are relative to the viewing device. For low-dpi devices, 1px is one device
pixel (dot) of the display. For high resolution screens 1px implies multiple device
pixels.
Info about other (almost never used) units can be found by the link below
More information on: https://www.w3schools.com/cssref/css_units.asp
Box model
margin-top: 20px;
margin-bottom: 35px;
margin-left: 30px;
margin-right: 30px;
Box model: Border property
Shorthand:
● P.S If you pass all levels of this amazing game you can
consider yourself as Flexbox Expert (no jokes, try it)
Flexbox Froggy - A game for learning CSS flexbox
https://yoksel.github.io/flex-cheatsheet/
The position allows you to arrange and place elements in a much more advanced way.
● positon: relative - positioned relative to its normal position (stays in document flow)
● positon: absolute - positioned relative to the nearest ancestor with custom position (taken
from document flow)
● positon: fixed - positioned relative to the viewport (taken from document flow)
● positon: sticky- toggles between relative and fixed, depending on the scroll position
Now you know the most important basic parts of HTML and CSS