-
HTML Tags Elements
HTML
CSS
JavaScript
Structure
< html >
Root element of an HTML document
< head >
Contains metadata and links
< body >
Main visible content
< title >
Page title in browser tab
< meta >
Defines metadata
< link >
Links external resources
< style >
Internal CSS styles
< script >
Adds JavaScript
Text Content
< h1 >-< h6 >
Headings from largest to smallest
< p >
Paragraph text
< br >
Line break
< hr >
Horizontal divider
< pre >
Preformatted text
< blockquote >
Quoted section
< ul >
Unordered list
< ol >
Ordered list
< li >
List item
Inline Text
< a >
Hyperlink
< span >
Inline container
< strong >
Important text
< em >
Emphasized text
< b >
Bold text
< i >
Italic text
< u >
Underlined text
< mark >
Highlighted text
< small >
Smaller text
Media
< img >
Displays image
< audio >
Embeds audio
< video >
Embeds video
< source >
Media source file
< track >
Captions/subtitles
< iframe >
Embeds another page
Forms
< form >
Form container
< input >
Input field
< textarea >
Multiline input
< button >
Clickable button
< select >
Dropdown list
< option >
Dropdown option
< label >
Label for input
< fieldset >
Groups form elements
< legend >
Fieldset title
Tables
< table >
Table container
< tr >
Table row
< td >
Table cell
< th >
Header cell
< thead >
Table header group
< tbody >
Table body group
< tfoot >
Table footer
Semantic
< header >
Top section
< nav >
Navigation links
< section >
Page section
< article >
Independent content
< aside >
Sidebar content
< footer >
Bottom section
< main >
Main content area
< figure >
Media container
< figcaption >
Caption for figure
body { margin: 0; font-family: 'Segoe UI', sans-serif; background: #0f172a; color: #e2e8f0; } header { text-align: center; padding: 25px; font-size: 26px; font-weight: bold; background: linear-gradient(135deg, #1e293b, #020617); } /* Section */ .section { padding: 20px; height: 500px; } .section h2 { margin-bottom: 15px; border-left: 4px solid #38bdf8; padding-left: 10px; } /* Grid */ .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 15px; } /* Card */ .card { background: rgba(255,255,255,0.05); padding: 15px; border-radius: 12px; transition: 0.3s; cursor: pointer; } .card:hover { transform: translateY(-6px); background: #38bdf8; color: #020617; box-shadow: 0 6px 20px rgba(56,189,248,0.3); } .tag { font-weight: bold; font-size: 16px; } .desc { font-size: 13px; margin-top: 6px; opacity: 0.8; }
Live Preview