Vous êtes sur la page 1sur 1

Basic HTML

Rendered as

Declaration
Name Declaration Function
This declaration is the very rst thing in a HTML
document, before the <html> tag. It tells the web
!DOCTYPE <!DOCTYPE>
browser which version of HTML the page is written
in.

Tags HTML tags define a web pages structure. These are generally used in pairs that include an opening and a closing

Tags
Name
tag. When a web page is rendered in a browser, the tags are not visible to the user.
Tag (opening and closing) Function

Tags are used in HTML to define a pages basic structure


HTML <html> </html> Hyper Text Markup Language

Head <head> </head> The head, or prologue, of the HTML document

All the other content that is contained in the HTML


Body <body> </body>
document

Title <title> </title> The title of the document

Used to indicate a paragraph. Browsers


Paragraph <paragraph> </paragraph> automatically add a margin before and after each
<p> element

Heading 1 <h1> </h1> Denes the most important heading, h1

Heading 6 <h6> </h6> Denes the least important heading, h6

This tag inserts a single line break. The tag is an


Break <br>
empty tag, which means there is no end tag

This tag denes an image in an HTML page. Both src


Image <img src="Images/computingatlatymer.png" alt="image unavaliable">
and alt are required

This denes a hyperlink, that is to link from one page


Link <a href="http://www.google.com">Click for Google</a>
to another. By defailt this displays in blue

Bold <strong> </strong> This renders text as bold

Stude copyright 2015 | www.studeapps.com| all rights reserved

Vous aimerez peut-être aussi