HTML Introduction
HTML Introduction HTML stands for HyperText Markup Language. It is the standard language used to create and structure web pages. HTML helps browsers understand what to display on a webpage, such as text, images,...
HTML Introduction HTML stands for HyperText Markup Language. It is the standard language used to create and structure web pages. HTML helps browsers understand what to display on a webpage, such as text, images,...
HTML Editors HTML editors are tools used to write and edit HTML code easily. While you can use a basic text editor like Notepad (Windows) or TextEdit (Mac), specialized code editors make writing It...
Below are HTML Basic Examples that help beginners understand how HTML works. Each example is short, clear, and practical. 1. Basic HTML Document Structure This is the minimum structure of any HTML page.
|
1 2 3 4 5 6 7 8 9 10 |
<!DOCTYPE html> <html> <head> <title>My First HTML Page</title> </head> <body> <h1>Hello World</h1> <p>This is my first HTML page.</p> </body> </html> |
...
HTML Elements Its are the building blocks of a webpage. A HTML Elements usually consists of a start tag, content, and an end tag. Example of an HTML Element <p>Hello World!</p> <p> → Start...
HTML Attributes HTML attributes provide extra information about an HTML element. They are always written in the start tag and usually come in name=”value” format. Example
|
1 |
<a href="https://google.com">Visit Google</a> |
href is the attribute “https://google.com” is...
HTML Headings HTML provides six levels of headings to define titles and subtitles on a webpage. They range from <h1> (most important) to <h6> (least important). Example
|
1 2 3 4 5 6 |
<h1>This is Heading 1</h1> <h2>This is Heading 2</h2> <h3>This is Heading 3</h3> <h4>This is Heading 4</h4> <h5>This is Heading 5</h5> <h6>This is Heading 6</h6> |
Usage Notes <h1> is typically...
HTML Paragraphs HTML paragraphs are used to display blocks of text on a web page. They are defined using the <p> tag. Basic Paragraph Example <p>This is an HTML paragraph.</p> <p>This is another paragraph.</p>...
HTML Styles HTML styles are used to change the appearance of HTML elements. Styles are added using the style attribute, which uses CSS (Cascading Style Sheets). Syntax of HTML Style <tagname style=”property:value;”> Example <p...
HTML Text Formatting HTML text formatting tags are used to change the appearance and emphasis of text on a web page. 1. Bold Text <b> – Bold (visual only) <p>This is <b>bold</b> text.</p> <strong>...
HTML Quotation and Citation Elements HTML Quotation and Citation Elements provides special tags to display quotes, citations, and quoted text in a meaningful way. Common Quote-Related Tags Tag Purpose <q> Short inline quotation <blockquote>...