Grokking HTML
Vote

0% completed

​

Inserting an Image With <img>

A picture on a web page is not stored inside the HTML file. The HTML file only contains an <img> element that says where the picture is, and the browser fetches the picture in a separate step. For the pancake recipe page, the markup looks like this:

<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Fluffy Pancakes</title> </head> <body> <h1>Fluffy Pancakes</h1> <img src="images/pancakes.jpg" alt="A stack of three pancakes topped with blueberries">

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content