HTML Basics refers to the fundamental elements and concepts used to create web pages using HTML (Hypertext Markup Language). These include:
A basic HTML document is the fundamental structure of a web page written in HTML (Hypertext Markup Language). It typically includes
Tags
|
Descriptions
|
---|---|
|
Declares the document type as HTML5
|
|
The root element that encloses the entire HTML content.
|
|
Contains metadata, like the page title and links to stylesheets
|
|
Sets the title displayed on the browser tab
|
|
Holds the visible content of the web page, such as text, images, and links.
|
Try it yourself
HTML Basic structure
HTML headings are defined between <h1>
to <h6>
tags.
<h1>
defines the higher heading. <h6>
defines the lower heading:
<h1></h1> <h2></h2> <h3></h3> <h4></h4> <h5></h5> <h6></h6>
Try it yourself
HTML paragraph are defined by <p>
tags.
<p></p>
HTML break are defined by <br>
tags.
<br/>
HTML Horizontal line are defined by <hr>
tags.
<hr/>
HTML Image are defined by <img>
tags.
<img>
Try it yourself
HTML Link are defined by <a>
tags.
<a href=""></a>