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++
| Feature | Basic Text Editor | Code Editor |
|---|---|---|
| HTML రాయడం | Yes | Yes |
| Syntax Highlighting | సాధారణంగా పరిమితం | Yes |
| Auto-completion | సాధారణంగా పరిమితం | అందుబాటులో ఉంటుంది |
| File Management | Basic | Advanced |
| 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 రాయండి
<!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 చేయండి
- File → Save As ఎంచుకోండి.
- File Name గా
index.htmlరాయండి. - Save as type లో
All Filesఎంచుకోండి. - అందుబాటులో ఉంటే Encoding గా
UTF-8ఎంచుకోండి. - 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 రూపొందించవచ్చు.
- Applications లేదా Spotlight Search ద్వారా TextEdit Open చేయండి.
- Format → Make Plain Text ఎంచుకోండి.
- క్రింది Code రాయండి:
<!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>- File → Save ఎంచుకోండి.
- File Name గా
index.htmlరాయండి. .htmlలేదా.txtఎంచుకోమంటే.htmlఎంచుకోండి.- అందుబాటులో ఉంటే Automatically
.txtజోడించే Option Disable చేసి UTF-8 Encoding ఉపయోగించండి. - 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:
- Official Website నుండి VS Code Download చేసి Install చేయండి: https://code.visualstudio.com/
- VS Code Open చేయండి.
- File → New Text File ఎంచుకోండి.
- File ను
index.htmlపేరుతో Save చేయండి. - క్రింది Code రాయండి:
<!DOCTYPE html>
<html>
<head>
<title>Learning HTML</title>
</head>
<body>
<h1>HTML with VS Code</h1>
<p>Learning HTML is fun!</p>
</body>
</html>- Code Save చేయండి.
- 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:
<!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:
index.html
about.html
contact.html
portfolio.htmlIncorrect:
index.html.txtదీని చివరి Extension .txt కాబట్టి File ఒక Text File గా Open కావచ్చు.
HTML File ను Edit చేయడం ఎలా?
- Editor లో
index.htmlOpen చేయండి. - అవసరమైన Code మార్చండి.
- File Save చేయండి.
- Browser కు తిరిగి వెళ్లండి.
- Page Refresh చేయండి.
ఉదాహరణకు:
<h1>Welcome to HTML</h1>దీనిని ఇలా మార్చండి:
<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 రూపొందించండి.
<!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 రూపొందించండి.
<!DOCTYPE html>
<html>
<head>
<title>My Profile</title>
</head>
<body>
<h1>Your Name</h1>
<p>Your introduction goes here.</p>
</body>
</html>మీ Tasks:
Your Nameస్థానంలో మీ పేరు రాయండి.- మీ ఆసక్తుల గురించి ఒక వాక్యం జోడించండి.
- Browser Tab Title మార్చండి.
- File ను
.htmlExtension తో Save చేయండి. - Browser లో Open చేయండి.
- మరొక మార్పు చేసి 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 చూడండి.