Welcome back to
ReDI School Munich - Spring 2021
Welcome back to
ReDI School Munich - Spring 2021
What's HTML?
What's HTML?
Basic Structure
Basic Structure
Basic Structure
π The DOCTYPE declaration is an instruction to the web browser about what version of HTML the page is written in.
π <html> tag indicates that this web page is written in HTML.
π the <head> element contains title and meta data of your web document.
π <title> tag contains the web page title.
π the <body> tag contains the content and its structure of your entire web page.
π the <h1> represents the level of heading of your web page. (we'll dip dive on this)
π the <p> is simply a paragraph text that can be displayed at anywhere on your page. π
Why?
Why?
Reminder: Make sure you always have the following steps settled locally before the class starts.
index.html
file from previous homework and paste into a new folder (e.g. lesson2/index.html
)file://
in your address bardemo being presented
Let's learn a few other tags in HTML which will be important in the upcoming lessons and topics
Let's learn a few other tags in HTML which will be important in the upcoming lessons and topics
<div>
defines a division or a section in an HTML document.<img>
used to embed an image in an HTML page. (remember: img is a void element - there is no closing tag)<a>
defines a hyperlink, which is used to link from one page to another. (`a` as in anchor)<!-- SOME COMMENT -->
specifies a comment in a page (only visible for developers).ππΌ The ones you know already
<p>
represents a paragraph.<h1>, <h2> ... <h6>
used to define HTML headings, from most to less important.Reminder: Some of those tags contain important attributes!
Reminder: Some of those tags contain important attributes!
"OK, but what are attributes of a tag?" π€π
π Attributes are special words used inside the opening tag to control the element's behaviour.
<img>
attributes
<a>
attributes
Let's all focus in the demo and afterwards we'll be doing a in-class exercise.
Let's get into group of 4 to build the following in-class exercise together:
Let's get into group of 4 to build the following website together in about 15 minutes:
dog.html
);Teacher will send you the link and password through our Zoom chat.
What's CSS?
What's CSS?
You most likely remember our tag attributes from some of the tags, don't ya?
Q: Still, why "inline" and what does that meanβ
A: It means we want to make sure we add styles for a few components to get an idea of how CSS works
π We will dive deeper into CSS in the next lesson.
Reference: HTML best practices π
π We will also dive deeper into inspecting elements and their styles in the upcoming lessons.
π Anyone color blind? Talk to me privately and I can propose a different exercise for you!