Chapter 18m

HTML Editors in Telugu

తెలుగులో HTML Editors నేర్చుకోండి. Notepad, TextEdit మరియు VS Code ద్వారా HTML File రూపొందించడం, Save చేయడం మరియు Browser లో Open చేయడం తెలుసుకోండి.

గత Chapter లో HTML అంటే ఏమిటి, Basic HTML Document యొక్క Structure ఎలా ఉంటుందో నేర్చుకున్నారు.

ఇప్పుడు మీరే HTML Code రాయడం ప్రారంభిద్దాం!

HTML Web Page రూపొందించడానికి Text Editor లేదా Code Editor అవసరం. Notepad, TextEdit లేదా Visual Studio Code వంటి Applications ఉపయోగించవచ్చు.

ఈ Chapter లో HTML File రూపొందించడం, Save చేయడం, Browser లో Open చేయడం, Code మార్చి Updated Output చూడడం నేర్చుకుంటారు.

HTML Editor అంటే ఏమిటి?

HTML Editor అనేది HTML Code రాయడానికి, మార్చడానికి మరియు Manage చేయడానికి ఉపయోగించే Application.

HTML నేర్చుకోవడానికి ఖరీదైన Software అవసరం లేదు.

Basic Text Editors:

  • Notepad (Windows)
  • TextEdit (macOS — Plain Text Mode)

Dedicated Code Editors:

  • Visual Studio Code (VS Code)
  • Sublime Text
  • Notepad++
FeatureBasic Text EditorCode Editor
HTML రాయడంYesYes
Syntax Highlightingసాధారణంగా పరిమితంYes
Auto-completionసాధారణంగా పరిమితంఅందుబాటులో ఉంటుంది
File ManagementBasicAdvanced
Extensionsసాధారణంగా పరిమితంతరచుగా అందుబాటులో ఉంటాయి

W3PrimeCode Tip: Beginners ఏ Editor తోనైనా ప్రారంభించవచ్చు. HTML, CSS మరియు JavaScript నేర్చుకోవాలనుకుంటే VS Code ఉపయోగకరమైన ఎంపిక.

Notepad ఉపయోగించి HTML రాయడం (Windows)

Step 1: Notepad Open చేయండి

Windows Start Menu లో Notepad Search చేసి Application Open చేయండి.

Step 2: HTML Code రాయండి

html
<!DOCTYPE html>
<html>
<head>
    <title>My First Web Page</title>
</head>
<body>
    <h1>Welcome to HTML</h1>
    <p>This is my first HTML page.</p>
</body>
</html>

Step 3: HTML File Save చేయండి

  1. File → Save As ఎంచుకోండి.
  2. File Name గా index.html రాయండి.
  3. Save as type లో All Files ఎంచుకోండి.
  4. అందుబాటులో ఉంటే Encoding గా UTF-8 ఎంచుకోండి.
  5. Folder ఎంచుకొని Save చేయండి.

Important: File index.html.txt పేరుతో Save కాకుండా చూసుకోండి.

Step 4: Browser లో Open చేయండి

Save చేసిన index.html File పై Double-click చేయండి. అది Default Browser లో Open అవుతుంది. అవసరమైతే Open with ద్వారా మరొక Browser ఎంచుకోవచ్చు.

TextEdit ఉపయోగించి HTML రాయడం (macOS)

Mac ఉపయోగిస్తున్నట్లయితే TextEdit ద్వారా HTML File రూపొందించవచ్చు.

  1. Applications లేదా Spotlight Search ద్వారా TextEdit Open చేయండి.
  2. Format → Make Plain Text ఎంచుకోండి.
  3. క్రింది Code రాయండి:
html
<!DOCTYPE html>
<html>
<head>
    <title>My HTML Page</title>
</head>
<body>
    <h1>Hello from Mac!</h1>
    <p>I created this page using TextEdit.</p>
</body>
</html>
  1. File → Save ఎంచుకోండి.
  2. File Name గా index.html రాయండి.
  3. .html లేదా .txt ఎంచుకోమంటే .html ఎంచుకోండి.
  4. అందుబాటులో ఉంటే Automatically .txt జోడించే Option Disable చేసి UTF-8 Encoding ఉపయోగించండి.
  5. Finder ద్వారా File ను Safari, Chrome లేదా ఇతర Browser లో Open చేయండి.

Important: HTML Code ను Rich Text కాకుండా Plain Text గా Save చేయాలి.

Visual Studio Code ఉపయోగించి HTML రాయడం

Visual Studio Code (VS Code) అనేది Microsoft రూపొందించిన ప్రముఖ Code Editor.

దీనిలో ముఖ్యమైన Features:

  • Syntax Highlighting
  • Auto-completion
  • File మరియు Folder Management
  • Integrated Terminal
  • Extensions
  • Built-in HTML Support

Steps:

  1. Official Website నుండి VS Code Download చేసి Install చేయండి: https://code.visualstudio.com/
  2. VS Code Open చేయండి.
  3. File → New Text File ఎంచుకోండి.
  4. File ను index.html పేరుతో Save చేయండి.
  5. క్రింది Code రాయండి:
