HTML For Newbies
HTML For Newbies
HTML For Newbies
What's HTML??
HTML stands for Hyper Text Markup Language. It is a text markup language
and it's the standard markup language for creating web pages.
What does that mean?
A markup language is a computer language that consists of simple keywords,
names or tags to help format and structure the way in which text is
displayed.
There are several markup languages used by coders but html is the most
commonly used one and as such it's the standard markup language that most
browsers recognize.
Simply put, html is what's used to “manually format" text. Formatting
basically entails making text bold, italics, underlined and other similar text
customization.
So now that you have an idea of what HTML is there's one
important thing you should know
HTML is NOT a programming language, it is a MARKUP language.
Why is this distinction important?
Programming languages are used to give computers instructions to perform tasks. It tells a
computer how to DO something. Programming involves complex levels of instruction to
computers.
Markup languages are “declarative languages" - they tell the computer what must be done
but provide no instructions on how to do it. Markup languages are somewhat simpler than
programming languages.
As html formats text, which is describing for the computer how it should look, without
saying how to get it to look that way it's a markup language.
This is a simplified distinction but for now, it's enough to know that html isn't a
pprogramming language.
After all of this defining you're probably wondering what HTML is
actually *used* for
For starters, html is used to structure the data and text on websites, apps and other web
applications.
Html has a series of “elements” that “wrap” or are placed around portions of text to make it
appear or act in a certain way.
On it's own, html is just a text formatter but when combined with other languages like CSS,
Python or JavaScript it can be used to construct fully functional and complex websites.
An Example of HTML Code
Source : https://www.w3schools.com/html/html_intro.asp
Output of that HTML Code
Source : https://www.w3schools.com/html/html_intro.asp
Elements and Tags in HTML
Looking at that piece of code on the previous slide you've probably noticed lots of
words enclosed in angle brackets, <>.
These words are html “tags”. They are what defines how the text should be
displayed and they give structure and organization to a web page.
An html element conaists of a start tag, content to be formatted and then an end
tag.
For example:
Tags themselves are not visible to viewers of a website but their effects on the
text can be seen.
Elements and Tags in HTML continued
Elements can be placed inside of other elements, this is known as nesting.
For example:
<Element1>
<Element2>
</Element2>
</Element1>
TRIVIA
Which would be bigger a h1 element or a h6
element?
A. The h1 element
B. They'd be the same size
C. The h6 element
D. There's no h6 element
And the answer is……..
A. The h1 element
What type of language is html?
A. English
B. A programming language
C. A computer language
D. A markup language
And the answer is……..
D. A markup language
Which of the following can you do with
html
C. Format text
Are tags visible to viewers of a
webpage?
A. Nesting
B. There's no specific name for
that
C. Matryoshka
D. Roosting
And the answer is……..
A. Nesting
Thanks for coming everyone!
We hope you had a great time and we'll
see you soon!