140 likes | 248 Vues
Learn how to create your first web page using basic HTML tags. This guide covers essential elements like the doctype declaration, the html, head, and body tags, and provides insights on using empty tags such as meta. We'll discuss the significance of attributes, including language specification and character encoding. Additionally, you'll discover how to structure page content effectively, ensuring a well-formed HTML document that will display correctly in web browsers. Start your journey into web design with these foundational concepts!
E N D
Creating Your 1st Web Page The Most Basic HTML Page
Tags • Refers to anything between <> on a webpage • Most appear in pairs surrounding content • Some appear as empty tags (no closing tag) – These are always structured < stuff/> • Used to structure the page • Keep lowercase!
Document Type Definition • <!doctype html> • Empty tag (no closing) • Tells browser what type of document the webpage is • html: HyperTextMarkup Language • Specifically HTML5
html Tag • Pair of tags (will close later) • Surround everything else on page • lang attribute specifies language of the page • en = English • Attribute values are surrounded by quotation marks
head Tag • Pair of tags (will close later) • Contains info about the page • Tags in this section do NOT display on the page itself
meta Tag • Empty tag (no closing) • Info about the page • charset attribute specifies the encoding of text used in coding the page
title Tag • Pair of tags • Surround title of the page • Appears in top of browser • Used as title for bookmarks • Used in search engine results
Close the head section • End of head section • Notice closing tags start with / This guy’s really into web design!
body Tag • Pair of tags (will close later) • Contains content that WILL display on the webpage
p Tag • Pair of tags • Surround paragraph content that displays on page
Close the body section • End of body section
Close of html • End of the page