Jul 10, 2024
.html extension.index.html file (default home page).<!DOCTYPE html>: Document type declaration.<html>: Root container for HTML content.<head>: Contains meta-information, title, and links to resources.<body>: Contains the content displayed on the web browser.<!DOCTYPE html>
<html>
<head>
<title>Mike's Website</title>
</head>
<body>
Hello, world!
</body>
</html>
<h1> being the largest.<p>): Defines a paragraph.<b>): Makes text bold.<i>): Makes text italicized.<br>): Adds a line break within text.<hr>): Adds a horizontal line to separate content.<big>, <small>): Alter the size of text.<sub>, <sup>): For scientific notation, math, etc.<!-- comment --><tag style='property: value;'>.color): Changes text color.background-color): Changes background color.<header>): Top section, navigation menu, branding.<main>): Main content of the page.<footer>): Bottom section, additional links, social media.<nav>): For navigational elements.<article>): For self-contained content, like blog posts.<section>): Divide content into thematic groups.<aside>): For content related, but not essential to main content.<a>): Creates a link.
<a href='url'>Link Text</a>.target='_blank'): Opens link in a new tab.page2.html.<img>): Embeds an image.
src): Path to the image.alt): Text alternative if the image cannot be displayed.<video>): Embeds a video.
src): Path to the video file.<iframe> tag with YouTube embed code.<ul>): Items with no specific order.
<li>): Defines each item in the list.<ol>): Numbered items, specific order.
<dl>): Terms with definitions.
<dt>): Term name.<dd>): Term description.<table>): Starts a table.
<tr>): Defines a row.<td>): Defines a cell.<th>): Defines a header cell.<thead>): Groups the header content.<tbody>): Groups the body content.<caption>): Title for the table.<div>): Block-level container.<span>): Inline container.<input type='text'>): Single-line text input.<input type='password'>): Hides text.<textarea>): Multi-line text input.file, range, checkbox, radio, submit.<form>): Groups multiple input elements.<iframe>): Embeds another web page within the current page.
src, width, height, frameborder.