Basics
HTML Beginner’s Tutorial:Hyper Text Markup Language, HTML Basics
Welcome to our HTML beginner’s tutorial. This tutorial is designed for absolute beginners with no previous knowledge of HTML. By the end of this tutorial, you will have a good understanding of the basics of Hyper Text Markup Language and will be able to create a simple web page using HTML.
What is HTML?
HTML stands for Hyper Text Markup Language. It is the standard markup language for creating web pages and web applications. HTML is used to structure the content of a web page. The content can be text, images, videos, etc.
HTML elements are the building blocks of an HTML document. An HTML element is everything from the start tag to the end tag:
The start tag is also called the opening tag, and the end tag is also called the closing tag.
All HTML documents must start with a document type declaration: .
The document type declaration tells the web browser about the version of HTML used in the document.
The element is the root element of an HTML page:
All other elements must be children of this element.
The
element contains all the contents of an HTML page:The
element contains information about your page which isn’t shown on your page:The
You can see how all these elements are nested inside each other in the code example below:
HTML code example:
My First Heading
My first paragraph.
–>
How do I create an HTML file? –> An HTML file must have two parts: a head and a body : –> The head part contains information about your page which isn’t shown on your page. This includes things like your page’s title and CSS stylesheets . –> The body part contains all the contents of your page which are shown on your page (i.e., what you see when you visit a website). This includes things like text, images, videos, etc. To create an HTML file, you can use any text editor (e.g., Notepad++ ,Sublime Text , Atom ). When you’re done editing your file, save it with an .html extension (e.g., mypage.html ). Now you can open your file in a web browser (e.g., Google Chrome , Mozilla Firefox , Microsoft Edge ) and view your web page! –> That’s all there is to it! In the next section, we’ll go over some basic tags that are commonly used in HTML documents.