5 Day Coding Challenge Description Seif
5 Day Coding Challenge Description Seif
introduction
elements
syntax
Elements nested within other elements <head> | </head>
elements <> key
(parent elements) are called child
elements. JS and CSS sees this nesting
Intro
family tree and allows for manipulation of
that content.
displayed vertically on the left of the page
block element
until styles by CSS.
browser reads and displays elements.
HTML <html> / </html> at the start and end of every web page <html> / </html>
where the main body of text in the web
Body <body> / </body> <body> / </body>
base structure elements
page lies.
contains tags that provide supporting
<head>
information as the page title (located in
Head <head> / </head> <title>_______</title>
the tab of the webpage not the actual
Elements
</head>
webpage).
crerates a paragraph with space before
paragraph <p> / </p> and after body of text. Defined as a block <p>HTML is easy to learn</p>
element.
Provides a title to a body of text. Has 6
heading elements nummbered from 1-6
headers <h1> / </h1> <h1>Why is HTML so Successful?</h1>
where h1= title, h2 section h3-6=sub
sections. Block element.
can be ordered or unordered depending on
block elements
attribute = info about what the element does or gives <img src="https://www.google.com">
options for the element. CSS targets these
attributes to style elements.
<div>
neutral identifies structural areas on a page or
<div>/<span> *body of text*
elements group elements together.
</div>
semantics
ID. There are elements in HTML 5 that do
that and suppliment what the puropse of a
body of text is.
provides introductory and navigatory
header <header> <header></header>
content. Contains one heading tag
semantics
target multiple
element1,element2 {} separate elements using a comma h1,h2{color:orange}
targeting
elements
child element add a space after the parent element to
__ parent_element child_element{_:_}
targeting spacifically target a child element
<head>
style element controls the style of all <style>
refered to elements in the HTML body {font-size: 14px; font-family:Arial;}
document. This must be a child element if h1 {color: #ffd700; text-transform: uppercase;}
style definition
opening tag <style> the <head> element. import element p {color: darkslategray;}
allows the import of external style sheets em {font-size: 20px; color:rgb(0,128,0);} created by: Abdel Rahman Abu Seif
not declared on an HTML style page. strong {font-size: 24px; color:rgb(0,0,0);}
style Allows chaining of style pages. </style>
</head>
1) inline style applies to individual <p style="property:value;"> _____</p>
style attribute style=
elements by using a style attribute.
declarations
#uppercase{text-transform:uppercase;}
this adds a tag to elements that CSS can </style>
detect. This adds a tag that CSS can use to </head>
ID attribute id="_"
apply the same styles to. | Id= is used to |
define the tag that the element will have. <body>
grouping
CSS
<div id='heading'>
<h1>Sporting History</h1>
<p id='uppercase'>Giants & Heroes</p>
</div>
<style>
allows the styling of elements with the
.sports-history{color:orange;}
class definition .class_name class name, this is used in the head
.computing-history{color:green;}
element or an external style sheet.
</style>
this allows for classification (tag) of
classes
margin bottom | margin-right adds space to element above or below margin-top: 50px
| margin-left
padding-top | padding- adds space around the entirety of the
padding padding-top: 50px
bottom element
allign text-align aligns the text on a side text-align: left
allows for a set of styles that are only
applied to certain screen dimensions. | the
media query @media @media screen and (max-width: 768px) { body{text-align:center}}
example states styles that only occur at
screen sizes below 768px
Allows enhancement of webpage with
JavaScript
onmouseover=
on mouse do a function when the mouse is hovered
elements