1/9
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
What HTML stand for?
Hyper Text Markup Language
What is HTML?
Creates webpages, and describes the structure of a webpage.
Contains elements
What are elements? Give examples and definitions.
Contain start tag, content, and end tag.
Tells browser what to display. (Declarative)
Empty element → no content, no end tag.
What is a web browser?
Reads HTML documents and displays them accordingly.
Browser doesn’t display HTML tags but uses them to display document.
What must HTML documents start with?
Document type declaration
<!DOCTYPE html>
Helps browser display pages correctly
Always written once at top of the page.
Starts with: <html> | Ends with: </html> (after Doctype defined)
Where is the visible part of the a HTML document displayed?
Between <body> → </body> tags.
HTML Tag: Headings.
Defined with: <h1> → <h6> tags
<h1> is MOST IMPORTANT heading.
<h6> is LEAST important.
HTML Tag: Paragraph
Defined with <p> tag.
HTML Tag: Links
Defined with <a> tag.
e.g. <a href="This" data-prevent-progress="true">https://www.w3schools.com">This is a link</a>
href → attribute that specifies link destination.
Attributes → provide additional information about HTML elements.
HTML Tag: Images
Defined with <img> tag.
e.g. <img src="w3schools.jpg" alt="W3Schools.com" width="104" height="142">
src (source file), alt (alternative text), width, and height are attributes.