Hypertext Markup Language (HTML) is a standard markup language used for creating web pages. HTML concepts include elements, attributes, and tags. An HTML document has a standard structure, including a doctype declaration, a head section, and a body section.
Common HTML elements include headings, paragraphs, links, images, and lists. Section elements, such as <header>
and <footer>
, provide additional structure to web pages.
Semantic structural tags, such as <nav>
, <main>
, and <article>
, provide meaning to the content and structure of a web page. These tags help search engines and assistive technologies understand the content, making web pages more accessible and easier to navigate. By using semantic structural tags, developers can create more meaningful and accessible web pages.
<html>
<body>
<h1>Hello Pesho!</h1>
</body>
</html>
<!-– makes a hyperlink to Google -->
<a href="http://google.com"> go to Google</a>
<!-– makes a horizontal line -->
<hr width="95%" size="3px"/>
<!-– adds an image in the web page -->
<img src="images/SEB-Ninja.png"/>
<a href="http://google.com"> go to Google</a>
<html>…</html>
<html>
…
</html>
<!DOCTYPE html>
<b></b> | bold |
---|---|
<i></i> | italicized |
<u></u> | underlined |
<sup></sup> | superscript |
<sub></sub> | subscript |
<strong></strong> | strong |
<em></em> | emphasized |
<pre></pre> | Preformatted text |
<a href="https://nikolay.it/" title="Nikolay.IT">Nikolay Kostov</a>
<img src="logo.gif" alt="logo" />
This text is <em>emphasized.</em>
<br />new line<br />
This one is <strong>more emphasized.</strong>
<h1>Heading 1</h1>
<h2>Sub heading 2</h2>
<h3>Sub heading 3</h3>
<p>This is my first paragraph</p>
<p>This is my second paragraph</p>
<div style="background: skyblue;">This is a div</div>
<ol type="1">
<li>Apple</li>
<li>Orange</li>
<li>Grapefruit</li>
</ol>
<ul type="disc">
<li>Apple</li>
<li>Orange</li>
<li>Grapefruit</li>
</ul>
<dl>
<dt>HTML</dt>
<dd>A markup language …</dd>
<dt>CSS</dt>
<dd>Language used to …</dd>
</dl>
<div style="font-size:24px; color:red">DIV example</div>
<p>This one is <span style="color:red; font-weight:bold">only a test</span>.</p>
<p>This one is <span style="color:red; font-weight:bold">only a test</span>.</p>
<p>This one is another <span style="font-size:32px; font-weight:bold">TEST</span>.</p>
<html>
<head> … </head>
<body>
<div id="header"> … </div>
<div id="navigation"> … </div>
<div id="sidebar"> … </div>
<div id="content"> … </div>
<div id="footer"> … </div>
</body>
</html>
<html>
<head> … </head>
<body>
<header> … </header>
<nav> … </nav>
<aside> … </aside>
<section> … </section>
<footer> … </footer>
</body>
</html>