html
<!DOCTYPE html>
<html>
<head>
    <title>Learning HTML</title>
</head>
<body>
    <h1>HTML with VS Code</h1>
    <p>Learning HTML is fun!</p>
</body>
</html>
  1. Code Save చేయండి.
  2. HTML File ను Browser లో Open చేయండి.

Note: VS Code ఒక Code Editor, Web Browser కాదు. Rendered Output చూడడానికి HTML File ను Browser లో Open చేయాలి.

W3PrimeCode లో Online HTML Practice

W3PrimeCode Code Sandbox లో ఈ సదుపాయం అందుబాటులో ఉంటే Local File రూపొందించకుండానే HTML Code రాసి Output చూడవచ్చు. Online HTML Code Editor

Example:

html
<!DOCTYPE html>
<html>
<head>
    <title>Online HTML Example</title>
</head>
<body>
    <h1>Hello, W3PrimeCode!</h1>
    <p>I am practicing HTML online.</p>
</body>
</html>

Heading మరియు Paragraph Text మార్చి Code మళ్లీ Run చేయండి.

HTML File Extensions

HTML Documents సాధారణంగా రెండు Extensions ఉపయోగిస్తాయి:

  • .html
  • .htm

రెండూ HTML File Extensions. ఈ Course లో .html ఉపయోగిస్తాము.

Valid File Names:

text
index.html
about.html
contact.html
portfolio.html

Incorrect:

text
index.html.txt

దీని చివరి Extension .txt కాబట్టి File ఒక Text File గా Open కావచ్చు.

HTML File ను Edit చేయడం ఎలా?

  1. Editor లో index.html Open చేయండి.
  2. అవసరమైన Code మార్చండి.
  3. File Save చేయండి.
  4. Browser కు తిరిగి వెళ్లండి.
  5. Page Refresh చేయండి.

ఉదాహరణకు:

html
<h1>Welcome to HTML</h1>

దీనిని ఇలా మార్చండి:

html
<h1>Welcome to W3PrimeCode</h1>

Save చేసి Refresh చేసిన తరువాత కొత్త Heading కనిపిస్తుంది.

Common Beginner Mistakes

Mistake 1: తప్పు File Extension

Incorrect: index.html.txt Correct: index.html

Mistake 2: Changes Save చేయడం మర్చిపోవడం

Code మార్చిన తరువాత File Save చేయకపోతే Browser లో పాత Output కనిపించవచ్చు.

Mistake 3: Editor మరియు Browser మధ్య తేడా తెలియకపోవడం

Editor HTML Source Code చూపిస్తుంది. Browser HTML ను Interpret చేసి Rendered Web Page చూపిస్తుంది.

Mistake 4: Rich Text ఉపయోగించడం

TextEdit లో HTML రాయడానికి ముందు Plain Text Mode ఎంచుకోండి.

**Mistake 5: <title> మరియు <h1> ఒకటే అనుకోవడం**

<title> Browser Tab Title ను నిర్వచిస్తుంది. <h1> Web Page లో Heading రూపొందిస్తుంది.

Practical Use Case: Personal Welcome Page

welcome.html పేరుతో File రూపొందించండి.

html
<!DOCTYPE html>
<html>
<head>
    <title>My Welcome Page</title>
</head>
<body>
    <h1>Welcome to My Website</h1>
    <p>My name is Alex.</p>
    <p>I am learning HTML with W3PrimeCode.</p>
</body>
</html>

ఈ Example ద్వారా Editor మరియు Browser సహాయంతో ఒక సాధారణ Web Page ఎలా రూపొందించవచ్చో తెలుస్తుంది.

Try It Yourself

my-profile.html పేరుతో File రూపొందించండి.

html
<!DOCTYPE html>
<html>
<head>
    <title>My Profile</title>
</head>
<body>
    <h1>Your Name</h1>
    <p>Your introduction goes here.</p>
</body>
</html>

మీ Tasks:

  1. Your Name స్థానంలో మీ పేరు రాయండి.
  2. మీ ఆసక్తుల గురించి ఒక వాక్యం జోడించండి.
  3. Browser Tab Title మార్చండి.
  4. File ను .html Extension తో Save చేయండి.
  5. Browser లో Open చేయండి.
  6. మరొక మార్పు చేసి Save మరియు Refresh చేయండి.

Practice Exercises

Exercise 1 - Easy: HTML Code రాయడానికి ఉపయోగించే రెండు Applications పేర్లు రాయండి.

Exercise 2 - Easy: HTML Document కోసం సాధారణ File Extension ఏది?

Exercise 3 - Medium: TextEdit లో HTML రాయడానికి ముందు Plain Text Mode ఎందుకు ఎంచుకోవాలి?

Exercise 4 - Medium: ఒక Heading మరియు Paragraph ఉన్న about.html File రూపొందించండి.

Exercise 5 - Challenge: పూర్తి HTML Document రూపొందించి Browser లో Open చేయండి. Heading మార్చి Save చేసి Refresh ద్వారా Updated Content చూడండి.