今日、ウェブサイトを構築しました
過去 5 日間で蓄積した知識をまとめて、スタイル用の CSS を少し加えた、機能的なレシピブック サイトを構築しました。
サイトへのリンク - Ofameh_Recipe_Site
コードの HTML ブロック:
<meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>My Recipe Book</title> <link rel="stylesheet" href="styles.css"> <header> <h1 id="Ofameh-s-Recipe-Book">Ofameh's Recipe Book</h1> </header> <nav> <ul> <li> <button onclick="location.href='#breakfast';">Breakfast</button> </li> <li> <button onclick="location.href='#lunch';">Lunch</button> </li> <li> <button onclick="location.href='#dinner';">Dinner</button> </li> <li> <button onclick="location.href='#breakfast';">Dessert</button> </li> <li> <button onclick="location.href='#contact';">Contact</button> </li> </ul> </nav> <main> <section id="breakfast"> <h2 id="Breakfast-Recipes">Breakfast Recipes</h2> <article> <h3 id="日のHTML">日のHTML</h3> <img src="/static/imghwm/default1.png" data-src="./images/pancake.jpg" class="lazy" alt="日のHTML"> <h4 id="Ingredients">Ingredients:</h4> <ul> <li>2 cups all-purpose flour</li> <li>2 tablespoons sugar</li> <li>2 teaspoons baking powder</li> <li>1 teaspoon baking soda</li> <li>1/2 teaspoon salt</li> <li>2 cups buttermilk</li> <li>2 large eggs</li> <li>1/4 cup melted butter</li> </ul> <h4 id="Instructions">Instructions:</h4> <ol> <li>In a bowl, mix the dry ingredients together.</li> <li>In another bowl, whisk the wet ingredients together.</li> <li>Combine the dry and wet ingredients and mix until smooth.</li> <li>Heat a griddle over medium heat and grease it lightly.</li> <li> Pour batter onto the griddle and cook until bubbles form on the surface. </li> <li>Flip and cook until golden brown on the other side.</li> </ol> </article> </section> <section id="lunch"> <h2 id="Lunch-Recipes">Lunch Recipes</h2> <article> <h3 id="Grilled-Cheese-Sandwich">Grilled Cheese Sandwich</h3> <img src="/static/imghwm/default1.png" data-src="./images/grilled_cheese.jpg" class="lazy" alt="Grilled Cheese Sandwich"> <h4 id="Ingredients">Ingredients:</h4> <ul> <li>2 slices of bread</li> <li>2 slices of cheese</li> <li>Butter</li> </ul> <h4 id="Instructions">Instructions:</h4> <ol> <li>Butter one side of each slice of bread.</li> <li> Place one slice of bread, buttered side down, on a skillet over medium heat. </li> <li> Top with cheese and the other slice of bread, buttered side up. </li> <li> Cook until the bread is golden brown and the cheese is melted, flipping once. </li> </ol> </article> </section> <section id="dinner"> <h2 id="Dinner-Recipes">Dinner Recipes</h2> <article> <h3 id="Spaghetti-Bolognese">Spaghetti Bolognese</h3> <img src="/static/imghwm/default1.png" data-src="/images/spaghetti_bolognesse.webp" class="lazy" alt="Spaghetti Bolognese"> <h4 id="Ingredients">Ingredients:</h4> <ul> <li>200g spaghetti</li> <li>2 tablespoons olive oil</li> <li>1 onion, chopped</li> <li>2 garlic cloves, minced</li> <li>400g ground beef</li> <li>1 can of tomatoes</li> <li>2 tablespoons tomato paste</li> <li>1 teaspoon dried oregano</li> <li>Salt and pepper to taste</li> </ul> <h4 id="Instructions">Instructions:</h4> <ol> <li>Cook the spaghetti according to package instructions.</li> <li> Heat olive oil in a pan and sauté the onion and garlic until softened. </li> <li>Add the ground beef and cook until browned.</li> <li> Stir in the tomatoes, tomato paste, and oregano. Simmer for 20 minutes. </li> <li>Season with salt and pepper.</li> <li>Serve the sauce over the spaghetti.</li> </ol> </article> </section> <section id="dessert"> <h2 id="Dessert-Recipes">Dessert Recipes</h2> <article> <h3 id="Chocolate-Cake">Chocolate Cake</h3> <img src="/static/imghwm/default1.png" data-src="./images/chocolate_cake.jpg" class="lazy" alt="Chocolate Cake"> <h4 id="Ingredients">Ingredients:</h4> <ul> <li>1 and 3/4 cups all-purpose flour</li> <li>1 and 1/2 cups sugar</li> <li>3/4 cup cocoa powder</li> <li>1 and 1/2 teaspoons baking powder</li> <li>1 and 1/2 teaspoons baking soda</li> <li>1 teaspoon salt</li> <li>2 large eggs</li> <li>1 cup milk</li> <li>1/2 cup vegetable oil</li> <li>2 teaspoons vanilla extract</li> <li>1 cup boiling water</li> </ul> <h4 id="Instructions">Instructions:</h4> <ol> <li>Preheat your oven to 350°F (175°C) and grease a cake pan.</li> <li>In a large bowl, combine the dry ingredients.</li> <li> Add the eggs, milk, oil, and vanilla, and beat on medium speed for 2 minutes. </li> <li>Stir in the boiling water (batter will be thin).</li> <li>Pour the batter into the prepared pan.</li> <li> Bake for 30-35 minutes, or until a toothpick inserted into the center comes out clean. </li> </ol> </article> </section> <section id="contact"> <h2 id="Contact-Us"> Contact Us </h2> <article> <b> Want More Recipes </b> <br> <label for="subscribe"> Subscribe to our newsletter </label> <input type="checkbox" id="subscribe" name="subscribe"> <br> <br> Shoot us an email: <a href="mailto:osowoofameh@gmail.com" target="_blank"> <button> Email </button> </a> <br> <br> Catch Us on X: <a href="https://x.com/trader_mkk" target="_blank"> <button> Twitter </button></a> <br> </article> </section> </main> <footer> <p> <b> © 2024 Ofameh <br> All rights reserved.</b> </p> </footer>
コードの CSS ブロック -
body { font-family: Arial, sans-serif; line-height: 1.6; margin: 0; padding: 0; } header, main, footer { padding: 20px; margin: 10px; } header { background-color: black; color: white; text-align: center; } nav ul { list-style-type: none; padding: 0; display: flex; justify-content: space-around; } nav ul li { margin: 0 10px; } section { margin-bottom: 20px; } article { border: 1px solid #ccc; padding: 10px; margin: 10px 0; } img { max-width: 100%; height: auto; } footer { background-color: #333; color: white; text-align: center; padding: 10px 0; } button { display: inline-block; padding: 10px 20px; font-size: 16px; color: black; border: none; border-radius: 5px; text-align: center; text-decoration: none; cursor: pointer; background-color: #ccc; transition: background-color 0.3s ease, transform 0.3s ease; } button:hover { background-color: black; transform: translateY(-2px); color: white; }
5日目にこれまでに学んだことをすべてまとめてこれを構築することは、私にとって充実感がありました。なぜなら、この演習の要点はプロジェクトベースの学習だからです。
実際にこれを 5 日間実行して、これほど優れたサイトを構築できたことは、私にとって非常に意味のあることです
そうは言っても、6 日目から 10 日目までは、私がウェブサイトと呼ぶものを何日間も取り上げることになります。ここでは毎日、徐々に難しく複雑になっていくサイトを構築します。
そこにいてください!
以上が日のHTMLの詳細内容です。詳細については、PHP 中国語 Web サイトの他の関連記事を参照してください。

JavaScriptエンジンが内部的にどのように機能するかを理解することは、開発者にとってより効率的なコードの作成とパフォーマンスのボトルネックと最適化戦略の理解に役立つためです。 1)エンジンのワークフローには、3つの段階が含まれます。解析、コンパイル、実行。 2)実行プロセス中、エンジンはインラインキャッシュや非表示クラスなどの動的最適化を実行します。 3)ベストプラクティスには、グローバル変数の避け、ループの最適化、constとletsの使用、閉鎖の過度の使用の回避が含まれます。

