Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
College aantekeningen

HTML basics

Beoordeling
-
Verkocht
-
Pagina's
27
Geüpload op
05-03-2023
Geschreven in
2020/2021

When I started my journey in computer science and web development, it was a bit overwhelming. I decided to enforce my learning with online platforms such as Codecademy. In order to memorize the syntax and use it when I am offline from the Internet, I wrote this word document so I can refer to it when I forget the syntax or the definition of an element, I can use the microsoft word features and find when I am looking at quickly, highlight important stuff... I do not own the content, it is available at codecademy, feel free to check their website :) :)

Meer zien Lees minder
Instelling
Vak

Voorbeeld van de inhoud

HTML
What exactly is HTML?

HTML provides structure to the content appearing on a website, such as images,
text, or videos.

HTML stands for Hypertext Markup Language:

 A markup language is a computer language that defines the structure and
presentation of raw text.
 In HTML, the computer can interpret raw text that is wrapped in HTML elements.
 HyperText is text displayed on a computer or device that provides access to
other text through links, also known as hyperlinks.

HTML anatomy

HTML is composed of elements. These elements structure the webpage and define
its content.




This diagram displays an HTML paragraph element. As we can see, the paragraph
element is made up of one opening tag (<p>), the content (“Hello World!” text),
and a closing tag (</p>). A tag and the content between it is called an HTML element.
There are many tags that we can use to organize and display text and other types of
content, like images.

 HTML element (or simply, element): Unit of content in an HTML
document formed by HTML tags and the text or media it contains.
 HTML Tag: The element name, surrounded by an opening (<) and closing
(>) angle bracket.
 Opening Tag: The first HTML tag used to start an HTML element. The tag
type is surrounded by opening and closing angle brackets.

,  Content: The information (text or other elements) contained between the
opening and closing tags of an HTML element.
 Closing tag: The second HTML tag used to end an HTML element. Closing
tags have a forward slash (/) inside of them, directly after the left angle
bracket.

The body
One of the key HTML elements we use to build a webpage is the body element.
Only content inside the opening and closing body tags can be displayed to the screen.
Here’s what opening and closing body tags look like:




Once the file has a body, many different types of content -including text, images,
and buttons- can be added to the body.

HTML structure
HTML is organized as a collection of family tree relationships. When an element
is contained inside another element, it is considered the child of that element.
The child element is said to be nested inside of the parent element.




In the example above, the <p> element is nested inside the <body>
element. The <p> element is considered a child of the <body> element, and
the <body> element is considered the parent.

Since there can be multiple levels of nesting, this analogy can be extended to
grandchildren, great-grandchildren, and beyond. The relationship between elements
and their ancestor and descendent elements is known as hierarchy.

, In this example, the <body> element is the parent of the <div> element.
Both the <h1> and <p> elements are children of the <div> element. Because the
<h1> and <p> elements are at the same level, they are considered siblings and are both
grandchildren of the <body> element.

Understanding HTML hierarchy is important because child elements can
inherit behaviour and styling from their parent element.

Headings
In HTML, there are six different headings, or heading elements. Headings can be
used for a variety of purposes, like titling sections, articles, or other forms of
content.

The following is the list of heading elements available in HTML. They are ordered
from largest to smallest in size.

 <h1> used for main headings. All other smaller headings are used for
subheadings.
 <h2>
 <h3>
 <h4>
 <h5>
 <h6>

Divs
One of the most popular elements in HTML is the <div> element. <Div> is short
for “division” or a container that divides the page into sections. These sections are very
useful for grouping elements in your HTML together.

Geschreven voor

Instelling
Vak

Documentinformatie

Geüpload op
5 maart 2023
Aantal pagina's
27
Geschreven in
2020/2021
Type
College aantekeningen
Docent(en)
Codecademy
Bevat
Html

Onderwerpen

$9.19
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Maak kennis met de verkoper
Seller avatar
imanebehaj

Maak kennis met de verkoper

Seller avatar
imanebehaj university Hassan II
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
-
Lid sinds
3 jaar
Aantal volgers
0
Documenten
1
Laatst verkocht
-

0.0

0 beoordelingen

5
0
4
0
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen