Introduction to HTML Flashcards
HTML
Hypertext Markup Language
Anatomia de html
- opening tag
- element
- closing tag
Body
the element of the webpage. only the elements inside the opening and closing body tags can be displayed
Headings
headings are used to describe content like a title, there are 6 different type of headings
Divs
division or a container that divides the page into sections
Attributes
are content added to the opening tag that can be used to provide information or change styling
Displaying text
can use paragraph “p” or span “span”“/span”“/p”“p” is a block of raw text
“span” contains a short pieces of text or other html”/span”“/p”
Styling text
“em” emphasizing text
“strong”highlights important text “/strong”“/em”
Line Breaks
modify space in the browser “br” like the enter of Microsoft word
Unordered List
“ul” to start the unordered list and “li” “/li” to list them”/ul”
Ordered Lists
“ol” “/ol” to start them (used for list lists) and “li” to add items on the list”/li”
Images
we use the tag img and we add the source
Image Alts
we use image alts to describe the image in the code(alt)
Videos
addition of a video “src””” remember u have to add “width, height and controls” to the video. u have to remember to add “video not supported” to displayed if the browser didn’t support the video
HTML setup
to declare that we will use a html
HTML tag
to create the structure of the html document we add the opening and the closing tab of
Page titles
the browser tab shows the title we use so we put a opening and closing tab of page titles (always inside of the head tag)
Linking to other web pages
we use an opening and closing tab of “a” and a href=page to mark a text to a link we to anywhere on the web we want
Opening a link in a new tab
we add “target=_blank” if we want to add a new opening tab with the link we mark
Linking at the same page
that’s why we use divs to use an anchor with a ref=”#div” to link at the same page
Forms
to create a from we have to add the opening and closing tab of this one
Text input
The “input” element has a type attribute which determines how it renders on the web page and what kind of data it can accept
Adding a Label
For a user to properly identify an “input” we use the appropriately named “label” element. to associate a label w an input we have to use for attribute.
Number Input
in the forms we can add an number input by setting type=”number”