Pythonは、スムーズな学習曲線と簡潔な構文を備えた初心者により適しています。 JavaScriptは、急な学習曲線と柔軟な構文を備えたフロントエンド開発に適しています。 1。Python構文は直感的で、データサイエンスやバックエンド開発に適しています。 2。JavaScriptは柔軟で、フロントエンドおよびサーバー側のプログラミングで広く使用されています。

PythonとJavaScriptには、コミュニティ、ライブラリ、リソースの観点から、独自の利点と短所があります。 1)Pythonコミュニティはフレンドリーで初心者に適していますが、フロントエンドの開発リソースはJavaScriptほど豊富ではありません。 2)Pythonはデータサイエンスおよび機械学習ライブラリで強力ですが、JavaScriptはフロントエンド開発ライブラリとフレームワークで優れています。 3)どちらも豊富な学習リソースを持っていますが、Pythonは公式文書から始めるのに適していますが、JavaScriptはMDNWebDocsにより優れています。選択は、プロジェクトのニーズと個人的な関心に基づいている必要があります。

C/CからJavaScriptへのシフトには、動的なタイピング、ゴミ収集、非同期プログラミングへの適応が必要です。 1)C/Cは、手動メモリ管理を必要とする静的に型付けられた言語であり、JavaScriptは動的に型付けされ、ごみ収集が自動的に処理されます。 2)C/Cはマシンコードにコンパイルする必要がありますが、JavaScriptは解釈言語です。 3)JavaScriptは、閉鎖、プロトタイプチェーン、約束などの概念を導入します。これにより、柔軟性と非同期プログラミング機能が向上します。

