1/44
LESSON 1 of html IT304
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
Definition of HTML
Hyper Text Markup Language
Tim Berners Lee
The designer of the original HTML
Markup language
A set of markup tags used to describe HTML documents
XHTML
Extensible Hypertext Markup Language
W3C
World Wide Web Consortium
the organization that recommends XHTML
the standard for writing HTML
Web browsers
Software used to read and display HTML documents
HTML tags
Describes different elements of a document in HTML
It consists of an element name (or letter symbol) enclosed in a left and right-angle brackets.
It provides instructions on how the information will be processed by the browser.
Formula for HTML tags and elements
<start tag> element content <end tag>
Empty tags
HTML tags that do not require an end tag
Paired Tags
Consist of a start tag and an end tag to mark the beginning and end of a section in HTML
Case sensitive
HTML tags are not case sensitive, but lowercase is recommended
Elements
Consist of a start tag, end tag, and content in between
Block level elements
HTML elements that start on a new line and take up the full width available
Examples:
<h1> to <h6>
<p>
<div>
Inline elements
HTML elements that do not start on a new line and only take up as much width as necessary
Examples:
<img>
<span>
<a>
Attributes
Provide additional information about an HTML element
Are always specified in the start tag
Usually come in name/value pairs like name="value“.
red is the attribute:
<body align= “center”>
<!doctype html>
Represents the document type of HTML5
- helps the browser to display a web page correctly.
- the doctype declaration is not case sensitive.
<!doctype HTML>
<!DOCTYPE html>
HTML5
The latest version of HTML, represented by the declaration
<html>
used to indicate that the document is an HTML file.
It indicates the beginning and the end of an HTML file.
<head>
this tags delimits the header section of the document and contains information about the document that is not generally displayed within the document.
<body>
is a tag that sets the overall page characteristics and delimits the beginning and end of the body section of the HTML document.
It contains the entire document to be displayed on the page.
<font>
the tag specifies the font-face, font-size, and color of text.
font-face
is the HTML font standard format
<i>
This tag italicizes section of text in an HTML document
Header 1 in italic
<b>
This tag bolds section of text in an HTML document.
Header 4 in bold
<u> </u>
This tag underlines section of text in an HTML document.
<em>
This tag emphasize section of text in an HTML document. (like italic)
<sub>
This tag is used to create subscript in an HTML document.
X2
<sup>
This tag is used to create superscript in an HTML document
X²
HTML Headings
are defined with the <h1> to <h6> tags
<h1> defines the most important heading.
<h6> defines the least important heading.
HTML Display
with HTML, you cannot change the output by adding extra spaces or extra lines in your HTML code.
The browser will remove any extra spaces and extra lines when the page is displayed.
<p>
this HTML element defines a paragraph.
<br>
this HTML element defines a line break.
<hr>
means Horizontal Rule
this tag defines a thematic break in an HTML page and is most often displayed as a horizontal rule.
this is an example of <hr> tag
<pre>
means Preformatted
the text inside this element is displayed in a fixed-width font (usually Courier)
it preserves both spaces and line breaks
<img>
means HTML IMAGES (jpg, png, gif)
The tag defines an image in an HTML page.
disabled
Specifies an input element should be disabled
href
Specifies the URL for a link
id
Specifies a unique id for an element
style
Specifies an inline CSS style for an element
title
Specifies extra information about an element
src
means Source
Specifies the URL for an image
alt
means Alternate Text
Specifies an alternate text for an image
<a>
means Anchor
This tag defines a hyperlink, which is used to link from one page to another.
The most important attribute of this element is the href attribute, which indicates the link's destination.
<td>
means Table cell
this table element defines the table cell.
<fr>
means Form
tag is used to create an HTML form for user input.