Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

Document Structure

• <html>: Indicates the beginning and end of an HTML document

• <head>: Contains metadata about the document (title, stylesheets, scripts, etc.)

• <body>: Contains the main content of the document

• <title>: Defines the title of the document, displayed in the browser's title bar

• <meta>: Defines metadata about the document (keywords, descriptions, character encoding,
etc.)

• <link>: Links to external stylesheets and other resources

• <style>: Contains CSS styles that apply to the document

• <script>: Contains JavaScript code that runs on the document

• <noscript>: Defines alternate content for users who have disabled JavaScript

Text

• <h1> to <h6>: Headings of varying sizes (h1 being the largest and h6 being the smallest)

• <p>: Defines a paragraph of text

• <a>: Creates a hyperlink to another web page or file

• <strong>: Bold text

• <em>: Emphasized (italicized) text

• <blockquote>: Indicates a long quotation

• <q>: Indicates a short quotation

• <cite>: Indicates the source of a quotation

• <code>: Indicates a code snippet

• <pre>: Displays preformatted text

Lists

• <ul>: Creates an unordered list


• <ol>: Creates an ordered list

• <li>: Defines a list item

Forms

• <form>: Contains form elements (input fields, buttons, etc.)

• <input>: Creates various types of input fields (text, password, checkbox, radio button, etc.)

• <button>: Creates a button that can be clicked

• <select>: Creates a drop-down list

• <option>: Defines an option in a drop-down list

• <textarea>: Creates a multi-line text input field

• <label>: Associates a label with an input field

• <fieldset>: Groups related form elements together

• <legend>: Defines a caption for a fieldset

Tables

• <table>: Creates a table

• <tr>: Defines a table row

• <th>: Defines a table header cell

• <td>: Defines a table data cell

• <thead>: Groups the table header content

• <tbody>: Groups the table body content

• <tfoot>: Groups the table footer content

• <col>: Defines a column in the table

• <colgroup>: Groups columns in the table

Media
• <img>: Displays an image

• <audio>: Embeds audio content

• <video>: Embeds video content

• <source>: Defines the media source for an <audio> or <video> element

• <iframe>: Embeds another web page within the current page

• <embed>: Embeds various types of media content

Miscellaneous

• <div>: Groups elements together for styling purposes

• <span>: Applies styles to a small portion of text

• <hr>: Creates a horizontal rule (line)

• <br>: Inserts a line break

• <meta>: Defines various metadata about the document

• <base>: Defines the base URL for all relative URLs in the document

You might also like