Introducing
Your new presentation assistant.
Refine, enhance, and tailor your content, source relevant images, and edit visuals quicker than ever before.
Trending searches
<what_is_html?>
HTML, short for hypertext markup language, is a language to organize and publish pages to be displayed on a web browser.
This language allows for organizing text, images, and videos on web pages.
Elements
& Structure
Media
Tables
<elements>
An element is a unit of content in an HTML document formed by HTML tags and the text or media it contains.
Closing tag
Opening tag
An HTML tag defines how the web browser should format and display the content contained within the tag.
<p> My cat is very grumpy </p>
Most tags have an opening tag and a closing tag, and content is usually contained between these tags.
Content
Element
All code to be interpreted as HTML must be contained between opening and closing <html> tags.
HTML
The element which contains a child element is called a parent—this hierarchy can be extended to grandchildren, great-grandchildren, etc.
HEAD BODY
An element is considered a child when it is contained within another element.
<html>
<head>
<title>Google</title>
<style>...</style>
</head>
<body>
<div>...</div>
<center>...</center>
<div>...</div>
</html>
DIV CENTER DIV
TITLE STYLE
GOOGLE <...> <...> <...> <...>
Elements at the same level are considered siblings.
Two spaces of indentation are required when nesting elements.
The heading element, like its namesake, is used to display headings.
There are six different headings, which are ordered from largest to smallest, starting with <h1> and ending with <h6>.
<p> <h1> This is my main heading</h1></p>
To display a block of plain text, you can use the paragraph tag: <p>.
Some tags contain attributes that provide information about the tag or change styling for the element.
Here, we will learn how to include media on a web page.
<media>
The image tag <img> is self-closing and allows you to add an image to a web page.
The image tag has a required attribute called src, which must be set to the image’s source, or location of the image.
<img src="dog.jpg" alt="My Dog">
image description
image filename
The alt attribute allows you to provide a description of the image.
A self-closing tag does not require a closing tag—content is contained within the opening tag rather than the opening and closing tags.
The width and height attributes set the size of the video displayed in the browser.
<video src ="myVideo.mpr" width = "320"
height="340r" controls >
The video tag displays video and requires a src attribute with a link to the video source.
Video not supported
The controls attribute instructs the browser to include basic video controls such as pause, play, and skip.
</video>
Unlike the image tag, the video tag requires an opening and closing tag.
The text “Video not supported” will only be displayed if the browser is unable to load the video.
From what you’ve learned here, you can make a basic webpage using HTML.
Create a web page with the heading “My Media,” and add some text using the paragraph tags to give an overview of the media you will use.
<your_turn>
Be sure to include at least one image and one video, and don’t forget to use the correct attributes.