IS 201 Big Quiz #5 HTML Tags and Attributes

¡Supera tus tareas y exámenes ahora con Quizwiz!

ul

Purpose: Creates a bulleted list. Contains: Only <li> (list item) tags inside. Style: Default is bullets (●), but can be customized with CSS.

ol

Purpose: Creates a numbered list. Contains: Only <li> (list item) tags inside. Style: Numbers by default (1, 2, 3...), but can be customized.

a

Purpose: Creates hyperlinks to other pages, sites, or places on the same page. Key attribute: href: The URL or location the link points to (required). target="_blank": Opens link in a new tab (optional). id: Can be used as a link target within the same page.

h1 (and h2, h3, h4, etc)

Purpose: Define headings and subheadings in a webpage. Hierarchy: <h1> is the most important (main title). <h2> to <h4> are subheadings in decreasing importance. SEO: Search engines use heading structure to understand content.

p

Purpose: Defines a block of text as a paragraph. Behavior: Adds space above and below by default. Content: Can include text, inline elements (like <a>, <strong>, etc.)

img tag

Purpose: Embeds an image in the page. Key attributes: src: URL or path to the image file (required). alt: Text description shown if image can't load (important for accessibility). width / height: Sets image dimensions (in pixels or %).

body tag

Purpose: Holds everything visible on the web page (text, images, links, etc.). Placement: Comes right after <head> in the HTML structure. Common content inside: Headings (<h1>-<h6>), paragraphs (<p>), images (<img>), lists, links, etc.

head tag

Purpose: Holds meta-information about the page (not visible to users). Common contents: <title>: Sets the page title (shown in browser tab). <meta>: Defines metadata (like character set, author, viewport). <link>: Links external resources (like CSS files). <style>: Internal CSS. <script>: JavaScript for page behavior.

br

Purpose: Inserts a line break (like pressing Enter). Type: Self-closing tag (no closing tag needed). Use case: Break lines inside a paragraph or text block without starting a new paragraph.

li

Purpose: Represents a single item in a list. Must be inside: <ul>, <ol>, or <menu>.

title

Purpose: Sets the title shown in the browser tab and used by search engines. Placement: Inside the <head> tag. Content: Text only (no HTML tags).


Conjuntos de estudio relacionados

Work and Energy Practice Questions

View Set

Systems of Linear Equations in Three Variables

View Set

Unit 3 - Foundations Ch. 2-8 & Ch. 19 (part 1)

View Set

Population Genetics and Evolution

View Set