Bare-Bones Basics of HTML
No source links recorded for this answer.
Select text to highlight passages.
Explain: Horizontal rule: <hr>
Select text to highlight passages.
What the <hr> (Horizontal Rule) Tag Does
No source links recorded for this answer.
Select text to highlight passages.
Continue this thread
This path ends here for now.
Share your perspective, offer an example, or ask a follow-up to continue the discussion.
Other paths you could read
Earlier, at Bare-Bones Basics of HTML, the conversation split. If this is not the thread you want, you can switch to one of the other paths below.
Explain: Document structure
Explain: <!DOCTYPE html> — declares HTML5.
Explain: <html> — root element.
Explain: <head> — metadata: <title>, <meta>, <link>, <style>, <script> (usually not visible).
Explain: <body> — visible content: text, images, links, lists, etc.
Explain: Basic tags
Explain: <title>Your page title</title> — shown in browser tab (inside head).
Explain: Headings: <h1>…</h1> to <h6>…</h6>.
Explain: Paragraph: <p>Paragraph text</p>.
Explain: Links: <a href=”https://example.com”>link text</a>.
Explain: Images: <img src=”image.jpg” alt=”description”> (self-closing; include alt).
Explain: Lists:
Explain: Unordered: <ul><li>Item</li></ul>
Explain: Ordered: <ol><li>Item</li></ol>
Explain: Line break: <br>
Explain: Horizontal rule: <hr>
Explain: Attributes
Explain: Provide extra info inside opening tag: <tag attribute=”value”>.
Explain: Common attributes: id, class, href, src, alt, title, style.
Explain: Nesting and well-formedness
Explain: Tags should be properly opened and closed and nested (e.g., <p><strong>text</strong></p>).
Explain: Example minimal page
Explain: Where to learn next
Explain: Mozilla Developer Network (MDN) HTML guide: https://developer.mozilla.org/en-US/docs/Web/HTML
Explain: W3C HTML specification and tutorials: https://www.w3.org/ and https://www.w3schools.com/html/
Explain: <!DOCTYPE html> — declares HTML5.
Explain: <html> — root element.
Explain: <head> — metadata: <title>, <meta>, <link>, <style>, <script> (usually not visible).
Explain: <body> — visible content: text, images, links, lists, etc.
Explain: <title>Your page title</title> — shown in browser tab (inside head).
Explain: Headings: <h1>…</h1> to <h6>…</h6>.
Explain: Paragraph: <p>Paragraph text</p>.
Explain: Links: <a href=”https://example.com”>link text</a>.
Explain: Images: <img src=”image.jpg” alt=”description”> (self-closing; include alt).
Explain: Lists:
Explain: Unordered: <ul><li>Item</li></ul>
Explain: Ordered: <ol><li>Item</li></ol>
Explain: Line break: <br>
Explain: Unordered: <ul><li>Item</li></ul>
Explain: Ordered: <ol><li>Item</li></ol>
Explain: Provide extra info inside opening tag: <tag attribute=”value”>.
Explain: Common attributes: id, class, href, src, alt, title, style.
Explain: Tags should be properly opened and closed and nested (e.g., <p><strong>text</strong></p>).
Explain: Mozilla Developer Network (MDN) HTML guide: https://developer.mozilla.org/en-US/docs/Web/HTML
Explain: W3C HTML specification and tutorials: https://www.w3.org/ and https://www.w3schools.com/html/
Highlights
0 saved passages and connected ideas
No highlights yet
Select text to save it here.