For a BASIC STRUCTURE
<!DOCTYPE html>
<html>
<head>
<title>Title</title>
</head>
<body>
</body>
</html>
Text & Headings
<h1> to <h6> Headings
<p> Paragraph
<br> Line break
<hr> Horizontal rule
<span> Inline container
<div> Block container
Links & Images
<a href="url">Link</a>
<img src="img.jpg" alt="text">
LISTS
<ul> Unordered list
<ol> Ordered list
<li> List item
FORMS
<form>
<input type="text (or)| email (or)| password">
<textarea></textarea>
<button>Submit</button>
</form>
Tables
<table>
<tr> Table row
<th> Header
<td> Data
</table>
Semantic Tags
<header> Page header
<nav> Navigation
<main> Main content
<section> Section
<article> Article
<aside> Sidebar
<footer> Footer
CSS & JS
<link rel="stylesheet" href="style.css">
<style> CSS </style>
<script src="script.js"></script>
Common Attributes
id Unique identifier
class Reusable style
src Source file
href Link reference
alt Image text
Top comments (2)
Could you please explain the difference between tags and Semantic tags
Some comments may only be visible to logged-in visitors. Sign in to view all comments.