The document outlines the basic structure and elements of HTML, including the declaration, root element, head, title, and body. It details various tags for headings, text formatting, links, images, lists, tables, forms, and semantic elements. Each section provides specific HTML tags and their purposes for building web pages.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
4 views
HTML Assignment
The document outlines the basic structure and elements of HTML, including the declaration, root element, head, title, and body. It details various tags for headings, text formatting, links, images, lists, tables, forms, and semantic elements. Each section provides specific HTML tags and their purposes for building web pages.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2
1.
Document Structure
• <!DOCTYPE html> – Declares the document type.
• <html> – The root element of an HTML page. • <head> – Contains metadata and links to styles/scripts. • <title> – Defines the title of the webpage (shown on the browser tab). • <body> – Contains the main content of the webpage.
2. Headings and Text
• <h1> to <h6> – Headings (h1 is the largest, h6 is the smallest).
• <p> – Paragraph. • <br> – Line break (no closing tag). • <hr> – Horizontal line (no closing tag). • <strong> – Bold text. • <em> – Italicized text. • <u> – Underlined text. • <span> – Inline container for styling.
3. Links and Images
• <a href="URL"> – Creates a hyperlink.
• <img src="image.jpg" alt="description"> – Displays an image.
4. Lists
• <ul> – Unordered list (bulleted).
• <ol> – Ordered list (numbered). • <li> – List item.
• <input> – User input field. • <label> – Label for input. • <textarea> – Multi-line text input. • <button> – Clickable button. • <select> – Dropdown list. • <option> – Options in a dropdown. 7. Div and Semantic Elements
• <div> – Block container for grouping elements.
• <section> – Defines a section of content. • <article> – Represents an independent piece of content. • <header> – Header section. • <footer> – Footer section. • <nav> – Navigation links. • <aside> – Sidebar content.