さまざまなJavaScriptエンジンは、各エンジンの実装原則と最適化戦略が異なるため、JavaScriptコードを解析および実行するときに異なる効果をもたらします。 1。語彙分析:ソースコードを語彙ユニットに変換します。 2。文法分析:抽象的な構文ツリーを生成します。 3。最適化とコンパイル:JITコンパイラを介してマシンコードを生成します。 4。実行:マシンコードを実行します。 V8エンジンはインスタントコンピレーションと非表示クラスを通じて最適化され、Spidermonkeyはタイプ推論システムを使用して、同じコードで異なるパフォーマンスパフォーマンスをもたらします。

現実世界におけるJavaScriptのアプリケーションには、サーバー側のプログラミング、モバイルアプリケーション開発、モノのインターネット制御が含まれます。 2。モバイルアプリケーションの開発は、ReactNativeを通じて実行され、クロスプラットフォームの展開をサポートします。 3.ハードウェアの相互作用に適したJohnny-Fiveライブラリを介したIoTデバイス制御に使用されます。

私はあなたの日常的な技術ツールを使用して機能的なマルチテナントSaaSアプリケーション(EDTECHアプリ)を作成しましたが、あなたは同じことをすることができます。 まず、マルチテナントSaaSアプリケーションとは何ですか? マルチテナントSaaSアプリケーションを使用すると、Singの複数の顧客にサービスを提供できます

この記事では、許可によって保護されたバックエンドとのフロントエンド統合を示し、next.jsを使用して機能的なedtech SaaSアプリケーションを構築します。 FrontEndはユーザーのアクセス許可を取得してUIの可視性を制御し、APIリクエストがロールベースに付着することを保証します


ホットAIツール

Undresser.AI Undress
リアルなヌード写真を作成する AI 搭載アプリ

AI Clothes Remover
写真から衣服を削除するオンライン AI ツール。

Undress AI Tool
脱衣画像を無料で

Clothoff.io
AI衣類リムーバー

AI Hentai Generator
AIヘンタイを無料で生成します。

人気の記事

ホットツール

SecLists
SecLists は、セキュリティ テスターの究極の相棒です。これは、セキュリティ評価中に頻繁に使用されるさまざまな種類のリストを 1 か所にまとめたものです。 SecLists は、セキュリティ テスターが必要とする可能性のあるすべてのリストを便利に提供することで、セキュリティ テストをより効率的かつ生産的にするのに役立ちます。リストの種類には、ユーザー名、パスワード、URL、ファジング ペイロード、機密データ パターン、Web シェルなどが含まれます。テスターはこのリポジトリを新しいテスト マシンにプルするだけで、必要なあらゆる種類のリストにアクセスできるようになります。

PhpStorm Mac バージョン
最新(2018.2.1)のプロフェッショナル向けPHP統合開発ツール

DVWA
Damn Vulnerable Web App (DVWA) は、非常に脆弱な PHP/MySQL Web アプリケーションです。その主な目的は、セキュリティ専門家が法的環境でスキルとツールをテストするのに役立ち、Web 開発者が Web アプリケーションを保護するプロセスをより深く理解できるようにし、教師/生徒が教室環境で Web アプリケーションを教え/学習できるようにすることです。安全。 DVWA の目標は、シンプルでわかりやすいインターフェイスを通じて、さまざまな難易度で最も一般的な Web 脆弱性のいくつかを実践することです。このソフトウェアは、

Dreamweaver Mac版
ビジュアル Web 開発ツール

ドリームウィーバー CS6
ビジュアル Web 開発ツール
