HTML
HTML stands for HyperText Markup Language.
Why to use HTML ?
+ Base for creating websites: tis the basic necessity a developer should know while
building a website from scratch
+ Learn web development: isthe fst step towards learning Web Development. Once you
lear it, you can build simple, static websites very easly
+ Can become freelancer: Since web development has the best scope in freelancing,
therefore learning it will surely help you to get the best deals of website development In
the market
<1DOCTYPE html>
ehtml>
cbody>
A computer science portal for geeks
‘: This is the document type declaration (not technically a tag). It declares
a document as being an HTML document. The doctype declaration isnot case-sensitive
_chtml>: This is called the HTML root element. Al other elements are contained within it._cheado: The head tag contains the “behind the scenes” elements for a webpage. Elements
Within the head aren't visible an the front-end of a webpage. HTML elements used inside
the element include:
+ styles
MW
Ea
choy: The body tag is used to enclose al the visble content of a webpage. In other
words, the body content is what the browser will show on the frontend.
‘An HTML document can be created using any text editor. Save the text file
Using html or htm. Once saved as an HTML document, the file can be opened as 9
webpage in the browser.
Types of HTML Comments: There are three types of comments in HTML which are
+ Singlesine comment
+ Multitines comment
+ Using tag
Cloothis 4s heading Tag
‘eoaGeeksForGeeks
to
. Every tag displays the heading ina different
style and font size
ctitlerGecksforGecks
Hello Geeks forGeeks
Hello GeeksforGecks
this is me
HTML mages: The image tag is used to insert an image into our web
The source of the image to be inserted is put inside the tag.
Example:This example illustrates the use of the tag for
inserting the images in HTML
cread
“titlerGeeksForseeks
King src=
“nttps:/ (media, geeks forgeeks.org/up-content/cdn-yploads/Geek logs =
soaccssaane">
“
ements