1/28
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
HTML
stands for Hyper Text Markup Language
the standard markup language for creating Web pages
consists of a series of elements
Tim Berners-Lee
Invented the HTML
HTML5
Latest version of HTML
SIMPLE HTML DOCUMENT
DOCTYPE html>
<html>
<head>
<title> Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My First Paragraph</p>
</body>
</html>
<!DOCTYPE html>
Declaration defines that this document is an HTML5 document
<html>
Element is the root element of an HTML page
<head>
Element contains meta information about the HTML page
<title>
Element specifies a title for the HTML page (which is shown in the browser’s title bar)
<body>
Element defines the document’s body, and is a container for all the visible contents, such as headings, paragraphs, images, hyperlinks,tables, lists, etc.
<h1>
Element defines a large heading
<p>
Elements defines a paragraph
HTML element
defined by a start tag, some content, and an end tag.
Ex. <title> Page Title</title>
<start tag> element content<end tag>
<br>
Empty element (don’t have end tag)
<ul>
Defines an unordered list
<ol>
Defines an ordered list
<li>
Defines a list item
<h1> to <h6>
Defines HTML headings
<p> </p>
Defines a paragraph
<b>
Defines a bold text
<i>
Defines italic text
<u>
Defines underlined text
HTML attribute
provide additional information about HTML elements.
<a> tag
Defines a hyperlink
href attribute
specifies the URL of the page the link goes to:
(ahrefo*https://www.$schools.com›Visit N3Schools</a>
src attribute: <img> tag
is used to embed an image in an HTML page.
The src attribute specifies the path to the image to be displayed:
Cascading Style Sheets (CSS)
used to format the layout of a webpage.
Inline
by using the style attribute inside HTML elements
Internal
by using a <style> element in the <head> section
External
by using a <link> element to link to an external CSS file