Added "images referencing" from (#132 to #140) (#32839)

This commit is contained in:
Joshua Odoi
2018-12-04 01:49:55 +00:00
committed by Christopher McCormack
parent 6caead6255
commit eb7d5ca14f

View File

@ -5,13 +5,12 @@ title: HTML
# HTML
![html logo](https://www.w3.org/html/logo/badge/html5-badge-h-solo.png)
HyperText Markup Language (HTML) is the standard [markup language](https://en.wikipedia.org/wiki/Markup_language) used for creating web pages, web applications and moreover is the foundation of most websites today. A markup language like HTML allows us to:
1) Create links to other documents
2) Structure the content in our document
3) Attribute context and meaning to the content of our document
An HTML document has two aspects which are the Markup and the HyperText. The first aspect contains structured information that makes up the website, and latter contains text-links (HyperText) to other documents. We structure our pages using [HTML elements](#). They are constructs of the language providing [structure](#) and [meaning](#) in our document for the browser and the [<anchor>](#) element links to other documents across the internet.
The first publicly available description of HTML was a document called "HTML Tags", first mentioned on the Internet in late 1991 by Tim Berners-Lee, who is widely credited with the invention of html.
@ -143,6 +142,16 @@ To create a link the `<a>` tag is used. The href attribute holds the URL address
<a href="https://www.youtube.com">A link to Youtube!</a>
```
**Images**
To insert an image, `<img>` tag is used. The `src` attribute holds the URL or path to the image.
```html
<img src="path/image_name.format" alt="descriptive text">
<img src="image_name.format" alt="descriptive text">
<img src="www.url/image_name.format" alt="descriptive text">
```
**Inputs**
There are many possible ways a user can give input/s, such as: