LETA Coding
LETA Coding
HTML
“App: FreeCodeCamp"
Leta.Africa
NOTES:
o HTML stands for Hyper Text Markup Language
o HTML is the standard markup language for creating Web pages
o HTML describes the structure of a Web page
o HTML consists of a series of elements
o HTML elements tell the browser how to display the content
o HTML elements label pieces of content such as "this is a heading", "this is a paragraph", "this is a
link", etc.
1. The opening tag: This consists of the name of the element wrapped in opening and closing angle
brackets. This states where the element begins or starts to take effect — in this case where the
paragraph begins. (<)
2. The closing tag: This is the same as the opening tag, except that it includes a forward slash before
the element name. This states where the element ends failing to add a closing tag is one of the
standard beginner errors and can lead to strange results. (/>)
HTML TAGS
<!DOCTYPE>: This tag defines the document type and HTML version.
<html>: This tag encloses the complete HTML document and mainly comprimises of ducment header
which is represented by <head> - </head> and document body which is presented by <body> -
</body> tags.
<head>: This tag represents the document’s header which can keep other HTML tags like <title>,
<link> etc.
<title>: The <Mtitle< tag is used inside the head> tag to mentin the document tile
<body>: This tag represents the documents body which keeps other HTML tags like <hq>, <div>,
<p> etc.
<div>: Is division. A special element that lets you grou similar sets of content together on a webpage.
CODE:
To begin a HTML you say:
<!DOCTYPE HTML> | which lets the website know your coding in HTML |
TO BEGIN
<html>
<head>
<head>
<body>
<img src=“https://steammerrty.com/assets/kittenimage.jpg”>
<ul>
<li><b>250ml</b></li>
<li><em>Less Sugar</em></li>
</ul>
</body>
</html>
<a> - </a>
LINKS
<a href=“https://www.petbook.com/RemiTheCat”>Remi The Cat</a>
EMAILS
<a href=“mailto:[email protected]</a>
You can also add a break tag <br> where it will insert a single line break
<a href=“mailto:[email protected]</a>
TO SUMMARIZE HREF
mailto: for emails