Uploaded by isai salvio

Module 1

advertisement
WHAT IS HTML?
HTML stands for Hyper Text Markup Language.
HTML is the standard markup language for creating Web pages.
HTML describes the structure of a Web page.
HTML consists of a series of elements
HTML elements tell the browser how to display the content
HOW DO WE CREATE AN HTML FILE?
WHAT IS A DOCTYPE? AND WHAT IS
THE STRUCTURE OF AN HTML FILE
WHAT IS AN HTML ELEMENT AND HTML
ATTRIBUTES
All HTML elements can have attributes
Attributes provide additional information about elements
Attributes are always specified in the start tag
Attributes usually come in name/value pairs like: name="value"
HOW HTML GETS FORMED OR PARSED
Source:
https://developer.mozilla.
org/enUS/docs/Web/Performan
ce/How_browsers_work
MOST COMMON HTML ELEMENTS
header
title
body
main
h1 ->
headings
span
label
p ->
paragrap
h
div
script
br -> line break footer
aside
ul, ol -> lists attributes:
start
article
reversed
type:
section
1
button
A
a
style
I
link
i
ADDING COMMENTS IN HTML FILES
THE META TAG
The <meta> tag defines metadata about an HTML document. Metadata is data
(information) about data.
<meta> tags always go inside the <head> element, and are typically used to
specify character set, page description, keywords, author of the document, and
viewport settings.
HOW TO IDENTIFY HTML ELEMENTS
The Id attribute:
The id attribute specifies a unique id for an HTML element. The value of the id attribute must be
unique within the HTML document.
The id attribute is used to point to a specific style declaration in a style sheet. It is also used by
JavaScript to access and manipulate the element with the specific id.
The class attribute:
The class attribute is often used to point to a class name in a style sheet. It can also be used by a
JavaScript to access and manipulate elements with the specific class name.
The Name attribute:
The name attribute specifies a name for an HTML element.
This name attribute can be used to reference the element in a JavaScript.
For a <form> element, the name attribute is used as a reference when the data is submitted.
DEBUGGING OR INSPECTING HTML
CODE
Photo by Clay Banks
Related documents
Download