HTML Document structure and it's Syntax format

 

HTML Document structure and it's Syntax format:

HTML is the abbreviation for Hypertext Markup Language, which is utilized to make HTML web pages that are displayed on browsers. The set of rules and guidelines that make HTML code work is known as its syntax. 
 
HTML Syntax Structure Overview 
 
Angle brackets (<unk> and >) are used to enclose tags that represent elements in HTML documents. 
The fundamental idea is that an HTML element consists of a start tag, content, and a closing end tag. 
 
<start tagname>content</end tagname> 
 
 
The arrangement of tags is usually in pairs, with the opening tag preceding the content and the closing tag following it.In closing tags, the tag name is preceded by a forward slash (/). 
  [Google Ads]

Example looks like: 
 
<b>This is a paragraph element.</b> 
 
 
 
HTML tags, which are not visible in a browser, determine the document's display. It describes the structure of a Web page. It is composed of several elements. 
 
Commonly using HTML Elements 
 
The browser is guided by the HTML elements mentioned below in how to display the content. 
 
Fundamental Structural Elements 
 
<html> - Root element of an web page 
<head> - It contains document meta data 
<title> - Page title displays at top browser bar 
<body> -  includes document content 
 
 Sectional  Semantic Elements 
 
<header> - Header section 
<nav>- Navigation section 
<main>- Main content section 
<section>- Generic section 
<article> - Article 
<aside> - Sidebar 
<footer>- Footer section 
 
 
Text viewing Elements 
 
<p>- Paragraph 
<span>- Inline text container 
<strong>- Bold text 
<b> - Bold text (deprecated) 
<small> - Smaller text 
<em>- Italic text 
<i>- Italic text (deprecated) 
<ins>- Inserted text 
<mark> - Highlighted text 
<del>- Deleted text 
 
Table design Elements 
 
<table>- Table 
<th> - Table header cell 
<tr>- Table row 
<td> - Table data cell 
<caption>- Table caption 
 
 
Page title Headings purpose 
 
<h1>- Main heading 
<h2>- Subheading 
<h3>- Sub-subheading 
<h4>, <h5>, <h6>- Additional subheadings 
 
 
Linking to text Elements 
 
<a> - Anchor (link) 
<link>- External resource link 
 
 
List view Elements 
 
<ul>- Unordered list 
<ol>- Ordered list 
<li>- List item 
<dl> - Definition list 
<dt>- Definition term 
<dd>- Definition description 
 
Form field and input field Elements 
 
<form> - Form field 
<input> - Input field 
<textarea>- Text area field 
<select>- Drop down field 
<option>- Option item field 
<button> - Button type 
<label> - Label for input field 
 
Image display view Elements 
 
<img>- Image 
<figure> - Image container 
<figcaption>- Image caption 
 
 
Multimedia display Elements 
 
<video>- Video 
<audio>- Audio 
<canvas> - Canvas 
<iframe> - Inline frame 
 
Interactive  Elements 
 
<details> - Details element 
<summary> - Summary element 
<dialog>- Dialog box 
 
Special purpose elements  
 
& (ampersand) represents character entities (e.g., &nbsp; for non-breaking space) 
<!-- and --> for html non display comments  
 
HTML Elements structure 
 
 
    - Self-closing tags: <tagname />(no content) example <imag /> 
    - Attributes: <tagname attribute="value">content</tagname> 
    - Elements within element - Nested elements: <tagname><inner-tag>content</inner-tag></tagname> 
 
 
HTML element's Attribute definition 
 
    - attribute="value" 
    - attribute=value 
 
HTML full Document Structure 
 
<!DOCTYPE html>- It declares the document type 
<html>- this is the root element 
<head>- it contains metadata (title, styles, scripts included here) 
<body>- contains the full document's content and structure, elements. 
 
 
An Example HTML web page 
 
<!DOCTYPE html> 
<html> 
<head> 
  <title>Joe : Welcome</title> 
</head> 
<body> 
  <h1>Welcome!</h1> 
  <p>This is a paragraph element.</p> 
</body> 
</html> 
 
All HTML versions till 2024 
 
- HTML version 1.0 (1993) - Initial release 
 
- HTML version 2.0 (1995) - Included forms, tables, and client-side maps 
 
- HTML version 3.2 (1997) - Introduction of Casecade Stylesheets CSS, JavaScripts JS and Frames 
 
- HTML version 4.01 (1999) - Improved accessibility, deprecated elements 
 
- XHTML version 1.0 (2000) - Introduced XML-based HTML 
 
- HTML version 5 (2014) -Introduction of Major update, added multimedia, canvas, and semantic elements 
 
- HTML version 5.1 (2016) -Introduction of Minor update, improved accessibility 
 
- HTML 5.2 (2017) - Introduction of Minor update, deprecated some elements 
 

POPULAR POSTS ::

Add multiple upload box

String Separation

Only number restrictions

Addslashes

Add and Separate more records by comma operator

The top Web development PHP frameworks