HTML
<!DOCTYPE html>
<html>
<head>
<title>HTML Structure</title>
</head>
<body>
<h1>Welcome to HTML Class</h1>
<p>You can learn here how to create webpages using HTML</p>
<a href="https://www.example.com">Read More</a>
</body>
</html>
Code Output
HTML Introduction
HTML (Hypertext Markup Language) is the standard markup language used for creating web pages and applications. It provides the structure and content of a webpage by using a set of tags to define elements.
HTML Structure
An HTML document consists of the following main components:
- Document Type Declaration: The
<!DOCTYPE html>
declaration defines the document type as HTML5. - Root Element: The
<html>
element serves as the root element of an HTML document. - Head Section: The
<head>
section contains meta-information about the document, such as the title and links to external stylesheets or scripts. - Body Content: The
<body>
element represents the main content of the document, including text, images, links, and other elements.
HTML Editors
Editor is use to create web page. You can write html code in any editor. We are share some commonly used editors list here
- Atom
- Sublime
- Notepad++
After writing html code we have to save it with .html extension