Coding Basics: Intro to HTML Syntax
Master HTML fundamentals through hands-on coding practice
Before starting this tutorial, ensure you have downloaded the class files and have a text/code editor like Sublime Text, Dreamweaver, or Atom installed on your system.
Setting Up Your First HTML File
Open Your Editor
Launch your text/code editor and use Cmd-O (Mac) or Ctrl-O (Windows) to open the file browser
Navigate to Project Files
Go to Desktop > Class Files > yourname-Web Dev Class > News Website folder
Open HTML File
Double-click microsoft.html to open it in your editor and view the raw text content
HTML Document Structure
HTML Tag
The root element that wraps around the entire document. Everything else goes inside this container.
Head Section
Contains metadata about the document like title and other information visitors won't directly interact with.
Body Section
Houses the actual content that visitors will see and interact with on your webpage.
HTML Heading Hierarchy
Headings help search engines understand your content structure and enable screen readers to navigate documents efficiently. Use them semantically, not just for styling.
Web browsers ignore line breaks in your code. Without proper paragraph tags, all your text will appear as one continuous block regardless of how you format it in your editor.
HTML List Types
| Feature | Unordered Lists (ul) | Ordered Lists (ol) |
|---|---|---|
| Display Style | Bullet points | Numbered items |
| Use Case | Non-sequential items | Sequential steps |
| List Item Tag | li | li |
Semantic Text Formatting
Strong Element
Indicates strong importance and renders as bold text in visual browsers. Screen readers may emphasize this differently.
Em Element
Provides emphasis and typically renders as italic text. The emphasis is conveyed through different speaking styles in screen readers.
Modern HTML Document Requirements
Ensures browser renders in standards mode according to HTML/CSS specifications
Declares page language for SEO and accessibility improvements
Enables proper display of special characters across platforms and devices
In standards mode pages are rendered according to the HTML and CSS specifications, while in quirks mode attempts are made to emulate the behavior of older browsers.
You've successfully created a complete HTML document with proper structure, semantic elements, and modern standards. This foundation prepares you for more advanced web development topics.
Key Takeaways
RELATED ARTICLES
Collecting Content for Your Design Portfolio from Day One
As a designer at any level, your portfolio is a most valuable asset. It represents what you can do, the methods you can apply to implement stakeholder...
Leverage LinkedIn and Glassdoor
In today’s world, job seekers and employers connect through online job boards and networks. Job boards and online job networks overlap but are not the same...
Creating Your Design Portfolio Website
Once you have assembled your design portfolio content, the remaining piece of the puzzle is to find a place to post it for review online. Let’s quickly run...